[2025-01-29 00:00:05] Production.INFO: next invoice date [2025-01-29 00:00:05] Production.INFO: 2025-03-01 [2025-01-29 00:00:05] Production.INFO: getdaysdiff [2025-01-29 00:00:05] Production.INFO: +31 [2025-01-29 00:00:05] Production.INFO: call prc_setAccountDiscountPlan (1,11,1,31,31,'RMScheduler',2025-01-29 00:00:05,1,0,,,0) [2025-01-29 00:00:05] Production.INFO: next invoice date [2025-01-29 00:00:05] Production.INFO: 2025-03-01 [2025-01-29 00:00:05] Production.INFO: getdaysdiff [2025-01-29 00:00:05] Production.INFO: +31 [2025-01-29 00:00:05] Production.INFO: call prc_setAccountDiscountPlan (1,13,2,31,31,'RMScheduler',2025-01-29 00:00:05,1,0,,,0) [2025-01-29 00:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 21:00:07 [end_date_ymd] => 2025-01-29 00:00:07 [RateCDR] => 1 ) [2025-01-29 00:00:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 21:00:07' and `end` < '2025-01-29 00:00:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 00:00:21] Production.INFO: count ==724 [2025-01-29 00:00:21] Production.ERROR: pbx CDR StartTime 2025-01-28 21:00:07 - End Time 2025-01-29 00:00:07 [2025-01-29 00:00:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 00:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352507', 'tblTempUsageDetail_20' ) start [2025-01-29 00:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352507', 'tblTempUsageDetail_20' ) end [2025-01-29 00:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352507', 'tblTempVendorCDR_20' ) start [2025-01-29 00:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352507', 'tblTempVendorCDR_20' ) end [2025-01-29 00:00:21] Production.INFO: ProcessCDR(1,14352507,1,1,2) [2025-01-29 00:00:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14352507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 00:00:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14352507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 00:00:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14352507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 00:00:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14352507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 00:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352507', 'tblTempUsageDetail_20' ) start [2025-01-29 00:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352507', 'tblTempUsageDetail_20' ) end [2025-01-29 00:00:25] Production.ERROR: pbx prc_insertCDR start [2025-01-29 00:00:25] Production.ERROR: pbx prc_insertCDR end [2025-01-29 00:00:26] Production.INFO: ==28748== Releasing lock... [2025-01-29 00:00:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 00:00:26] Production.INFO: 35.25 MB #Memory Used# [2025-01-29 00:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 21:01:05 [end_date_ymd] => 2025-01-29 00:01:05 [RateCDR] => 1 ) [2025-01-29 00:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 21:01:05' and `end` < '2025-01-29 00:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 00:01:18] Production.INFO: count ==705 [2025-01-29 00:01:18] Production.ERROR: pbx CDR StartTime 2025-01-28 21:01:05 - End Time 2025-01-29 00:01:05 [2025-01-29 00:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 00:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352512', 'tblTempUsageDetail_20' ) start [2025-01-29 00:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352512', 'tblTempUsageDetail_20' ) end [2025-01-29 00:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352512', 'tblTempVendorCDR_20' ) start [2025-01-29 00:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352512', 'tblTempVendorCDR_20' ) end [2025-01-29 00:01:18] Production.INFO: ProcessCDR(1,14352512,1,1,2) [2025-01-29 00:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14352512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 00:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14352512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 00:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14352512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 00:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14352512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 00:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352512', 'tblTempUsageDetail_20' ) start [2025-01-29 00:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352512', 'tblTempUsageDetail_20' ) end [2025-01-29 00:01:21] Production.ERROR: pbx prc_insertCDR start [2025-01-29 00:01:21] Production.ERROR: pbx prc_insertCDR end [2025-01-29 00:01:21] Production.INFO: ==28837== Releasing lock... [2025-01-29 00:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 00:01:21] Production.INFO: 32.75 MB #Memory Used# [2025-01-29 00:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 21:02:05 [end_date_ymd] => 2025-01-29 00:02:05 [RateCDR] => 1 ) [2025-01-29 00:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 21:02:05' and `end` < '2025-01-29 00:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 00:02:35] Production.INFO: count ==258 [2025-01-29 00:02:35] Production.ERROR: pbx CDR StartTime 2025-01-28 21:02:05 - End Time 2025-01-29 00:02:05 [2025-01-29 00:02:35] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 00:02:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352517', 'tblTempUsageDetail_20' ) start [2025-01-29 00:02:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352517', 'tblTempUsageDetail_20' ) end [2025-01-29 00:02:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352517', 'tblTempVendorCDR_20' ) start [2025-01-29 00:02:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352517', 'tblTempVendorCDR_20' ) end [2025-01-29 00:02:35] Production.INFO: ProcessCDR(1,14352517,1,1,2) [2025-01-29 00:02:35] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14352517,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 00:02:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14352517,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 00:02:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14352517,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 00:02:39] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14352517,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 00:02:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352517', 'tblTempUsageDetail_20' ) start [2025-01-29 00:02:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352517', 'tblTempUsageDetail_20' ) end [2025-01-29 00:02:39] Production.ERROR: pbx prc_insertCDR start [2025-01-29 00:02:39] Production.ERROR: pbx prc_insertCDR end [2025-01-29 00:02:39] Production.INFO: ==28909== Releasing lock... [2025-01-29 00:02:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 00:02:39] Production.INFO: 30.75 MB #Memory Used# [2025-01-29 00:03:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 21:03:04 [end_date_ymd] => 2025-01-29 00:03:04 [RateCDR] => 1 ) [2025-01-29 00:03:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 21:03:04' and `end` < '2025-01-29 00:03:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 00:03:27] Production.INFO: count ==258 [2025-01-29 00:03:27] Production.ERROR: pbx CDR StartTime 2025-01-28 21:03:04 - End Time 2025-01-29 00:03:04 [2025-01-29 00:03:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 00:03:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352522', 'tblTempUsageDetail_20' ) start [2025-01-29 00:03:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352522', 'tblTempUsageDetail_20' ) end [2025-01-29 00:03:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352522', 'tblTempVendorCDR_20' ) start [2025-01-29 00:03:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352522', 'tblTempVendorCDR_20' ) end [2025-01-29 00:03:27] Production.INFO: ProcessCDR(1,14352522,1,1,2) [2025-01-29 00:03:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14352522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 00:03:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14352522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 00:03:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14352522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 00:03:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14352522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 00:03:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352522', 'tblTempUsageDetail_20' ) start [2025-01-29 00:03:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352522', 'tblTempUsageDetail_20' ) end [2025-01-29 00:03:30] Production.ERROR: pbx prc_insertCDR start [2025-01-29 00:03:30] Production.ERROR: pbx prc_insertCDR end [2025-01-29 00:03:30] Production.INFO: ==28979== Releasing lock... [2025-01-29 00:03:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 00:03:30] Production.INFO: 30.75 MB #Memory Used# [2025-01-29 00:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 21:04:05 [end_date_ymd] => 2025-01-29 00:04:05 [RateCDR] => 1 ) [2025-01-29 00:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 21:04:05' and `end` < '2025-01-29 00:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 00:04:34] Production.INFO: count ==260 [2025-01-29 00:04:34] Production.ERROR: pbx CDR StartTime 2025-01-28 21:04:05 - End Time 2025-01-29 00:04:05 [2025-01-29 00:04:34] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 00:04:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352527', 'tblTempUsageDetail_20' ) start [2025-01-29 00:04:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352527', 'tblTempUsageDetail_20' ) end [2025-01-29 00:04:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352527', 'tblTempVendorCDR_20' ) start [2025-01-29 00:04:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352527', 'tblTempVendorCDR_20' ) end [2025-01-29 00:04:34] Production.INFO: ProcessCDR(1,14352527,1,1,2) [2025-01-29 00:04:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14352527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 00:04:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14352527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 00:04:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14352527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 00:04:39] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14352527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 00:04:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352527', 'tblTempUsageDetail_20' ) start [2025-01-29 00:04:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352527', 'tblTempUsageDetail_20' ) end [2025-01-29 00:04:39] Production.ERROR: pbx prc_insertCDR start [2025-01-29 00:04:39] Production.ERROR: pbx prc_insertCDR end [2025-01-29 00:04:39] Production.INFO: ==29053== Releasing lock... [2025-01-29 00:04:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 00:04:39] Production.INFO: 30.75 MB #Memory Used# [2025-01-29 00:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 21:05:05 [end_date_ymd] => 2025-01-29 00:05:05 [RateCDR] => 1 ) [2025-01-29 00:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 21:05:05' and `end` < '2025-01-29 00:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 00:05:28] Production.INFO: count ==260 [2025-01-29 00:05:29] Production.ERROR: pbx CDR StartTime 2025-01-28 21:05:05 - End Time 2025-01-29 00:05:05 [2025-01-29 00:05:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 00:05:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352532', 'tblTempUsageDetail_20' ) start [2025-01-29 00:05:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352532', 'tblTempUsageDetail_20' ) end [2025-01-29 00:05:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352532', 'tblTempVendorCDR_20' ) start [2025-01-29 00:05:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352532', 'tblTempVendorCDR_20' ) end [2025-01-29 00:05:29] Production.INFO: ProcessCDR(1,14352532,1,1,2) [2025-01-29 00:05:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14352532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 00:05:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14352532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 00:05:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14352532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 00:05:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14352532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 00:05:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352532', 'tblTempUsageDetail_20' ) start [2025-01-29 00:05:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352532', 'tblTempUsageDetail_20' ) end [2025-01-29 00:05:32] Production.ERROR: pbx prc_insertCDR start [2025-01-29 00:05:32] Production.ERROR: pbx prc_insertCDR end [2025-01-29 00:05:32] Production.INFO: ==29123== Releasing lock... [2025-01-29 00:05:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 00:05:32] Production.INFO: 30.75 MB #Memory Used# [2025-01-29 00:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 21:06:05 [end_date_ymd] => 2025-01-29 00:06:05 [RateCDR] => 1 ) [2025-01-29 00:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 21:06:05' and `end` < '2025-01-29 00:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 00:06:23] Production.INFO: count ==257 [2025-01-29 00:06:23] Production.ERROR: pbx CDR StartTime 2025-01-28 21:06:05 - End Time 2025-01-29 00:06:05 [2025-01-29 00:06:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 00:06:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352537', 'tblTempUsageDetail_20' ) start [2025-01-29 00:06:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352537', 'tblTempUsageDetail_20' ) end [2025-01-29 00:06:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352537', 'tblTempVendorCDR_20' ) start [2025-01-29 00:06:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352537', 'tblTempVendorCDR_20' ) end [2025-01-29 00:06:23] Production.INFO: ProcessCDR(1,14352537,1,1,2) [2025-01-29 00:06:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14352537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 00:06:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14352537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 00:06:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14352537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 00:06:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14352537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 00:06:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352537', 'tblTempUsageDetail_20' ) start [2025-01-29 00:06:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352537', 'tblTempUsageDetail_20' ) end [2025-01-29 00:06:26] Production.ERROR: pbx prc_insertCDR start [2025-01-29 00:06:26] Production.ERROR: pbx prc_insertCDR end [2025-01-29 00:06:26] Production.INFO: ==29195== Releasing lock... [2025-01-29 00:06:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 00:06:26] Production.INFO: 31 MB #Memory Used# [2025-01-29 00:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 21:07:05 [end_date_ymd] => 2025-01-29 00:07:05 [RateCDR] => 1 ) [2025-01-29 00:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 21:07:05' and `end` < '2025-01-29 00:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 00:07:17] Production.INFO: count ==257 [2025-01-29 00:07:17] Production.ERROR: pbx CDR StartTime 2025-01-28 21:07:05 - End Time 2025-01-29 00:07:05 [2025-01-29 00:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 00:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352542', 'tblTempUsageDetail_20' ) start [2025-01-29 00:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352542', 'tblTempUsageDetail_20' ) end [2025-01-29 00:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352542', 'tblTempVendorCDR_20' ) start [2025-01-29 00:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352542', 'tblTempVendorCDR_20' ) end [2025-01-29 00:07:17] Production.INFO: ProcessCDR(1,14352542,1,1,2) [2025-01-29 00:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14352542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 00:07:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14352542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 00:07:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14352542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 00:07:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14352542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 00:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352542', 'tblTempUsageDetail_20' ) start [2025-01-29 00:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352542', 'tblTempUsageDetail_20' ) end [2025-01-29 00:07:20] Production.ERROR: pbx prc_insertCDR start [2025-01-29 00:07:20] Production.ERROR: pbx prc_insertCDR end [2025-01-29 00:07:20] Production.INFO: ==29263== Releasing lock... [2025-01-29 00:07:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 00:07:20] Production.INFO: 31 MB #Memory Used# [2025-01-29 00:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 21:08:05 [end_date_ymd] => 2025-01-29 00:08:05 [RateCDR] => 1 ) [2025-01-29 00:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 21:08:05' and `end` < '2025-01-29 00:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 00:08:18] Production.INFO: count ==253 [2025-01-29 00:08:18] Production.ERROR: pbx CDR StartTime 2025-01-28 21:08:05 - End Time 2025-01-29 00:08:05 [2025-01-29 00:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 00:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352547', 'tblTempUsageDetail_20' ) start [2025-01-29 00:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352547', 'tblTempUsageDetail_20' ) end [2025-01-29 00:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352547', 'tblTempVendorCDR_20' ) start [2025-01-29 00:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352547', 'tblTempVendorCDR_20' ) end [2025-01-29 00:08:18] Production.INFO: ProcessCDR(1,14352547,1,1,2) [2025-01-29 00:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14352547,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 00:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14352547,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 00:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14352547,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 00:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14352547,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 00:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352547', 'tblTempUsageDetail_20' ) start [2025-01-29 00:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352547', 'tblTempUsageDetail_20' ) end [2025-01-29 00:08:21] Production.ERROR: pbx prc_insertCDR start [2025-01-29 00:08:21] Production.ERROR: pbx prc_insertCDR end [2025-01-29 00:08:21] Production.INFO: ==29334== Releasing lock... [2025-01-29 00:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 00:08:21] Production.INFO: 31 MB #Memory Used# [2025-01-29 00:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 21:09:06 [end_date_ymd] => 2025-01-29 00:09:06 [RateCDR] => 1 ) [2025-01-29 00:09:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 21:09:06' and `end` < '2025-01-29 00:09:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 00:09:19] Production.INFO: count ==250 [2025-01-29 00:09:19] Production.ERROR: pbx CDR StartTime 2025-01-28 21:09:06 - End Time 2025-01-29 00:09:06 [2025-01-29 00:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 00:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352552', 'tblTempUsageDetail_20' ) start [2025-01-29 00:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352552', 'tblTempUsageDetail_20' ) end [2025-01-29 00:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352552', 'tblTempVendorCDR_20' ) start [2025-01-29 00:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352552', 'tblTempVendorCDR_20' ) end [2025-01-29 00:09:19] Production.INFO: ProcessCDR(1,14352552,1,1,2) [2025-01-29 00:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14352552,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 00:09:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14352552,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 00:09:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14352552,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 00:09:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14352552,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 00:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352552', 'tblTempUsageDetail_20' ) start [2025-01-29 00:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352552', 'tblTempUsageDetail_20' ) end [2025-01-29 00:09:23] Production.ERROR: pbx prc_insertCDR start [2025-01-29 00:09:23] Production.ERROR: pbx prc_insertCDR end [2025-01-29 00:09:23] Production.INFO: ==29408== Releasing lock... [2025-01-29 00:09:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 00:09:23] Production.INFO: 30.75 MB #Memory Used# [2025-01-29 00:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 21:10:06 [end_date_ymd] => 2025-01-29 00:10:06 [RateCDR] => 1 ) [2025-01-29 00:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 21:10:06' and `end` < '2025-01-29 00:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 00:10:31] Production.INFO: count ==248 [2025-01-29 00:10:31] Production.ERROR: pbx CDR StartTime 2025-01-28 21:10:06 - End Time 2025-01-29 00:10:06 [2025-01-29 00:10:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 00:10:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352558', 'tblTempUsageDetail_20' ) start [2025-01-29 00:10:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352558', 'tblTempUsageDetail_20' ) end [2025-01-29 00:10:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352558', 'tblTempVendorCDR_20' ) start [2025-01-29 00:10:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352558', 'tblTempVendorCDR_20' ) end [2025-01-29 00:10:31] Production.INFO: ProcessCDR(1,14352558,1,1,2) [2025-01-29 00:10:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14352558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 00:10:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14352558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 00:10:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14352558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 00:10:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14352558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 00:10:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352558', 'tblTempUsageDetail_20' ) start [2025-01-29 00:10:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352558', 'tblTempUsageDetail_20' ) end [2025-01-29 00:10:34] Production.ERROR: pbx prc_insertCDR start [2025-01-29 00:10:34] Production.ERROR: pbx prc_insertCDR end [2025-01-29 00:10:34] Production.INFO: ==29483== Releasing lock... [2025-01-29 00:10:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 00:10:34] Production.INFO: 30.75 MB #Memory Used# [2025-01-29 00:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 21:11:05 [end_date_ymd] => 2025-01-29 00:11:05 [RateCDR] => 1 ) [2025-01-29 00:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 21:11:05' and `end` < '2025-01-29 00:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 00:11:32] Production.INFO: count ==247 [2025-01-29 00:11:33] Production.ERROR: pbx CDR StartTime 2025-01-28 21:11:05 - End Time 2025-01-29 00:11:05 [2025-01-29 00:11:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 00:11:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352563', 'tblTempUsageDetail_20' ) start [2025-01-29 00:11:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352563', 'tblTempUsageDetail_20' ) end [2025-01-29 00:11:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352563', 'tblTempVendorCDR_20' ) start [2025-01-29 00:11:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352563', 'tblTempVendorCDR_20' ) end [2025-01-29 00:11:33] Production.INFO: ProcessCDR(1,14352563,1,1,2) [2025-01-29 00:11:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14352563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 00:11:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14352563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 00:11:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14352563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 00:11:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14352563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 00:11:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352563', 'tblTempUsageDetail_20' ) start [2025-01-29 00:11:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352563', 'tblTempUsageDetail_20' ) end [2025-01-29 00:11:36] Production.ERROR: pbx prc_insertCDR start [2025-01-29 00:11:36] Production.ERROR: pbx prc_insertCDR end [2025-01-29 00:11:36] Production.INFO: ==29597== Releasing lock... [2025-01-29 00:11:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 00:11:36] Production.INFO: 30.25 MB #Memory Used# [2025-01-29 00:12:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 21:12:04 [end_date_ymd] => 2025-01-29 00:12:04 [RateCDR] => 1 ) [2025-01-29 00:12:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 21:12:04' and `end` < '2025-01-29 00:12:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 00:12:18] Production.INFO: count ==246 [2025-01-29 00:12:18] Production.ERROR: pbx CDR StartTime 2025-01-28 21:12:04 - End Time 2025-01-29 00:12:04 [2025-01-29 00:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 00:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352568', 'tblTempUsageDetail_20' ) start [2025-01-29 00:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352568', 'tblTempUsageDetail_20' ) end [2025-01-29 00:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352568', 'tblTempVendorCDR_20' ) start [2025-01-29 00:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352568', 'tblTempVendorCDR_20' ) end [2025-01-29 00:12:18] Production.INFO: ProcessCDR(1,14352568,1,1,2) [2025-01-29 00:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14352568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 00:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14352568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 00:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14352568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 00:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14352568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 00:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352568', 'tblTempUsageDetail_20' ) start [2025-01-29 00:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352568', 'tblTempUsageDetail_20' ) end [2025-01-29 00:12:21] Production.ERROR: pbx prc_insertCDR start [2025-01-29 00:12:21] Production.ERROR: pbx prc_insertCDR end [2025-01-29 00:12:21] Production.INFO: ==29667== Releasing lock... [2025-01-29 00:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 00:12:21] Production.INFO: 30.5 MB #Memory Used# [2025-01-29 00:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 21:13:05 [end_date_ymd] => 2025-01-29 00:13:05 [RateCDR] => 1 ) [2025-01-29 00:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 21:13:05' and `end` < '2025-01-29 00:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 00:13:18] Production.INFO: count ==242 [2025-01-29 00:13:18] Production.ERROR: pbx CDR StartTime 2025-01-28 21:13:05 - End Time 2025-01-29 00:13:05 [2025-01-29 00:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 00:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352573', 'tblTempUsageDetail_20' ) start [2025-01-29 00:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352573', 'tblTempUsageDetail_20' ) end [2025-01-29 00:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352573', 'tblTempVendorCDR_20' ) start [2025-01-29 00:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352573', 'tblTempVendorCDR_20' ) end [2025-01-29 00:13:18] Production.INFO: ProcessCDR(1,14352573,1,1,2) [2025-01-29 00:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14352573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 00:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14352573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 00:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14352573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 00:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14352573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 00:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352573', 'tblTempUsageDetail_20' ) start [2025-01-29 00:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352573', 'tblTempUsageDetail_20' ) end [2025-01-29 00:13:21] Production.ERROR: pbx prc_insertCDR start [2025-01-29 00:13:21] Production.ERROR: pbx prc_insertCDR end [2025-01-29 00:13:21] Production.INFO: ==29739== Releasing lock... [2025-01-29 00:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 00:13:21] Production.INFO: 30.5 MB #Memory Used# [2025-01-29 00:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 21:14:05 [end_date_ymd] => 2025-01-29 00:14:05 [RateCDR] => 1 ) [2025-01-29 00:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 21:14:05' and `end` < '2025-01-29 00:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 00:14:17] Production.INFO: count ==242 [2025-01-29 00:14:17] Production.ERROR: pbx CDR StartTime 2025-01-28 21:14:05 - End Time 2025-01-29 00:14:05 [2025-01-29 00:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 00:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352578', 'tblTempUsageDetail_20' ) start [2025-01-29 00:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352578', 'tblTempUsageDetail_20' ) end [2025-01-29 00:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352578', 'tblTempVendorCDR_20' ) start [2025-01-29 00:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352578', 'tblTempVendorCDR_20' ) end [2025-01-29 00:14:17] Production.INFO: ProcessCDR(1,14352578,1,1,2) [2025-01-29 00:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14352578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 00:14:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14352578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 00:14:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14352578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 00:14:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14352578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 00:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352578', 'tblTempUsageDetail_20' ) start [2025-01-29 00:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352578', 'tblTempUsageDetail_20' ) end [2025-01-29 00:14:20] Production.ERROR: pbx prc_insertCDR start [2025-01-29 00:14:20] Production.ERROR: pbx prc_insertCDR end [2025-01-29 00:14:20] Production.INFO: ==29811== Releasing lock... [2025-01-29 00:14:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 00:14:20] Production.INFO: 30.5 MB #Memory Used# [2025-01-29 00:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 21:15:05 [end_date_ymd] => 2025-01-29 00:15:05 [RateCDR] => 1 ) [2025-01-29 00:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 21:15:05' and `end` < '2025-01-29 00:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 00:15:18] Production.INFO: count ==243 [2025-01-29 00:15:18] Production.ERROR: pbx CDR StartTime 2025-01-28 21:15:05 - End Time 2025-01-29 00:15:05 [2025-01-29 00:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 00:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352583', 'tblTempUsageDetail_20' ) start [2025-01-29 00:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352583', 'tblTempUsageDetail_20' ) end [2025-01-29 00:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352583', 'tblTempVendorCDR_20' ) start [2025-01-29 00:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352583', 'tblTempVendorCDR_20' ) end [2025-01-29 00:15:18] Production.INFO: ProcessCDR(1,14352583,1,1,2) [2025-01-29 00:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14352583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 00:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14352583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 00:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14352583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 00:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14352583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 00:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352583', 'tblTempUsageDetail_20' ) start [2025-01-29 00:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352583', 'tblTempUsageDetail_20' ) end [2025-01-29 00:15:21] Production.ERROR: pbx prc_insertCDR start [2025-01-29 00:15:21] Production.ERROR: pbx prc_insertCDR end [2025-01-29 00:15:21] Production.INFO: ==29883== Releasing lock... [2025-01-29 00:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 00:15:21] Production.INFO: 30.75 MB #Memory Used# [2025-01-29 00:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 21:16:06 [end_date_ymd] => 2025-01-29 00:16:06 [RateCDR] => 1 ) [2025-01-29 00:16:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 21:16:06' and `end` < '2025-01-29 00:16:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 00:16:19] Production.INFO: count ==246 [2025-01-29 00:16:19] Production.ERROR: pbx CDR StartTime 2025-01-28 21:16:06 - End Time 2025-01-29 00:16:06 [2025-01-29 00:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 00:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352588', 'tblTempUsageDetail_20' ) start [2025-01-29 00:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352588', 'tblTempUsageDetail_20' ) end [2025-01-29 00:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352588', 'tblTempVendorCDR_20' ) start [2025-01-29 00:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352588', 'tblTempVendorCDR_20' ) end [2025-01-29 00:16:19] Production.INFO: ProcessCDR(1,14352588,1,1,2) [2025-01-29 00:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14352588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 00:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14352588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 00:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14352588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 00:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14352588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 00:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352588', 'tblTempUsageDetail_20' ) start [2025-01-29 00:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352588', 'tblTempUsageDetail_20' ) end [2025-01-29 00:16:22] Production.ERROR: pbx prc_insertCDR start [2025-01-29 00:16:22] Production.ERROR: pbx prc_insertCDR end [2025-01-29 00:16:22] Production.INFO: ==29952== Releasing lock... [2025-01-29 00:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 00:16:22] Production.INFO: 30.25 MB #Memory Used# [2025-01-29 00:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 21:17:05 [end_date_ymd] => 2025-01-29 00:17:05 [RateCDR] => 1 ) [2025-01-29 00:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 21:17:05' and `end` < '2025-01-29 00:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 00:17:18] Production.INFO: count ==246 [2025-01-29 00:17:18] Production.ERROR: pbx CDR StartTime 2025-01-28 21:17:05 - End Time 2025-01-29 00:17:05 [2025-01-29 00:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 00:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352593', 'tblTempUsageDetail_20' ) start [2025-01-29 00:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352593', 'tblTempUsageDetail_20' ) end [2025-01-29 00:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352593', 'tblTempVendorCDR_20' ) start [2025-01-29 00:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352593', 'tblTempVendorCDR_20' ) end [2025-01-29 00:17:18] Production.INFO: ProcessCDR(1,14352593,1,1,2) [2025-01-29 00:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14352593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 00:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14352593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 00:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14352593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 00:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14352593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 00:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352593', 'tblTempUsageDetail_20' ) start [2025-01-29 00:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352593', 'tblTempUsageDetail_20' ) end [2025-01-29 00:17:21] Production.ERROR: pbx prc_insertCDR start [2025-01-29 00:17:21] Production.ERROR: pbx prc_insertCDR end [2025-01-29 00:17:21] Production.INFO: ==30024== Releasing lock... [2025-01-29 00:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 00:17:21] Production.INFO: 30.25 MB #Memory Used# [2025-01-29 00:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 21:18:05 [end_date_ymd] => 2025-01-29 00:18:05 [RateCDR] => 1 ) [2025-01-29 00:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 21:18:05' and `end` < '2025-01-29 00:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 00:18:20] Production.INFO: count ==245 [2025-01-29 00:18:20] Production.ERROR: pbx CDR StartTime 2025-01-28 21:18:05 - End Time 2025-01-29 00:18:05 [2025-01-29 00:18:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 00:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352597', 'tblTempUsageDetail_20' ) start [2025-01-29 00:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352597', 'tblTempUsageDetail_20' ) end [2025-01-29 00:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352597', 'tblTempVendorCDR_20' ) start [2025-01-29 00:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352597', 'tblTempVendorCDR_20' ) end [2025-01-29 00:18:20] Production.INFO: ProcessCDR(1,14352597,1,1,2) [2025-01-29 00:18:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14352597,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 00:18:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14352597,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 00:18:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14352597,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 00:18:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14352597,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 00:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352597', 'tblTempUsageDetail_20' ) start [2025-01-29 00:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352597', 'tblTempUsageDetail_20' ) end [2025-01-29 00:18:23] Production.ERROR: pbx prc_insertCDR start [2025-01-29 00:18:23] Production.ERROR: pbx prc_insertCDR end [2025-01-29 00:18:23] Production.INFO: ==30111== Releasing lock... [2025-01-29 00:18:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 00:18:23] Production.INFO: 30.25 MB #Memory Used# [2025-01-29 00:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 21:19:05 [end_date_ymd] => 2025-01-29 00:19:05 [RateCDR] => 1 ) [2025-01-29 00:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 21:19:05' and `end` < '2025-01-29 00:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 00:19:18] Production.INFO: count ==244 [2025-01-29 00:19:18] Production.ERROR: pbx CDR StartTime 2025-01-28 21:19:05 - End Time 2025-01-29 00:19:05 [2025-01-29 00:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 00:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352603', 'tblTempUsageDetail_20' ) start [2025-01-29 00:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352603', 'tblTempUsageDetail_20' ) end [2025-01-29 00:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352603', 'tblTempVendorCDR_20' ) start [2025-01-29 00:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352603', 'tblTempVendorCDR_20' ) end [2025-01-29 00:19:18] Production.INFO: ProcessCDR(1,14352603,1,1,2) [2025-01-29 00:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14352603,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 00:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14352603,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 00:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14352603,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 00:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14352603,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 00:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352603', 'tblTempUsageDetail_20' ) start [2025-01-29 00:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352603', 'tblTempUsageDetail_20' ) end [2025-01-29 00:19:21] Production.ERROR: pbx prc_insertCDR start [2025-01-29 00:19:21] Production.ERROR: pbx prc_insertCDR end [2025-01-29 00:19:21] Production.INFO: ==30184== Releasing lock... [2025-01-29 00:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 00:19:21] Production.INFO: 30.5 MB #Memory Used# [2025-01-29 00:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 21:20:06 [end_date_ymd] => 2025-01-29 00:20:06 [RateCDR] => 1 ) [2025-01-29 00:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 21:20:06' and `end` < '2025-01-29 00:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 00:20:19] Production.INFO: count ==251 [2025-01-29 00:20:19] Production.ERROR: pbx CDR StartTime 2025-01-28 21:20:06 - End Time 2025-01-29 00:20:06 [2025-01-29 00:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 00:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352609', 'tblTempUsageDetail_20' ) start [2025-01-29 00:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352609', 'tblTempUsageDetail_20' ) end [2025-01-29 00:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352609', 'tblTempVendorCDR_20' ) start [2025-01-29 00:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352609', 'tblTempVendorCDR_20' ) end [2025-01-29 00:20:19] Production.INFO: ProcessCDR(1,14352609,1,1,2) [2025-01-29 00:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14352609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 00:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14352609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 00:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14352609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 00:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14352609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 00:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352609', 'tblTempUsageDetail_20' ) start [2025-01-29 00:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352609', 'tblTempUsageDetail_20' ) end [2025-01-29 00:20:22] Production.ERROR: pbx prc_insertCDR start [2025-01-29 00:20:22] Production.ERROR: pbx prc_insertCDR end [2025-01-29 00:20:22] Production.INFO: ==30259== Releasing lock... [2025-01-29 00:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 00:20:22] Production.INFO: 30.5 MB #Memory Used# [2025-01-29 00:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 21:21:05 [end_date_ymd] => 2025-01-29 00:21:05 [RateCDR] => 1 ) [2025-01-29 00:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 21:21:05' and `end` < '2025-01-29 00:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 00:21:20] Production.INFO: count ==251 [2025-01-29 00:21:20] Production.ERROR: pbx CDR StartTime 2025-01-28 21:21:05 - End Time 2025-01-29 00:21:05 [2025-01-29 00:21:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 00:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352614', 'tblTempUsageDetail_20' ) start [2025-01-29 00:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352614', 'tblTempUsageDetail_20' ) end [2025-01-29 00:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352614', 'tblTempVendorCDR_20' ) start [2025-01-29 00:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352614', 'tblTempVendorCDR_20' ) end [2025-01-29 00:21:20] Production.INFO: ProcessCDR(1,14352614,1,1,2) [2025-01-29 00:21:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14352614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 00:21:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14352614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 00:21:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14352614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 00:21:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14352614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 00:21:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352614', 'tblTempUsageDetail_20' ) start [2025-01-29 00:21:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352614', 'tblTempUsageDetail_20' ) end [2025-01-29 00:21:31] Production.ERROR: pbx prc_insertCDR start [2025-01-29 00:21:31] Production.ERROR: pbx prc_insertCDR end [2025-01-29 00:21:31] Production.INFO: ==30334== Releasing lock... [2025-01-29 00:21:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 00:21:31] Production.INFO: 30.5 MB #Memory Used# [2025-01-29 00:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 21:22:05 [end_date_ymd] => 2025-01-29 00:22:05 [RateCDR] => 1 ) [2025-01-29 00:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 21:22:05' and `end` < '2025-01-29 00:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 00:22:18] Production.INFO: count ==250 [2025-01-29 00:22:18] Production.ERROR: pbx CDR StartTime 2025-01-28 21:22:05 - End Time 2025-01-29 00:22:05 [2025-01-29 00:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 00:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352619', 'tblTempUsageDetail_20' ) start [2025-01-29 00:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352619', 'tblTempUsageDetail_20' ) end [2025-01-29 00:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352619', 'tblTempVendorCDR_20' ) start [2025-01-29 00:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352619', 'tblTempVendorCDR_20' ) end [2025-01-29 00:22:18] Production.INFO: ProcessCDR(1,14352619,1,1,2) [2025-01-29 00:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14352619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 00:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14352619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 00:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14352619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 00:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14352619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 00:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352619', 'tblTempUsageDetail_20' ) start [2025-01-29 00:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352619', 'tblTempUsageDetail_20' ) end [2025-01-29 00:22:21] Production.ERROR: pbx prc_insertCDR start [2025-01-29 00:22:21] Production.ERROR: pbx prc_insertCDR end [2025-01-29 00:22:21] Production.INFO: ==30407== Releasing lock... [2025-01-29 00:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 00:22:21] Production.INFO: 30.75 MB #Memory Used# [2025-01-29 00:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 21:23:05 [end_date_ymd] => 2025-01-29 00:23:05 [RateCDR] => 1 ) [2025-01-29 00:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 21:23:05' and `end` < '2025-01-29 00:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 00:23:17] Production.INFO: count ==246 [2025-01-29 00:23:17] Production.ERROR: pbx CDR StartTime 2025-01-28 21:23:05 - End Time 2025-01-29 00:23:05 [2025-01-29 00:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 00:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352624', 'tblTempUsageDetail_20' ) start [2025-01-29 00:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352624', 'tblTempUsageDetail_20' ) end [2025-01-29 00:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352624', 'tblTempVendorCDR_20' ) start [2025-01-29 00:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352624', 'tblTempVendorCDR_20' ) end [2025-01-29 00:23:17] Production.INFO: ProcessCDR(1,14352624,1,1,2) [2025-01-29 00:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14352624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 00:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14352624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 00:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14352624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 00:23:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14352624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 00:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352624', 'tblTempUsageDetail_20' ) start [2025-01-29 00:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352624', 'tblTempUsageDetail_20' ) end [2025-01-29 00:23:20] Production.ERROR: pbx prc_insertCDR start [2025-01-29 00:23:20] Production.ERROR: pbx prc_insertCDR end [2025-01-29 00:23:20] Production.INFO: ==30498== Releasing lock... [2025-01-29 00:23:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 00:23:20] Production.INFO: 30.75 MB #Memory Used# [2025-01-29 00:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 21:24:05 [end_date_ymd] => 2025-01-29 00:24:05 [RateCDR] => 1 ) [2025-01-29 00:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 21:24:05' and `end` < '2025-01-29 00:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 00:24:18] Production.INFO: count ==246 [2025-01-29 00:24:18] Production.ERROR: pbx CDR StartTime 2025-01-28 21:24:05 - End Time 2025-01-29 00:24:05 [2025-01-29 00:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 00:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352629', 'tblTempUsageDetail_20' ) start [2025-01-29 00:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352629', 'tblTempUsageDetail_20' ) end [2025-01-29 00:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352629', 'tblTempVendorCDR_20' ) start [2025-01-29 00:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352629', 'tblTempVendorCDR_20' ) end [2025-01-29 00:24:18] Production.INFO: ProcessCDR(1,14352629,1,1,2) [2025-01-29 00:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14352629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 00:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14352629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 00:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14352629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 00:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14352629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 00:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352629', 'tblTempUsageDetail_20' ) start [2025-01-29 00:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352629', 'tblTempUsageDetail_20' ) end [2025-01-29 00:24:21] Production.ERROR: pbx prc_insertCDR start [2025-01-29 00:24:21] Production.ERROR: pbx prc_insertCDR end [2025-01-29 00:24:21] Production.INFO: ==30584== Releasing lock... [2025-01-29 00:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 00:24:21] Production.INFO: 30.75 MB #Memory Used# [2025-01-29 00:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 21:25:05 [end_date_ymd] => 2025-01-29 00:25:05 [RateCDR] => 1 ) [2025-01-29 00:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 21:25:05' and `end` < '2025-01-29 00:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 00:25:17] Production.INFO: count ==246 [2025-01-29 00:25:17] Production.ERROR: pbx CDR StartTime 2025-01-28 21:25:05 - End Time 2025-01-29 00:25:05 [2025-01-29 00:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 00:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352634', 'tblTempUsageDetail_20' ) start [2025-01-29 00:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352634', 'tblTempUsageDetail_20' ) end [2025-01-29 00:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352634', 'tblTempVendorCDR_20' ) start [2025-01-29 00:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352634', 'tblTempVendorCDR_20' ) end [2025-01-29 00:25:17] Production.INFO: ProcessCDR(1,14352634,1,1,2) [2025-01-29 00:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14352634,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 00:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14352634,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 00:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14352634,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 00:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14352634,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 00:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352634', 'tblTempUsageDetail_20' ) start [2025-01-29 00:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352634', 'tblTempUsageDetail_20' ) end [2025-01-29 00:25:21] Production.ERROR: pbx prc_insertCDR start [2025-01-29 00:25:21] Production.ERROR: pbx prc_insertCDR end [2025-01-29 00:25:21] Production.INFO: ==30675== Releasing lock... [2025-01-29 00:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 00:25:21] Production.INFO: 30.75 MB #Memory Used# [2025-01-29 00:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 21:26:05 [end_date_ymd] => 2025-01-29 00:26:05 [RateCDR] => 1 ) [2025-01-29 00:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 21:26:05' and `end` < '2025-01-29 00:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 00:26:18] Production.INFO: count ==246 [2025-01-29 00:26:18] Production.ERROR: pbx CDR StartTime 2025-01-28 21:26:05 - End Time 2025-01-29 00:26:05 [2025-01-29 00:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 00:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352639', 'tblTempUsageDetail_20' ) start [2025-01-29 00:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352639', 'tblTempUsageDetail_20' ) end [2025-01-29 00:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352639', 'tblTempVendorCDR_20' ) start [2025-01-29 00:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352639', 'tblTempVendorCDR_20' ) end [2025-01-29 00:26:18] Production.INFO: ProcessCDR(1,14352639,1,1,2) [2025-01-29 00:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14352639,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 00:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14352639,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 00:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14352639,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 00:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14352639,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 00:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352639', 'tblTempUsageDetail_20' ) start [2025-01-29 00:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352639', 'tblTempUsageDetail_20' ) end [2025-01-29 00:26:21] Production.ERROR: pbx prc_insertCDR start [2025-01-29 00:26:21] Production.ERROR: pbx prc_insertCDR end [2025-01-29 00:26:21] Production.INFO: ==30763== Releasing lock... [2025-01-29 00:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 00:26:21] Production.INFO: 30.75 MB #Memory Used# [2025-01-29 00:27:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 21:27:04 [end_date_ymd] => 2025-01-29 00:27:04 [RateCDR] => 1 ) [2025-01-29 00:27:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 21:27:04' and `end` < '2025-01-29 00:27:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 00:27:18] Production.INFO: count ==246 [2025-01-29 00:27:18] Production.ERROR: pbx CDR StartTime 2025-01-28 21:27:04 - End Time 2025-01-29 00:27:04 [2025-01-29 00:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 00:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352644', 'tblTempUsageDetail_20' ) start [2025-01-29 00:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352644', 'tblTempUsageDetail_20' ) end [2025-01-29 00:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352644', 'tblTempVendorCDR_20' ) start [2025-01-29 00:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352644', 'tblTempVendorCDR_20' ) end [2025-01-29 00:27:18] Production.INFO: ProcessCDR(1,14352644,1,1,2) [2025-01-29 00:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14352644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 00:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14352644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 00:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14352644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 00:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14352644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 00:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352644', 'tblTempUsageDetail_20' ) start [2025-01-29 00:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352644', 'tblTempUsageDetail_20' ) end [2025-01-29 00:27:21] Production.ERROR: pbx prc_insertCDR start [2025-01-29 00:27:21] Production.ERROR: pbx prc_insertCDR end [2025-01-29 00:27:21] Production.INFO: ==30889== Releasing lock... [2025-01-29 00:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 00:27:21] Production.INFO: 30.75 MB #Memory Used# [2025-01-29 00:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 21:28:05 [end_date_ymd] => 2025-01-29 00:28:05 [RateCDR] => 1 ) [2025-01-29 00:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 21:28:05' and `end` < '2025-01-29 00:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 00:28:20] Production.INFO: count ==246 [2025-01-29 00:28:20] Production.ERROR: pbx CDR StartTime 2025-01-28 21:28:05 - End Time 2025-01-29 00:28:05 [2025-01-29 00:28:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 00:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352649', 'tblTempUsageDetail_20' ) start [2025-01-29 00:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352649', 'tblTempUsageDetail_20' ) end [2025-01-29 00:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352649', 'tblTempVendorCDR_20' ) start [2025-01-29 00:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352649', 'tblTempVendorCDR_20' ) end [2025-01-29 00:28:20] Production.INFO: ProcessCDR(1,14352649,1,1,2) [2025-01-29 00:28:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14352649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 00:28:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14352649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 00:28:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14352649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 00:28:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14352649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 00:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352649', 'tblTempUsageDetail_20' ) start [2025-01-29 00:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352649', 'tblTempUsageDetail_20' ) end [2025-01-29 00:28:24] Production.ERROR: pbx prc_insertCDR start [2025-01-29 00:28:24] Production.ERROR: pbx prc_insertCDR end [2025-01-29 00:28:24] Production.INFO: ==30982== Releasing lock... [2025-01-29 00:28:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 00:28:24] Production.INFO: 30.75 MB #Memory Used# [2025-01-29 00:29:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 21:29:04 [end_date_ymd] => 2025-01-29 00:29:04 [RateCDR] => 1 ) [2025-01-29 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-01-28 21:29:04' and `end` < '2025-01-29 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-01-29 00:29:17] Production.INFO: count ==244 [2025-01-29 00:29:17] Production.ERROR: pbx CDR StartTime 2025-01-28 21:29:04 - End Time 2025-01-29 00:29:04 [2025-01-29 00:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 00:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352654', 'tblTempUsageDetail_20' ) start [2025-01-29 00:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352654', 'tblTempUsageDetail_20' ) end [2025-01-29 00:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352654', 'tblTempVendorCDR_20' ) start [2025-01-29 00:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352654', 'tblTempVendorCDR_20' ) end [2025-01-29 00:29:17] Production.INFO: ProcessCDR(1,14352654,1,1,2) [2025-01-29 00:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14352654,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 00:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14352654,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 00:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14352654,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 00:29:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14352654,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 00:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352654', 'tblTempUsageDetail_20' ) start [2025-01-29 00:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352654', 'tblTempUsageDetail_20' ) end [2025-01-29 00:29:20] Production.ERROR: pbx prc_insertCDR start [2025-01-29 00:29:20] Production.ERROR: pbx prc_insertCDR end [2025-01-29 00:29:20] Production.INFO: ==31073== Releasing lock... [2025-01-29 00:29:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 00:29:20] Production.INFO: 30.5 MB #Memory Used# [2025-01-29 00:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 21:30:06 [end_date_ymd] => 2025-01-29 00:30:06 [RateCDR] => 1 ) [2025-01-29 00:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 21:30:06' and `end` < '2025-01-29 00:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 00:30:19] Production.INFO: count ==242 [2025-01-29 00:30:19] Production.ERROR: pbx CDR StartTime 2025-01-28 21:30:06 - End Time 2025-01-29 00:30:06 [2025-01-29 00:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 00:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352660', 'tblTempUsageDetail_20' ) start [2025-01-29 00:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352660', 'tblTempUsageDetail_20' ) end [2025-01-29 00:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352660', 'tblTempVendorCDR_20' ) start [2025-01-29 00:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352660', 'tblTempVendorCDR_20' ) end [2025-01-29 00:30:19] Production.INFO: ProcessCDR(1,14352660,1,1,2) [2025-01-29 00:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14352660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 00:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14352660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 00:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14352660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 00:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14352660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 00:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352660', 'tblTempUsageDetail_20' ) start [2025-01-29 00:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352660', 'tblTempUsageDetail_20' ) end [2025-01-29 00:30:22] Production.ERROR: pbx prc_insertCDR start [2025-01-29 00:30:22] Production.ERROR: pbx prc_insertCDR end [2025-01-29 00:30:22] Production.INFO: ==31165== Releasing lock... [2025-01-29 00:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 00:30:22] Production.INFO: 30.75 MB #Memory Used# [2025-01-29 00:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 21:31:05 [end_date_ymd] => 2025-01-29 00:31:05 [RateCDR] => 1 ) [2025-01-29 00:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 21:31:05' and `end` < '2025-01-29 00:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 00:31:18] Production.INFO: count ==249 [2025-01-29 00:31:18] Production.ERROR: pbx CDR StartTime 2025-01-28 21:31:05 - End Time 2025-01-29 00:31:05 [2025-01-29 00:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 00:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352665', 'tblTempUsageDetail_20' ) start [2025-01-29 00:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352665', 'tblTempUsageDetail_20' ) end [2025-01-29 00:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352665', 'tblTempVendorCDR_20' ) start [2025-01-29 00:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352665', 'tblTempVendorCDR_20' ) end [2025-01-29 00:31:18] Production.INFO: ProcessCDR(1,14352665,1,1,2) [2025-01-29 00:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14352665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 00:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14352665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 00:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14352665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 00:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14352665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 00:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352665', 'tblTempUsageDetail_20' ) start [2025-01-29 00:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352665', 'tblTempUsageDetail_20' ) end [2025-01-29 00:31:21] Production.ERROR: pbx prc_insertCDR start [2025-01-29 00:31:21] Production.ERROR: pbx prc_insertCDR end [2025-01-29 00:31:21] Production.INFO: ==31250== Releasing lock... [2025-01-29 00:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 00:31:21] Production.INFO: 30.25 MB #Memory Used# [2025-01-29 00:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 21:32:05 [end_date_ymd] => 2025-01-29 00:32:05 [RateCDR] => 1 ) [2025-01-29 00:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 21:32:05' and `end` < '2025-01-29 00:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 00:32:18] Production.INFO: count ==240 [2025-01-29 00:32:18] Production.ERROR: pbx CDR StartTime 2025-01-28 21:32:05 - End Time 2025-01-29 00:32:05 [2025-01-29 00:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 00:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352670', 'tblTempUsageDetail_20' ) start [2025-01-29 00:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352670', 'tblTempUsageDetail_20' ) end [2025-01-29 00:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352670', 'tblTempVendorCDR_20' ) start [2025-01-29 00:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352670', 'tblTempVendorCDR_20' ) end [2025-01-29 00:32:18] Production.INFO: ProcessCDR(1,14352670,1,1,2) [2025-01-29 00:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14352670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 00:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14352670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 00:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14352670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 00:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14352670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 00:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352670', 'tblTempUsageDetail_20' ) start [2025-01-29 00:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352670', 'tblTempUsageDetail_20' ) end [2025-01-29 00:32:21] Production.ERROR: pbx prc_insertCDR start [2025-01-29 00:32:21] Production.ERROR: pbx prc_insertCDR end [2025-01-29 00:32:21] Production.INFO: ==31341== Releasing lock... [2025-01-29 00:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 00:32:21] Production.INFO: 30.75 MB #Memory Used# [2025-01-29 00:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 21:33:05 [end_date_ymd] => 2025-01-29 00:33:05 [RateCDR] => 1 ) [2025-01-29 00:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 21:33:05' and `end` < '2025-01-29 00:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 00:33:18] Production.INFO: count ==233 [2025-01-29 00:33:18] Production.ERROR: pbx CDR StartTime 2025-01-28 21:33:05 - End Time 2025-01-29 00:33:05 [2025-01-29 00:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 00:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352675', 'tblTempUsageDetail_20' ) start [2025-01-29 00:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352675', 'tblTempUsageDetail_20' ) end [2025-01-29 00:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352675', 'tblTempVendorCDR_20' ) start [2025-01-29 00:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352675', 'tblTempVendorCDR_20' ) end [2025-01-29 00:33:18] Production.INFO: ProcessCDR(1,14352675,1,1,2) [2025-01-29 00:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14352675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 00:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14352675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 00:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14352675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 00:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14352675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 00:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352675', 'tblTempUsageDetail_20' ) start [2025-01-29 00:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352675', 'tblTempUsageDetail_20' ) end [2025-01-29 00:33:21] Production.ERROR: pbx prc_insertCDR start [2025-01-29 00:33:21] Production.ERROR: pbx prc_insertCDR end [2025-01-29 00:33:21] Production.INFO: ==31426== Releasing lock... [2025-01-29 00:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 00:33:21] Production.INFO: 30.5 MB #Memory Used# [2025-01-29 00:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 21:34:05 [end_date_ymd] => 2025-01-29 00:34:05 [RateCDR] => 1 ) [2025-01-29 00:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 21:34:05' and `end` < '2025-01-29 00:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 00:34:18] Production.INFO: count ==229 [2025-01-29 00:34:18] Production.ERROR: pbx CDR StartTime 2025-01-28 21:34:05 - End Time 2025-01-29 00:34:05 [2025-01-29 00:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 00:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352680', 'tblTempUsageDetail_20' ) start [2025-01-29 00:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352680', 'tblTempUsageDetail_20' ) end [2025-01-29 00:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352680', 'tblTempVendorCDR_20' ) start [2025-01-29 00:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352680', 'tblTempVendorCDR_20' ) end [2025-01-29 00:34:18] Production.INFO: ProcessCDR(1,14352680,1,1,2) [2025-01-29 00:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14352680,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 00:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14352680,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 00:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14352680,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 00:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14352680,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 00:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352680', 'tblTempUsageDetail_20' ) start [2025-01-29 00:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352680', 'tblTempUsageDetail_20' ) end [2025-01-29 00:34:22] Production.ERROR: pbx prc_insertCDR start [2025-01-29 00:34:22] Production.ERROR: pbx prc_insertCDR end [2025-01-29 00:34:22] Production.INFO: ==31520== Releasing lock... [2025-01-29 00:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 00:34:22] Production.INFO: 30.25 MB #Memory Used# [2025-01-29 00:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 21:35:06 [end_date_ymd] => 2025-01-29 00:35:06 [RateCDR] => 1 ) [2025-01-29 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-01-28 21:35:06' and `end` < '2025-01-29 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-01-29 00:35:19] Production.INFO: count ==214 [2025-01-29 00:35:19] Production.ERROR: pbx CDR StartTime 2025-01-28 21:35:06 - End Time 2025-01-29 00:35:06 [2025-01-29 00:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 00:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352685', 'tblTempUsageDetail_20' ) start [2025-01-29 00:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352685', 'tblTempUsageDetail_20' ) end [2025-01-29 00:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352685', 'tblTempVendorCDR_20' ) start [2025-01-29 00:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352685', 'tblTempVendorCDR_20' ) end [2025-01-29 00:35:19] Production.INFO: ProcessCDR(1,14352685,1,1,2) [2025-01-29 00:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14352685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 00:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14352685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 00:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14352685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 00:35:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14352685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 00:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352685', 'tblTempUsageDetail_20' ) start [2025-01-29 00:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352685', 'tblTempUsageDetail_20' ) end [2025-01-29 00:35:23] Production.ERROR: pbx prc_insertCDR start [2025-01-29 00:35:23] Production.ERROR: pbx prc_insertCDR end [2025-01-29 00:35:23] Production.INFO: ==31605== Releasing lock... [2025-01-29 00:35:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 00:35:23] Production.INFO: 30.25 MB #Memory Used# [2025-01-29 00:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 21:36:05 [end_date_ymd] => 2025-01-29 00:36:05 [RateCDR] => 1 ) [2025-01-29 00:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 21:36:05' and `end` < '2025-01-29 00:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 00:36:21] Production.INFO: count ==211 [2025-01-29 00:36:21] Production.ERROR: pbx CDR StartTime 2025-01-28 21:36:05 - End Time 2025-01-29 00:36:05 [2025-01-29 00:36:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 00:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352690', 'tblTempUsageDetail_20' ) start [2025-01-29 00:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352690', 'tblTempUsageDetail_20' ) end [2025-01-29 00:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352690', 'tblTempVendorCDR_20' ) start [2025-01-29 00:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352690', 'tblTempVendorCDR_20' ) end [2025-01-29 00:36:21] Production.INFO: ProcessCDR(1,14352690,1,1,2) [2025-01-29 00:36:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14352690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 00:36:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14352690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 00:36:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14352690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 00:36:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14352690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 00:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352690', 'tblTempUsageDetail_20' ) start [2025-01-29 00:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352690', 'tblTempUsageDetail_20' ) end [2025-01-29 00:36:24] Production.ERROR: pbx prc_insertCDR start [2025-01-29 00:36:24] Production.ERROR: pbx prc_insertCDR end [2025-01-29 00:36:24] Production.INFO: ==31689== Releasing lock... [2025-01-29 00:36:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 00:36:24] Production.INFO: 29.75 MB #Memory Used# [2025-01-29 00:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 21:37:05 [end_date_ymd] => 2025-01-29 00:37:05 [RateCDR] => 1 ) [2025-01-29 00:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 21:37:05' and `end` < '2025-01-29 00:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 00:37:19] Production.INFO: count ==214 [2025-01-29 00:37:19] Production.ERROR: pbx CDR StartTime 2025-01-28 21:37:05 - End Time 2025-01-29 00:37:05 [2025-01-29 00:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 00:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352694', 'tblTempUsageDetail_20' ) start [2025-01-29 00:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352694', 'tblTempUsageDetail_20' ) end [2025-01-29 00:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352694', 'tblTempVendorCDR_20' ) start [2025-01-29 00:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352694', 'tblTempVendorCDR_20' ) end [2025-01-29 00:37:19] Production.INFO: ProcessCDR(1,14352694,1,1,2) [2025-01-29 00:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14352694,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 00:37:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14352694,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 00:37:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14352694,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 00:37:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14352694,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 00:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352694', 'tblTempUsageDetail_20' ) start [2025-01-29 00:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352694', 'tblTempUsageDetail_20' ) end [2025-01-29 00:37:24] Production.ERROR: pbx prc_insertCDR start [2025-01-29 00:37:24] Production.ERROR: pbx prc_insertCDR end [2025-01-29 00:37:24] Production.INFO: ==31785== Releasing lock... [2025-01-29 00:37:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 00:37:24] Production.INFO: 30.25 MB #Memory Used# [2025-01-29 00:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 21:38:05 [end_date_ymd] => 2025-01-29 00:38:05 [RateCDR] => 1 ) [2025-01-29 00:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 21:38:05' and `end` < '2025-01-29 00:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 00:38:18] Production.INFO: count ==214 [2025-01-29 00:38:18] Production.ERROR: pbx CDR StartTime 2025-01-28 21:38:05 - End Time 2025-01-29 00:38:05 [2025-01-29 00:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 00:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352700', 'tblTempUsageDetail_20' ) start [2025-01-29 00:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352700', 'tblTempUsageDetail_20' ) end [2025-01-29 00:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352700', 'tblTempVendorCDR_20' ) start [2025-01-29 00:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352700', 'tblTempVendorCDR_20' ) end [2025-01-29 00:38:18] Production.INFO: ProcessCDR(1,14352700,1,1,2) [2025-01-29 00:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14352700,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 00:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14352700,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 00:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14352700,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 00:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14352700,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 00:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352700', 'tblTempUsageDetail_20' ) start [2025-01-29 00:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352700', 'tblTempUsageDetail_20' ) end [2025-01-29 00:38:22] Production.ERROR: pbx prc_insertCDR start [2025-01-29 00:38:22] Production.ERROR: pbx prc_insertCDR end [2025-01-29 00:38:22] Production.INFO: ==31875== Releasing lock... [2025-01-29 00:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 00:38:22] Production.INFO: 30.25 MB #Memory Used# [2025-01-29 00:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 21:39:05 [end_date_ymd] => 2025-01-29 00:39:05 [RateCDR] => 1 ) [2025-01-29 00:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 21:39:05' and `end` < '2025-01-29 00:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 00:39:19] Production.INFO: count ==214 [2025-01-29 00:39:19] Production.ERROR: pbx CDR StartTime 2025-01-28 21:39:05 - End Time 2025-01-29 00:39:05 [2025-01-29 00:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 00:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352705', 'tblTempUsageDetail_20' ) start [2025-01-29 00:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352705', 'tblTempUsageDetail_20' ) end [2025-01-29 00:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352705', 'tblTempVendorCDR_20' ) start [2025-01-29 00:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352705', 'tblTempVendorCDR_20' ) end [2025-01-29 00:39:19] Production.INFO: ProcessCDR(1,14352705,1,1,2) [2025-01-29 00:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14352705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 00:39:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14352705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 00:39:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14352705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 00:39:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14352705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 00:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352705', 'tblTempUsageDetail_20' ) start [2025-01-29 00:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352705', 'tblTempUsageDetail_20' ) end [2025-01-29 00:39:24] Production.ERROR: pbx prc_insertCDR start [2025-01-29 00:39:24] Production.ERROR: pbx prc_insertCDR end [2025-01-29 00:39:24] Production.INFO: ==31967== Releasing lock... [2025-01-29 00:39:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 00:39:24] Production.INFO: 30.25 MB #Memory Used# [2025-01-29 00:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 21:40:06 [end_date_ymd] => 2025-01-29 00:40:06 [RateCDR] => 1 ) [2025-01-29 00:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 21:40:06' and `end` < '2025-01-29 00:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 00:40:18] Production.INFO: count ==221 [2025-01-29 00:40:18] Production.ERROR: pbx CDR StartTime 2025-01-28 21:40:06 - End Time 2025-01-29 00:40:06 [2025-01-29 00:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 00:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352711', 'tblTempUsageDetail_20' ) start [2025-01-29 00:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352711', 'tblTempUsageDetail_20' ) end [2025-01-29 00:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352711', 'tblTempVendorCDR_20' ) start [2025-01-29 00:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352711', 'tblTempVendorCDR_20' ) end [2025-01-29 00:40:18] Production.INFO: ProcessCDR(1,14352711,1,1,2) [2025-01-29 00:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14352711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 00:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14352711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 00:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14352711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 00:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14352711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 00:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352711', 'tblTempUsageDetail_20' ) start [2025-01-29 00:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352711', 'tblTempUsageDetail_20' ) end [2025-01-29 00:40:22] Production.ERROR: pbx prc_insertCDR start [2025-01-29 00:40:22] Production.ERROR: pbx prc_insertCDR end [2025-01-29 00:40:22] Production.INFO: ==32065== Releasing lock... [2025-01-29 00:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 00:40:22] Production.INFO: 30.25 MB #Memory Used# [2025-01-29 00:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 21:41:05 [end_date_ymd] => 2025-01-29 00:41:05 [RateCDR] => 1 ) [2025-01-29 00:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 21:41:05' and `end` < '2025-01-29 00:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 00:41:18] Production.INFO: count ==237 [2025-01-29 00:41:18] Production.ERROR: pbx CDR StartTime 2025-01-28 21:41:05 - End Time 2025-01-29 00:41:05 [2025-01-29 00:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 00:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352716', 'tblTempUsageDetail_20' ) start [2025-01-29 00:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352716', 'tblTempUsageDetail_20' ) end [2025-01-29 00:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352716', 'tblTempVendorCDR_20' ) start [2025-01-29 00:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352716', 'tblTempVendorCDR_20' ) end [2025-01-29 00:41:18] Production.INFO: ProcessCDR(1,14352716,1,1,2) [2025-01-29 00:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14352716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 00:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14352716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 00:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14352716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 00:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14352716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 00:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352716', 'tblTempUsageDetail_20' ) start [2025-01-29 00:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352716', 'tblTempUsageDetail_20' ) end [2025-01-29 00:41:22] Production.ERROR: pbx prc_insertCDR start [2025-01-29 00:41:22] Production.ERROR: pbx prc_insertCDR end [2025-01-29 00:41:22] Production.INFO: ==32160== Releasing lock... [2025-01-29 00:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 00:41:22] Production.INFO: 30.5 MB #Memory Used# [2025-01-29 00:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 21:42:05 [end_date_ymd] => 2025-01-29 00:42:05 [RateCDR] => 1 ) [2025-01-29 00:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 21:42:05' and `end` < '2025-01-29 00:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 00:42:19] Production.INFO: count ==237 [2025-01-29 00:42:19] Production.ERROR: pbx CDR StartTime 2025-01-28 21:42:05 - End Time 2025-01-29 00:42:05 [2025-01-29 00:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 00:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352721', 'tblTempUsageDetail_20' ) start [2025-01-29 00:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352721', 'tblTempUsageDetail_20' ) end [2025-01-29 00:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352721', 'tblTempVendorCDR_20' ) start [2025-01-29 00:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352721', 'tblTempVendorCDR_20' ) end [2025-01-29 00:42:19] Production.INFO: ProcessCDR(1,14352721,1,1,2) [2025-01-29 00:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14352721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 00:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14352721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 00:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14352721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 00:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14352721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 00:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352721', 'tblTempUsageDetail_20' ) start [2025-01-29 00:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352721', 'tblTempUsageDetail_20' ) end [2025-01-29 00:42:22] Production.ERROR: pbx prc_insertCDR start [2025-01-29 00:42:22] Production.ERROR: pbx prc_insertCDR end [2025-01-29 00:42:22] Production.INFO: ==32276== Releasing lock... [2025-01-29 00:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 00:42:22] Production.INFO: 30.5 MB #Memory Used# [2025-01-29 00:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 21:43:05 [end_date_ymd] => 2025-01-29 00:43:05 [RateCDR] => 1 ) [2025-01-29 00:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 21:43:05' and `end` < '2025-01-29 00:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 00:43:20] Production.INFO: count ==240 [2025-01-29 00:43:20] Production.ERROR: pbx CDR StartTime 2025-01-28 21:43:05 - End Time 2025-01-29 00:43:05 [2025-01-29 00:43:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 00:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352726', 'tblTempUsageDetail_20' ) start [2025-01-29 00:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352726', 'tblTempUsageDetail_20' ) end [2025-01-29 00:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352726', 'tblTempVendorCDR_20' ) start [2025-01-29 00:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352726', 'tblTempVendorCDR_20' ) end [2025-01-29 00:43:20] Production.INFO: ProcessCDR(1,14352726,1,1,2) [2025-01-29 00:43:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14352726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 00:43:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14352726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 00:43:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14352726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 00:43:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14352726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 00:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352726', 'tblTempUsageDetail_20' ) start [2025-01-29 00:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352726', 'tblTempUsageDetail_20' ) end [2025-01-29 00:43:23] Production.ERROR: pbx prc_insertCDR start [2025-01-29 00:43:23] Production.ERROR: pbx prc_insertCDR end [2025-01-29 00:43:23] Production.INFO: ==32367== Releasing lock... [2025-01-29 00:43:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 00:43:23] Production.INFO: 30 MB #Memory Used# [2025-01-29 00:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 21:44:05 [end_date_ymd] => 2025-01-29 00:44:05 [RateCDR] => 1 ) [2025-01-29 00:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 21:44:05' and `end` < '2025-01-29 00:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 00:44:18] Production.INFO: count ==239 [2025-01-29 00:44:18] Production.ERROR: pbx CDR StartTime 2025-01-28 21:44:05 - End Time 2025-01-29 00:44:05 [2025-01-29 00:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 00:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352731', 'tblTempUsageDetail_20' ) start [2025-01-29 00:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352731', 'tblTempUsageDetail_20' ) end [2025-01-29 00:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352731', 'tblTempVendorCDR_20' ) start [2025-01-29 00:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352731', 'tblTempVendorCDR_20' ) end [2025-01-29 00:44:18] Production.INFO: ProcessCDR(1,14352731,1,1,2) [2025-01-29 00:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14352731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 00:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14352731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 00:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14352731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 00:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14352731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 00:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352731', 'tblTempUsageDetail_20' ) start [2025-01-29 00:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352731', 'tblTempUsageDetail_20' ) end [2025-01-29 00:44:21] Production.ERROR: pbx prc_insertCDR start [2025-01-29 00:44:21] Production.ERROR: pbx prc_insertCDR end [2025-01-29 00:44:21] Production.INFO: ==32451== Releasing lock... [2025-01-29 00:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 00:44:21] Production.INFO: 30.5 MB #Memory Used# [2025-01-29 00:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 21:45:05 [end_date_ymd] => 2025-01-29 00:45:05 [RateCDR] => 1 ) [2025-01-29 00:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 21:45:05' and `end` < '2025-01-29 00:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 00:45:17] Production.INFO: count ==239 [2025-01-29 00:45:18] Production.ERROR: pbx CDR StartTime 2025-01-28 21:45:05 - End Time 2025-01-29 00:45:05 [2025-01-29 00:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 00:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352736', 'tblTempUsageDetail_20' ) start [2025-01-29 00:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352736', 'tblTempUsageDetail_20' ) end [2025-01-29 00:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352736', 'tblTempVendorCDR_20' ) start [2025-01-29 00:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352736', 'tblTempVendorCDR_20' ) end [2025-01-29 00:45:18] Production.INFO: ProcessCDR(1,14352736,1,1,2) [2025-01-29 00:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14352736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 00:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14352736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 00:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14352736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 00:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14352736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 00:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352736', 'tblTempUsageDetail_20' ) start [2025-01-29 00:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352736', 'tblTempUsageDetail_20' ) end [2025-01-29 00:45:21] Production.ERROR: pbx prc_insertCDR start [2025-01-29 00:45:21] Production.ERROR: pbx prc_insertCDR end [2025-01-29 00:45:21] Production.INFO: ==32546== Releasing lock... [2025-01-29 00:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 00:45:21] Production.INFO: 30.5 MB #Memory Used# [2025-01-29 00:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 21:46:05 [end_date_ymd] => 2025-01-29 00:46:05 [RateCDR] => 1 ) [2025-01-29 00:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 21:46:05' and `end` < '2025-01-29 00:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 00:46:18] Production.INFO: count ==238 [2025-01-29 00:46:18] Production.ERROR: pbx CDR StartTime 2025-01-28 21:46:05 - End Time 2025-01-29 00:46:05 [2025-01-29 00:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 00:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352741', 'tblTempUsageDetail_20' ) start [2025-01-29 00:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352741', 'tblTempUsageDetail_20' ) end [2025-01-29 00:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352741', 'tblTempVendorCDR_20' ) start [2025-01-29 00:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352741', 'tblTempVendorCDR_20' ) end [2025-01-29 00:46:18] Production.INFO: ProcessCDR(1,14352741,1,1,2) [2025-01-29 00:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14352741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 00:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14352741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 00:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14352741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 00:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14352741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 00:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352741', 'tblTempUsageDetail_20' ) start [2025-01-29 00:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352741', 'tblTempUsageDetail_20' ) end [2025-01-29 00:46:21] Production.ERROR: pbx prc_insertCDR start [2025-01-29 00:46:21] Production.ERROR: pbx prc_insertCDR end [2025-01-29 00:46:21] Production.INFO: ==32632== Releasing lock... [2025-01-29 00:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 00:46:21] Production.INFO: 30.25 MB #Memory Used# [2025-01-29 00:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 21:47:05 [end_date_ymd] => 2025-01-29 00:47:05 [RateCDR] => 1 ) [2025-01-29 00:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 21:47:05' and `end` < '2025-01-29 00:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 00:47:17] Production.INFO: count ==236 [2025-01-29 00:47:17] Production.ERROR: pbx CDR StartTime 2025-01-28 21:47:05 - End Time 2025-01-29 00:47:05 [2025-01-29 00:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 00:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352746', 'tblTempUsageDetail_20' ) start [2025-01-29 00:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352746', 'tblTempUsageDetail_20' ) end [2025-01-29 00:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352746', 'tblTempVendorCDR_20' ) start [2025-01-29 00:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352746', 'tblTempVendorCDR_20' ) end [2025-01-29 00:47:17] Production.INFO: ProcessCDR(1,14352746,1,1,2) [2025-01-29 00:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14352746,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 00:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14352746,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 00:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14352746,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 00:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14352746,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 00:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352746', 'tblTempUsageDetail_20' ) start [2025-01-29 00:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352746', 'tblTempUsageDetail_20' ) end [2025-01-29 00:47:22] Production.ERROR: pbx prc_insertCDR start [2025-01-29 00:47:22] Production.ERROR: pbx prc_insertCDR end [2025-01-29 00:47:22] Production.INFO: ==32722== Releasing lock... [2025-01-29 00:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 00:47:22] Production.INFO: 30.5 MB #Memory Used# [2025-01-29 00:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 21:48:05 [end_date_ymd] => 2025-01-29 00:48:05 [RateCDR] => 1 ) [2025-01-29 00:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 21:48:05' and `end` < '2025-01-29 00:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 00:48:18] Production.INFO: count ==234 [2025-01-29 00:48:18] Production.ERROR: pbx CDR StartTime 2025-01-28 21:48:05 - End Time 2025-01-29 00:48:05 [2025-01-29 00:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 00:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352751', 'tblTempUsageDetail_20' ) start [2025-01-29 00:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352751', 'tblTempUsageDetail_20' ) end [2025-01-29 00:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352751', 'tblTempVendorCDR_20' ) start [2025-01-29 00:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352751', 'tblTempVendorCDR_20' ) end [2025-01-29 00:48:18] Production.INFO: ProcessCDR(1,14352751,1,1,2) [2025-01-29 00:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14352751,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 00:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14352751,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 00:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14352751,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 00:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14352751,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 00:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352751', 'tblTempUsageDetail_20' ) start [2025-01-29 00:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352751', 'tblTempUsageDetail_20' ) end [2025-01-29 00:48:21] Production.ERROR: pbx prc_insertCDR start [2025-01-29 00:48:21] Production.ERROR: pbx prc_insertCDR end [2025-01-29 00:48:21] Production.INFO: ==334== Releasing lock... [2025-01-29 00:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 00:48:21] Production.INFO: 30.5 MB #Memory Used# [2025-01-29 00:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 21:49:05 [end_date_ymd] => 2025-01-29 00:49:05 [RateCDR] => 1 ) [2025-01-29 00:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 21:49:05' and `end` < '2025-01-29 00:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 00:49:18] Production.INFO: count ==233 [2025-01-29 00:49:18] Production.ERROR: pbx CDR StartTime 2025-01-28 21:49:05 - End Time 2025-01-29 00:49:05 [2025-01-29 00:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 00:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352756', 'tblTempUsageDetail_20' ) start [2025-01-29 00:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352756', 'tblTempUsageDetail_20' ) end [2025-01-29 00:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352756', 'tblTempVendorCDR_20' ) start [2025-01-29 00:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352756', 'tblTempVendorCDR_20' ) end [2025-01-29 00:49:18] Production.INFO: ProcessCDR(1,14352756,1,1,2) [2025-01-29 00:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14352756,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 00:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14352756,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 00:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14352756,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 00:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14352756,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 00:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352756', 'tblTempUsageDetail_20' ) start [2025-01-29 00:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352756', 'tblTempUsageDetail_20' ) end [2025-01-29 00:49:21] Production.ERROR: pbx prc_insertCDR start [2025-01-29 00:49:21] Production.ERROR: pbx prc_insertCDR end [2025-01-29 00:49:21] Production.INFO: ==420== Releasing lock... [2025-01-29 00:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 00:49:21] Production.INFO: 30 MB #Memory Used# [2025-01-29 00:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 21:50:06 [end_date_ymd] => 2025-01-29 00:50:06 [RateCDR] => 1 ) [2025-01-29 00:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 21:50:06' and `end` < '2025-01-29 00:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 00:50:19] Production.INFO: count ==237 [2025-01-29 00:50:19] Production.ERROR: pbx CDR StartTime 2025-01-28 21:50:06 - End Time 2025-01-29 00:50:06 [2025-01-29 00:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 00:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352762', 'tblTempUsageDetail_20' ) start [2025-01-29 00:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352762', 'tblTempUsageDetail_20' ) end [2025-01-29 00:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352762', 'tblTempVendorCDR_20' ) start [2025-01-29 00:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352762', 'tblTempVendorCDR_20' ) end [2025-01-29 00:50:19] Production.INFO: ProcessCDR(1,14352762,1,1,2) [2025-01-29 00:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14352762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 00:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14352762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 00:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14352762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 00:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14352762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 00:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352762', 'tblTempUsageDetail_20' ) start [2025-01-29 00:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352762', 'tblTempUsageDetail_20' ) end [2025-01-29 00:50:22] Production.ERROR: pbx prc_insertCDR start [2025-01-29 00:50:22] Production.ERROR: pbx prc_insertCDR end [2025-01-29 00:50:22] Production.INFO: ==494== Releasing lock... [2025-01-29 00:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 00:50:22] Production.INFO: 30.25 MB #Memory Used# [2025-01-29 00:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 21:51:05 [end_date_ymd] => 2025-01-29 00:51:05 [RateCDR] => 1 ) [2025-01-29 00:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 21:51:05' and `end` < '2025-01-29 00:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 00:51:18] Production.INFO: count ==236 [2025-01-29 00:51:18] Production.ERROR: pbx CDR StartTime 2025-01-28 21:51:05 - End Time 2025-01-29 00:51:05 [2025-01-29 00:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 00:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352767', 'tblTempUsageDetail_20' ) start [2025-01-29 00:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352767', 'tblTempUsageDetail_20' ) end [2025-01-29 00:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352767', 'tblTempVendorCDR_20' ) start [2025-01-29 00:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352767', 'tblTempVendorCDR_20' ) end [2025-01-29 00:51:18] Production.INFO: ProcessCDR(1,14352767,1,1,2) [2025-01-29 00:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14352767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 00:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14352767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 00:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14352767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 00:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14352767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 00:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352767', 'tblTempUsageDetail_20' ) start [2025-01-29 00:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352767', 'tblTempUsageDetail_20' ) end [2025-01-29 00:51:21] Production.ERROR: pbx prc_insertCDR start [2025-01-29 00:51:21] Production.ERROR: pbx prc_insertCDR end [2025-01-29 00:51:21] Production.INFO: ==573== Releasing lock... [2025-01-29 00:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 00:51:21] Production.INFO: 30.25 MB #Memory Used# [2025-01-29 00:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 21:52:05 [end_date_ymd] => 2025-01-29 00:52:05 [RateCDR] => 1 ) [2025-01-29 00:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 21:52:05' and `end` < '2025-01-29 00:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 00:52:19] Production.INFO: count ==233 [2025-01-29 00:52:19] Production.ERROR: pbx CDR StartTime 2025-01-28 21:52:05 - End Time 2025-01-29 00:52:05 [2025-01-29 00:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 00:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352772', 'tblTempUsageDetail_20' ) start [2025-01-29 00:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352772', 'tblTempUsageDetail_20' ) end [2025-01-29 00:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352772', 'tblTempVendorCDR_20' ) start [2025-01-29 00:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352772', 'tblTempVendorCDR_20' ) end [2025-01-29 00:52:19] Production.INFO: ProcessCDR(1,14352772,1,1,2) [2025-01-29 00:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14352772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 00:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14352772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 00:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14352772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 00:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14352772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 00:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352772', 'tblTempUsageDetail_20' ) start [2025-01-29 00:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352772', 'tblTempUsageDetail_20' ) end [2025-01-29 00:52:22] Production.ERROR: pbx prc_insertCDR start [2025-01-29 00:52:22] Production.ERROR: pbx prc_insertCDR end [2025-01-29 00:52:22] Production.INFO: ==653== Releasing lock... [2025-01-29 00:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 00:52:22] Production.INFO: 30 MB #Memory Used# [2025-01-29 00:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 21:53:05 [end_date_ymd] => 2025-01-29 00:53:05 [RateCDR] => 1 ) [2025-01-29 00:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 21:53:05' and `end` < '2025-01-29 00:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 00:53:18] Production.INFO: count ==231 [2025-01-29 00:53:18] Production.ERROR: pbx CDR StartTime 2025-01-28 21:53:05 - End Time 2025-01-29 00:53:05 [2025-01-29 00:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 00:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352777', 'tblTempUsageDetail_20' ) start [2025-01-29 00:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352777', 'tblTempUsageDetail_20' ) end [2025-01-29 00:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352777', 'tblTempVendorCDR_20' ) start [2025-01-29 00:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352777', 'tblTempVendorCDR_20' ) end [2025-01-29 00:53:18] Production.INFO: ProcessCDR(1,14352777,1,1,2) [2025-01-29 00:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14352777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 00:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14352777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 00:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14352777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 00:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14352777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 00:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352777', 'tblTempUsageDetail_20' ) start [2025-01-29 00:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352777', 'tblTempUsageDetail_20' ) end [2025-01-29 00:53:21] Production.ERROR: pbx prc_insertCDR start [2025-01-29 00:53:21] Production.ERROR: pbx prc_insertCDR end [2025-01-29 00:53:21] Production.INFO: ==749== Releasing lock... [2025-01-29 00:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 00:53:21] Production.INFO: 30.25 MB #Memory Used# [2025-01-29 00:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 21:54:05 [end_date_ymd] => 2025-01-29 00:54:05 [RateCDR] => 1 ) [2025-01-29 00:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 21:54:05' and `end` < '2025-01-29 00:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 00:54:19] Production.INFO: count ==230 [2025-01-29 00:54:19] Production.ERROR: pbx CDR StartTime 2025-01-28 21:54:05 - End Time 2025-01-29 00:54:05 [2025-01-29 00:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 00:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352782', 'tblTempUsageDetail_20' ) start [2025-01-29 00:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352782', 'tblTempUsageDetail_20' ) end [2025-01-29 00:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352782', 'tblTempVendorCDR_20' ) start [2025-01-29 00:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352782', 'tblTempVendorCDR_20' ) end [2025-01-29 00:54:19] Production.INFO: ProcessCDR(1,14352782,1,1,2) [2025-01-29 00:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14352782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 00:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14352782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 00:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14352782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 00:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14352782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 00:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352782', 'tblTempUsageDetail_20' ) start [2025-01-29 00:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352782', 'tblTempUsageDetail_20' ) end [2025-01-29 00:54:22] Production.ERROR: pbx prc_insertCDR start [2025-01-29 00:54:22] Production.ERROR: pbx prc_insertCDR end [2025-01-29 00:54:22] Production.INFO: ==823== Releasing lock... [2025-01-29 00:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 00:54:22] Production.INFO: 30.25 MB #Memory Used# [2025-01-29 00:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 21:55:05 [end_date_ymd] => 2025-01-29 00:55:05 [RateCDR] => 1 ) [2025-01-29 00:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 21:55:05' and `end` < '2025-01-29 00:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 00:55:18] Production.INFO: count ==234 [2025-01-29 00:55:18] Production.ERROR: pbx CDR StartTime 2025-01-28 21:55:05 - End Time 2025-01-29 00:55:05 [2025-01-29 00:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 00:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352787', 'tblTempUsageDetail_20' ) start [2025-01-29 00:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352787', 'tblTempUsageDetail_20' ) end [2025-01-29 00:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352787', 'tblTempVendorCDR_20' ) start [2025-01-29 00:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352787', 'tblTempVendorCDR_20' ) end [2025-01-29 00:55:18] Production.INFO: ProcessCDR(1,14352787,1,1,2) [2025-01-29 00:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14352787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 00:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14352787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 00:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14352787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 00:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14352787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 00:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352787', 'tblTempUsageDetail_20' ) start [2025-01-29 00:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352787', 'tblTempUsageDetail_20' ) end [2025-01-29 00:55:21] Production.ERROR: pbx prc_insertCDR start [2025-01-29 00:55:21] Production.ERROR: pbx prc_insertCDR end [2025-01-29 00:55:21] Production.INFO: ==895== Releasing lock... [2025-01-29 00:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 00:55:21] Production.INFO: 30 MB #Memory Used# [2025-01-29 00:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 21:56:05 [end_date_ymd] => 2025-01-29 00:56:05 [RateCDR] => 1 ) [2025-01-29 00:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 21:56:05' and `end` < '2025-01-29 00:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 00:56:17] Production.INFO: count ==237 [2025-01-29 00:56:17] Production.ERROR: pbx CDR StartTime 2025-01-28 21:56:05 - End Time 2025-01-29 00:56:05 [2025-01-29 00:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 00:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352792', 'tblTempUsageDetail_20' ) start [2025-01-29 00:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352792', 'tblTempUsageDetail_20' ) end [2025-01-29 00:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352792', 'tblTempVendorCDR_20' ) start [2025-01-29 00:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352792', 'tblTempVendorCDR_20' ) end [2025-01-29 00:56:17] Production.INFO: ProcessCDR(1,14352792,1,1,2) [2025-01-29 00:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14352792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 00:56:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14352792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 00:56:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14352792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 00:56:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14352792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 00:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352792', 'tblTempUsageDetail_20' ) start [2025-01-29 00:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352792', 'tblTempUsageDetail_20' ) end [2025-01-29 00:56:20] Production.ERROR: pbx prc_insertCDR start [2025-01-29 00:56:20] Production.ERROR: pbx prc_insertCDR end [2025-01-29 00:56:21] Production.INFO: ==981== Releasing lock... [2025-01-29 00:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 00:56:21] Production.INFO: 30.25 MB #Memory Used# [2025-01-29 00:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 21:57:05 [end_date_ymd] => 2025-01-29 00:57:05 [RateCDR] => 1 ) [2025-01-29 00:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 21:57:05' and `end` < '2025-01-29 00:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 00:57:19] Production.INFO: count ==237 [2025-01-29 00:57:19] Production.ERROR: pbx CDR StartTime 2025-01-28 21:57:05 - End Time 2025-01-29 00:57:05 [2025-01-29 00:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 00:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352797', 'tblTempUsageDetail_20' ) start [2025-01-29 00:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352797', 'tblTempUsageDetail_20' ) end [2025-01-29 00:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352797', 'tblTempVendorCDR_20' ) start [2025-01-29 00:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352797', 'tblTempVendorCDR_20' ) end [2025-01-29 00:57:19] Production.INFO: ProcessCDR(1,14352797,1,1,2) [2025-01-29 00:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14352797,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 00:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14352797,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 00:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14352797,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 00:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14352797,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 00:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352797', 'tblTempUsageDetail_20' ) start [2025-01-29 00:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352797', 'tblTempUsageDetail_20' ) end [2025-01-29 00:57:22] Production.ERROR: pbx prc_insertCDR start [2025-01-29 00:57:22] Production.ERROR: pbx prc_insertCDR end [2025-01-29 00:57:22] Production.INFO: ==1071== Releasing lock... [2025-01-29 00:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 00:57:22] Production.INFO: 30.25 MB #Memory Used# [2025-01-29 00:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 21:58:05 [end_date_ymd] => 2025-01-29 00:58:05 [RateCDR] => 1 ) [2025-01-29 00:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 21:58:05' and `end` < '2025-01-29 00:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 00:58:18] Production.INFO: count ==237 [2025-01-29 00:58:18] Production.ERROR: pbx CDR StartTime 2025-01-28 21:58:05 - End Time 2025-01-29 00:58:05 [2025-01-29 00:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 00:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352802', 'tblTempUsageDetail_20' ) start [2025-01-29 00:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352802', 'tblTempUsageDetail_20' ) end [2025-01-29 00:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352802', 'tblTempVendorCDR_20' ) start [2025-01-29 00:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352802', 'tblTempVendorCDR_20' ) end [2025-01-29 00:58:19] Production.INFO: ProcessCDR(1,14352802,1,1,2) [2025-01-29 00:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14352802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 00:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14352802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 00:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14352802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 00:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14352802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 00:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352802', 'tblTempUsageDetail_20' ) start [2025-01-29 00:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352802', 'tblTempUsageDetail_20' ) end [2025-01-29 00:58:22] Production.ERROR: pbx prc_insertCDR start [2025-01-29 00:58:22] Production.ERROR: pbx prc_insertCDR end [2025-01-29 00:58:22] Production.INFO: ==1202== Releasing lock... [2025-01-29 00:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 00:58:22] Production.INFO: 30.25 MB #Memory Used# [2025-01-29 00:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 21:59:05 [end_date_ymd] => 2025-01-29 00:59:05 [RateCDR] => 1 ) [2025-01-29 00:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 21:59:05' and `end` < '2025-01-29 00:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 00:59:18] Production.INFO: count ==237 [2025-01-29 00:59:18] Production.ERROR: pbx CDR StartTime 2025-01-28 21:59:05 - End Time 2025-01-29 00:59:05 [2025-01-29 00:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 00:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352807', 'tblTempUsageDetail_20' ) start [2025-01-29 00:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352807', 'tblTempUsageDetail_20' ) end [2025-01-29 00:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352807', 'tblTempVendorCDR_20' ) start [2025-01-29 00:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352807', 'tblTempVendorCDR_20' ) end [2025-01-29 00:59:18] Production.INFO: ProcessCDR(1,14352807,1,1,2) [2025-01-29 00:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14352807,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 00:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14352807,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 00:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14352807,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 00:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14352807,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 00:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352807', 'tblTempUsageDetail_20' ) start [2025-01-29 00:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352807', 'tblTempUsageDetail_20' ) end [2025-01-29 00:59:21] Production.ERROR: pbx prc_insertCDR start [2025-01-29 00:59:21] Production.ERROR: pbx prc_insertCDR end [2025-01-29 00:59:21] Production.INFO: ==1295== Releasing lock... [2025-01-29 00:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 00:59:21] Production.INFO: 30.25 MB #Memory Used# [2025-01-29 01:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 22:00:05 [end_date_ymd] => 2025-01-29 01:00:05 [RateCDR] => 1 ) [2025-01-29 01:00:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 22:00:05' and `end` < '2025-01-29 01:00:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 01:00:18] Production.INFO: count ==241 [2025-01-29 01:00:18] Production.ERROR: pbx CDR StartTime 2025-01-28 22:00:05 - End Time 2025-01-29 01:00:05 [2025-01-29 01:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 01:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352812', 'tblTempUsageDetail_20' ) start [2025-01-29 01:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352812', 'tblTempUsageDetail_20' ) end [2025-01-29 01:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352812', 'tblTempVendorCDR_20' ) start [2025-01-29 01:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352812', 'tblTempVendorCDR_20' ) end [2025-01-29 01:00:18] Production.INFO: ProcessCDR(1,14352812,1,1,2) [2025-01-29 01:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14352812,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 01:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14352812,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 01:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14352812,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 01:00:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14352812,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 01:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352812', 'tblTempUsageDetail_20' ) start [2025-01-29 01:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352812', 'tblTempUsageDetail_20' ) end [2025-01-29 01:00:21] Production.ERROR: pbx prc_insertCDR start [2025-01-29 01:00:21] Production.ERROR: pbx prc_insertCDR end [2025-01-29 01:00:21] Production.INFO: ==1382== Releasing lock... [2025-01-29 01:00:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 01:00:21] Production.INFO: 30.25 MB #Memory Used# [2025-01-29 01:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 22:01:05 [end_date_ymd] => 2025-01-29 01:01:05 [RateCDR] => 1 ) [2025-01-29 01:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 22:01:05' and `end` < '2025-01-29 01:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 01:01:18] Production.INFO: count ==261 [2025-01-29 01:01:18] Production.ERROR: pbx CDR StartTime 2025-01-28 22:01:05 - End Time 2025-01-29 01:01:05 [2025-01-29 01:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 01:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352818', 'tblTempUsageDetail_20' ) start [2025-01-29 01:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352818', 'tblTempUsageDetail_20' ) end [2025-01-29 01:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352818', 'tblTempVendorCDR_20' ) start [2025-01-29 01:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352818', 'tblTempVendorCDR_20' ) end [2025-01-29 01:01:18] Production.INFO: ProcessCDR(1,14352818,1,1,2) [2025-01-29 01:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14352818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 01:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14352818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 01:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14352818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 01:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14352818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 01:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352818', 'tblTempUsageDetail_20' ) start [2025-01-29 01:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352818', 'tblTempUsageDetail_20' ) end [2025-01-29 01:01:21] Production.ERROR: pbx prc_insertCDR start [2025-01-29 01:01:21] Production.ERROR: pbx prc_insertCDR end [2025-01-29 01:01:21] Production.INFO: ==1487== Releasing lock... [2025-01-29 01:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 01:01:21] Production.INFO: 30.5 MB #Memory Used# [2025-01-29 01:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 22:02:05 [end_date_ymd] => 2025-01-29 01:02:05 [RateCDR] => 1 ) [2025-01-29 01:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 22:02:05' and `end` < '2025-01-29 01:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 01:02:17] Production.INFO: count ==265 [2025-01-29 01:02:17] Production.ERROR: pbx CDR StartTime 2025-01-28 22:02:05 - End Time 2025-01-29 01:02:05 [2025-01-29 01:02:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 01:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352823', 'tblTempUsageDetail_20' ) start [2025-01-29 01:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352823', 'tblTempUsageDetail_20' ) end [2025-01-29 01:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352823', 'tblTempVendorCDR_20' ) start [2025-01-29 01:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352823', 'tblTempVendorCDR_20' ) end [2025-01-29 01:02:17] Production.INFO: ProcessCDR(1,14352823,1,1,2) [2025-01-29 01:02:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14352823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 01:02:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14352823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 01:02:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14352823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 01:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14352823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 01:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352823', 'tblTempUsageDetail_20' ) start [2025-01-29 01:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352823', 'tblTempUsageDetail_20' ) end [2025-01-29 01:02:21] Production.ERROR: pbx prc_insertCDR start [2025-01-29 01:02:21] Production.ERROR: pbx prc_insertCDR end [2025-01-29 01:02:21] Production.INFO: ==1609== Releasing lock... [2025-01-29 01:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 01:02:21] Production.INFO: 30.5 MB #Memory Used# [2025-01-29 01:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 22:03:05 [end_date_ymd] => 2025-01-29 01:03:05 [RateCDR] => 1 ) [2025-01-29 01:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 22:03:05' and `end` < '2025-01-29 01:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 01:03:19] Production.INFO: count ==265 [2025-01-29 01:03:19] Production.ERROR: pbx CDR StartTime 2025-01-28 22:03:05 - End Time 2025-01-29 01:03:05 [2025-01-29 01:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 01:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352828', 'tblTempUsageDetail_20' ) start [2025-01-29 01:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352828', 'tblTempUsageDetail_20' ) end [2025-01-29 01:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352828', 'tblTempVendorCDR_20' ) start [2025-01-29 01:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352828', 'tblTempVendorCDR_20' ) end [2025-01-29 01:03:19] Production.INFO: ProcessCDR(1,14352828,1,1,2) [2025-01-29 01:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14352828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 01:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14352828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 01:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14352828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 01:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14352828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 01:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352828', 'tblTempUsageDetail_20' ) start [2025-01-29 01:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352828', 'tblTempUsageDetail_20' ) end [2025-01-29 01:03:22] Production.ERROR: pbx prc_insertCDR start [2025-01-29 01:03:22] Production.ERROR: pbx prc_insertCDR end [2025-01-29 01:03:22] Production.INFO: ==1694== Releasing lock... [2025-01-29 01:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 01:03:22] Production.INFO: 30.5 MB #Memory Used# [2025-01-29 01:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 22:04:06 [end_date_ymd] => 2025-01-29 01:04:06 [RateCDR] => 1 ) [2025-01-29 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-01-28 22:04:06' and `end` < '2025-01-29 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-01-29 01:04:19] Production.INFO: count ==265 [2025-01-29 01:04:19] Production.ERROR: pbx CDR StartTime 2025-01-28 22:04:06 - End Time 2025-01-29 01:04:06 [2025-01-29 01:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 01:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352833', 'tblTempUsageDetail_20' ) start [2025-01-29 01:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352833', 'tblTempUsageDetail_20' ) end [2025-01-29 01:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352833', 'tblTempVendorCDR_20' ) start [2025-01-29 01:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352833', 'tblTempVendorCDR_20' ) end [2025-01-29 01:04:19] Production.INFO: ProcessCDR(1,14352833,1,1,2) [2025-01-29 01:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14352833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 01:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14352833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 01:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14352833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 01:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14352833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 01:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352833', 'tblTempUsageDetail_20' ) start [2025-01-29 01:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352833', 'tblTempUsageDetail_20' ) end [2025-01-29 01:04:22] Production.ERROR: pbx prc_insertCDR start [2025-01-29 01:04:22] Production.ERROR: pbx prc_insertCDR end [2025-01-29 01:04:22] Production.INFO: ==1785== Releasing lock... [2025-01-29 01:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 01:04:22] Production.INFO: 30.5 MB #Memory Used# [2025-01-29 01:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 22:05:05 [end_date_ymd] => 2025-01-29 01:05:05 [RateCDR] => 1 ) [2025-01-29 01:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 22:05:05' and `end` < '2025-01-29 01:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 01:05:18] Production.INFO: count ==264 [2025-01-29 01:05:18] Production.ERROR: pbx CDR StartTime 2025-01-28 22:05:05 - End Time 2025-01-29 01:05:05 [2025-01-29 01:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 01:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352838', 'tblTempUsageDetail_20' ) start [2025-01-29 01:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352838', 'tblTempUsageDetail_20' ) end [2025-01-29 01:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352838', 'tblTempVendorCDR_20' ) start [2025-01-29 01:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352838', 'tblTempVendorCDR_20' ) end [2025-01-29 01:05:18] Production.INFO: ProcessCDR(1,14352838,1,1,2) [2025-01-29 01:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14352838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 01:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14352838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 01:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14352838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 01:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14352838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 01:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352838', 'tblTempUsageDetail_20' ) start [2025-01-29 01:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352838', 'tblTempUsageDetail_20' ) end [2025-01-29 01:05:21] Production.ERROR: pbx prc_insertCDR start [2025-01-29 01:05:21] Production.ERROR: pbx prc_insertCDR end [2025-01-29 01:05:21] Production.INFO: ==1875== Releasing lock... [2025-01-29 01:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 01:05:21] Production.INFO: 30 MB #Memory Used# [2025-01-29 01:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 22:06:06 [end_date_ymd] => 2025-01-29 01:06:06 [RateCDR] => 1 ) [2025-01-29 01:06:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 22:06:06' and `end` < '2025-01-29 01:06:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 01:06:19] Production.INFO: count ==264 [2025-01-29 01:06:19] Production.ERROR: pbx CDR StartTime 2025-01-28 22:06:06 - End Time 2025-01-29 01:06:06 [2025-01-29 01:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 01:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352843', 'tblTempUsageDetail_20' ) start [2025-01-29 01:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352843', 'tblTempUsageDetail_20' ) end [2025-01-29 01:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352843', 'tblTempVendorCDR_20' ) start [2025-01-29 01:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352843', 'tblTempVendorCDR_20' ) end [2025-01-29 01:06:19] Production.INFO: ProcessCDR(1,14352843,1,1,2) [2025-01-29 01:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14352843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 01:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14352843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 01:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14352843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 01:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14352843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 01:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352843', 'tblTempUsageDetail_20' ) start [2025-01-29 01:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352843', 'tblTempUsageDetail_20' ) end [2025-01-29 01:06:22] Production.ERROR: pbx prc_insertCDR start [2025-01-29 01:06:22] Production.ERROR: pbx prc_insertCDR end [2025-01-29 01:06:22] Production.INFO: ==1967== Releasing lock... [2025-01-29 01:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 01:06:22] Production.INFO: 30 MB #Memory Used# [2025-01-29 01:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 22:07:05 [end_date_ymd] => 2025-01-29 01:07:05 [RateCDR] => 1 ) [2025-01-29 01:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 22:07:05' and `end` < '2025-01-29 01:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 01:07:18] Production.INFO: count ==264 [2025-01-29 01:07:19] Production.ERROR: pbx CDR StartTime 2025-01-28 22:07:05 - End Time 2025-01-29 01:07:05 [2025-01-29 01:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 01:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352848', 'tblTempUsageDetail_20' ) start [2025-01-29 01:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352848', 'tblTempUsageDetail_20' ) end [2025-01-29 01:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352848', 'tblTempVendorCDR_20' ) start [2025-01-29 01:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352848', 'tblTempVendorCDR_20' ) end [2025-01-29 01:07:19] Production.INFO: ProcessCDR(1,14352848,1,1,2) [2025-01-29 01:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14352848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 01:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14352848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 01:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14352848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 01:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14352848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 01:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352848', 'tblTempUsageDetail_20' ) start [2025-01-29 01:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352848', 'tblTempUsageDetail_20' ) end [2025-01-29 01:07:22] Production.ERROR: pbx prc_insertCDR start [2025-01-29 01:07:22] Production.ERROR: pbx prc_insertCDR end [2025-01-29 01:07:22] Production.INFO: ==2050== Releasing lock... [2025-01-29 01:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 01:07:22] Production.INFO: 30 MB #Memory Used# [2025-01-29 01:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 22:08:06 [end_date_ymd] => 2025-01-29 01:08:06 [RateCDR] => 1 ) [2025-01-29 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-01-28 22:08:06' and `end` < '2025-01-29 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-01-29 01:08:18] Production.INFO: count ==264 [2025-01-29 01:08:19] Production.ERROR: pbx CDR StartTime 2025-01-28 22:08:06 - End Time 2025-01-29 01:08:06 [2025-01-29 01:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 01:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352853', 'tblTempUsageDetail_20' ) start [2025-01-29 01:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352853', 'tblTempUsageDetail_20' ) end [2025-01-29 01:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352853', 'tblTempVendorCDR_20' ) start [2025-01-29 01:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352853', 'tblTempVendorCDR_20' ) end [2025-01-29 01:08:19] Production.INFO: ProcessCDR(1,14352853,1,1,2) [2025-01-29 01:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14352853,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 01:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14352853,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 01:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14352853,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 01:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14352853,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 01:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352853', 'tblTempUsageDetail_20' ) start [2025-01-29 01:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352853', 'tblTempUsageDetail_20' ) end [2025-01-29 01:08:22] Production.ERROR: pbx prc_insertCDR start [2025-01-29 01:08:22] Production.ERROR: pbx prc_insertCDR end [2025-01-29 01:08:22] Production.INFO: ==2137== Releasing lock... [2025-01-29 01:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 01:08:22] Production.INFO: 30 MB #Memory Used# [2025-01-29 01:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 22:09:05 [end_date_ymd] => 2025-01-29 01:09:05 [RateCDR] => 1 ) [2025-01-29 01:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 22:09:05' and `end` < '2025-01-29 01:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 01:09:18] Production.INFO: count ==262 [2025-01-29 01:09:18] Production.ERROR: pbx CDR StartTime 2025-01-28 22:09:05 - End Time 2025-01-29 01:09:05 [2025-01-29 01:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 01:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352858', 'tblTempUsageDetail_20' ) start [2025-01-29 01:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352858', 'tblTempUsageDetail_20' ) end [2025-01-29 01:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352858', 'tblTempVendorCDR_20' ) start [2025-01-29 01:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352858', 'tblTempVendorCDR_20' ) end [2025-01-29 01:09:18] Production.INFO: ProcessCDR(1,14352858,1,1,2) [2025-01-29 01:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14352858,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 01:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14352858,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 01:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14352858,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 01:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14352858,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 01:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352858', 'tblTempUsageDetail_20' ) start [2025-01-29 01:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352858', 'tblTempUsageDetail_20' ) end [2025-01-29 01:09:21] Production.ERROR: pbx prc_insertCDR start [2025-01-29 01:09:21] Production.ERROR: pbx prc_insertCDR end [2025-01-29 01:09:21] Production.INFO: ==2228== Releasing lock... [2025-01-29 01:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 01:09:21] Production.INFO: 30.5 MB #Memory Used# [2025-01-29 01:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 22:10:06 [end_date_ymd] => 2025-01-29 01:10:06 [RateCDR] => 1 ) [2025-01-29 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-01-28 22:10:06' and `end` < '2025-01-29 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-01-29 01:10:20] Production.INFO: count ==266 [2025-01-29 01:10:20] Production.ERROR: pbx CDR StartTime 2025-01-28 22:10:06 - End Time 2025-01-29 01:10:06 [2025-01-29 01:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 01:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352863', 'tblTempUsageDetail_20' ) start [2025-01-29 01:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352863', 'tblTempUsageDetail_20' ) end [2025-01-29 01:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352863', 'tblTempVendorCDR_20' ) start [2025-01-29 01:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352863', 'tblTempVendorCDR_20' ) end [2025-01-29 01:10:20] Production.INFO: ProcessCDR(1,14352863,1,1,2) [2025-01-29 01:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14352863,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 01:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14352863,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 01:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14352863,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 01:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14352863,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 01:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352863', 'tblTempUsageDetail_20' ) start [2025-01-29 01:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352863', 'tblTempUsageDetail_20' ) end [2025-01-29 01:10:23] Production.ERROR: pbx prc_insertCDR start [2025-01-29 01:10:23] Production.ERROR: pbx prc_insertCDR end [2025-01-29 01:10:23] Production.INFO: ==2326== Releasing lock... [2025-01-29 01:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 01:10:23] Production.INFO: 30.75 MB #Memory Used# [2025-01-29 01:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 22:11:05 [end_date_ymd] => 2025-01-29 01:11:05 [RateCDR] => 1 ) [2025-01-29 01:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 22:11:05' and `end` < '2025-01-29 01:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 01:11:18] Production.INFO: count ==265 [2025-01-29 01:11:18] Production.ERROR: pbx CDR StartTime 2025-01-28 22:11:05 - End Time 2025-01-29 01:11:05 [2025-01-29 01:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 01:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352869', 'tblTempUsageDetail_20' ) start [2025-01-29 01:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352869', 'tblTempUsageDetail_20' ) end [2025-01-29 01:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352869', 'tblTempVendorCDR_20' ) start [2025-01-29 01:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352869', 'tblTempVendorCDR_20' ) end [2025-01-29 01:11:18] Production.INFO: ProcessCDR(1,14352869,1,1,2) [2025-01-29 01:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14352869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 01:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14352869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 01:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14352869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 01:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14352869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 01:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352869', 'tblTempUsageDetail_20' ) start [2025-01-29 01:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352869', 'tblTempUsageDetail_20' ) end [2025-01-29 01:11:21] Production.ERROR: pbx prc_insertCDR start [2025-01-29 01:11:21] Production.ERROR: pbx prc_insertCDR end [2025-01-29 01:11:21] Production.INFO: ==2417== Releasing lock... [2025-01-29 01:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 01:11:21] Production.INFO: 30.5 MB #Memory Used# [2025-01-29 01:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 22:12:05 [end_date_ymd] => 2025-01-29 01:12:05 [RateCDR] => 1 ) [2025-01-29 01:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 22:12:05' and `end` < '2025-01-29 01:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 01:12:18] Production.INFO: count ==265 [2025-01-29 01:12:18] Production.ERROR: pbx CDR StartTime 2025-01-28 22:12:05 - End Time 2025-01-29 01:12:05 [2025-01-29 01:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 01:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352874', 'tblTempUsageDetail_20' ) start [2025-01-29 01:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352874', 'tblTempUsageDetail_20' ) end [2025-01-29 01:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352874', 'tblTempVendorCDR_20' ) start [2025-01-29 01:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352874', 'tblTempVendorCDR_20' ) end [2025-01-29 01:12:18] Production.INFO: ProcessCDR(1,14352874,1,1,2) [2025-01-29 01:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14352874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 01:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14352874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 01:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14352874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 01:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14352874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 01:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352874', 'tblTempUsageDetail_20' ) start [2025-01-29 01:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352874', 'tblTempUsageDetail_20' ) end [2025-01-29 01:12:22] Production.ERROR: pbx prc_insertCDR start [2025-01-29 01:12:22] Production.ERROR: pbx prc_insertCDR end [2025-01-29 01:12:22] Production.INFO: ==2507== Releasing lock... [2025-01-29 01:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 01:12:22] Production.INFO: 30.5 MB #Memory Used# [2025-01-29 01:13:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 22:13:04 [end_date_ymd] => 2025-01-29 01:13:04 [RateCDR] => 1 ) [2025-01-29 01:13:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 22:13:04' and `end` < '2025-01-29 01:13:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 01:13:17] Production.INFO: count ==265 [2025-01-29 01:13:17] Production.ERROR: pbx CDR StartTime 2025-01-28 22:13:04 - End Time 2025-01-29 01:13:04 [2025-01-29 01:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 01:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352879', 'tblTempUsageDetail_20' ) start [2025-01-29 01:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352879', 'tblTempUsageDetail_20' ) end [2025-01-29 01:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352879', 'tblTempVendorCDR_20' ) start [2025-01-29 01:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352879', 'tblTempVendorCDR_20' ) end [2025-01-29 01:13:17] Production.INFO: ProcessCDR(1,14352879,1,1,2) [2025-01-29 01:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14352879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 01:13:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14352879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 01:13:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14352879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 01:13:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14352879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 01:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352879', 'tblTempUsageDetail_20' ) start [2025-01-29 01:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352879', 'tblTempUsageDetail_20' ) end [2025-01-29 01:13:20] Production.ERROR: pbx prc_insertCDR start [2025-01-29 01:13:20] Production.ERROR: pbx prc_insertCDR end [2025-01-29 01:13:20] Production.INFO: ==2629== Releasing lock... [2025-01-29 01:13:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 01:13:20] Production.INFO: 30.5 MB #Memory Used# [2025-01-29 01:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 22:14:05 [end_date_ymd] => 2025-01-29 01:14:05 [RateCDR] => 1 ) [2025-01-29 01:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 22:14:05' and `end` < '2025-01-29 01:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 01:14:18] Production.INFO: count ==265 [2025-01-29 01:14:18] Production.ERROR: pbx CDR StartTime 2025-01-28 22:14:05 - End Time 2025-01-29 01:14:05 [2025-01-29 01:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 01:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352884', 'tblTempUsageDetail_20' ) start [2025-01-29 01:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352884', 'tblTempUsageDetail_20' ) end [2025-01-29 01:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352884', 'tblTempVendorCDR_20' ) start [2025-01-29 01:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352884', 'tblTempVendorCDR_20' ) end [2025-01-29 01:14:18] Production.INFO: ProcessCDR(1,14352884,1,1,2) [2025-01-29 01:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14352884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 01:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14352884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 01:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14352884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 01:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14352884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 01:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352884', 'tblTempUsageDetail_20' ) start [2025-01-29 01:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352884', 'tblTempUsageDetail_20' ) end [2025-01-29 01:14:21] Production.ERROR: pbx prc_insertCDR start [2025-01-29 01:14:21] Production.ERROR: pbx prc_insertCDR end [2025-01-29 01:14:21] Production.INFO: ==2723== Releasing lock... [2025-01-29 01:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 01:14:21] Production.INFO: 30.5 MB #Memory Used# [2025-01-29 01:15:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 22:15:04 [end_date_ymd] => 2025-01-29 01:15:04 [RateCDR] => 1 ) [2025-01-29 01:15:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 22:15:04' and `end` < '2025-01-29 01:15:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 01:15:17] Production.INFO: count ==265 [2025-01-29 01:15:17] Production.ERROR: pbx CDR StartTime 2025-01-28 22:15:04 - End Time 2025-01-29 01:15:04 [2025-01-29 01:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 01:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352889', 'tblTempUsageDetail_20' ) start [2025-01-29 01:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352889', 'tblTempUsageDetail_20' ) end [2025-01-29 01:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352889', 'tblTempVendorCDR_20' ) start [2025-01-29 01:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352889', 'tblTempVendorCDR_20' ) end [2025-01-29 01:15:17] Production.INFO: ProcessCDR(1,14352889,1,1,2) [2025-01-29 01:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14352889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 01:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14352889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 01:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14352889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 01:15:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14352889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 01:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352889', 'tblTempUsageDetail_20' ) start [2025-01-29 01:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352889', 'tblTempUsageDetail_20' ) end [2025-01-29 01:15:20] Production.ERROR: pbx prc_insertCDR start [2025-01-29 01:15:20] Production.ERROR: pbx prc_insertCDR end [2025-01-29 01:15:20] Production.INFO: ==2817== Releasing lock... [2025-01-29 01:15:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 01:15:20] Production.INFO: 30.5 MB #Memory Used# [2025-01-29 01:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 22:16:05 [end_date_ymd] => 2025-01-29 01:16:05 [RateCDR] => 1 ) [2025-01-29 01:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 22:16:05' and `end` < '2025-01-29 01:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 01:16:19] Production.INFO: count ==264 [2025-01-29 01:16:19] Production.ERROR: pbx CDR StartTime 2025-01-28 22:16:05 - End Time 2025-01-29 01:16:05 [2025-01-29 01:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 01:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352894', 'tblTempUsageDetail_20' ) start [2025-01-29 01:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352894', 'tblTempUsageDetail_20' ) end [2025-01-29 01:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352894', 'tblTempVendorCDR_20' ) start [2025-01-29 01:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352894', 'tblTempVendorCDR_20' ) end [2025-01-29 01:16:19] Production.INFO: ProcessCDR(1,14352894,1,1,2) [2025-01-29 01:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14352894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 01:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14352894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 01:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14352894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 01:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14352894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 01:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352894', 'tblTempUsageDetail_20' ) start [2025-01-29 01:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352894', 'tblTempUsageDetail_20' ) end [2025-01-29 01:16:22] Production.ERROR: pbx prc_insertCDR start [2025-01-29 01:16:22] Production.ERROR: pbx prc_insertCDR end [2025-01-29 01:16:22] Production.INFO: ==2912== Releasing lock... [2025-01-29 01:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 01:16:22] Production.INFO: 30.75 MB #Memory Used# [2025-01-29 01:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 22:17:05 [end_date_ymd] => 2025-01-29 01:17:05 [RateCDR] => 1 ) [2025-01-29 01:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 22:17:05' and `end` < '2025-01-29 01:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 01:17:17] Production.INFO: count ==264 [2025-01-29 01:17:17] Production.ERROR: pbx CDR StartTime 2025-01-28 22:17:05 - End Time 2025-01-29 01:17:05 [2025-01-29 01:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 01:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352899', 'tblTempUsageDetail_20' ) start [2025-01-29 01:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352899', 'tblTempUsageDetail_20' ) end [2025-01-29 01:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352899', 'tblTempVendorCDR_20' ) start [2025-01-29 01:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352899', 'tblTempVendorCDR_20' ) end [2025-01-29 01:17:18] Production.INFO: ProcessCDR(1,14352899,1,1,2) [2025-01-29 01:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14352899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 01:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14352899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 01:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14352899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 01:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14352899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 01:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352899', 'tblTempUsageDetail_20' ) start [2025-01-29 01:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352899', 'tblTempUsageDetail_20' ) end [2025-01-29 01:17:22] Production.ERROR: pbx prc_insertCDR start [2025-01-29 01:17:22] Production.ERROR: pbx prc_insertCDR end [2025-01-29 01:17:22] Production.INFO: ==3004== Releasing lock... [2025-01-29 01:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 01:17:22] Production.INFO: 30.75 MB #Memory Used# [2025-01-29 01:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 22:18:05 [end_date_ymd] => 2025-01-29 01:18:05 [RateCDR] => 1 ) [2025-01-29 01:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 22:18:05' and `end` < '2025-01-29 01:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 01:18:19] Production.INFO: count ==263 [2025-01-29 01:18:19] Production.ERROR: pbx CDR StartTime 2025-01-28 22:18:05 - End Time 2025-01-29 01:18:05 [2025-01-29 01:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 01:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352904', 'tblTempUsageDetail_20' ) start [2025-01-29 01:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352904', 'tblTempUsageDetail_20' ) end [2025-01-29 01:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352904', 'tblTempVendorCDR_20' ) start [2025-01-29 01:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352904', 'tblTempVendorCDR_20' ) end [2025-01-29 01:18:19] Production.INFO: ProcessCDR(1,14352904,1,1,2) [2025-01-29 01:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14352904,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 01:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14352904,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 01:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14352904,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 01:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14352904,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 01:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352904', 'tblTempUsageDetail_20' ) start [2025-01-29 01:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352904', 'tblTempUsageDetail_20' ) end [2025-01-29 01:18:22] Production.ERROR: pbx prc_insertCDR start [2025-01-29 01:18:22] Production.ERROR: pbx prc_insertCDR end [2025-01-29 01:18:22] Production.INFO: ==3094== Releasing lock... [2025-01-29 01:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 01:18:22] Production.INFO: 30.25 MB #Memory Used# [2025-01-29 01:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 22:19:05 [end_date_ymd] => 2025-01-29 01:19:05 [RateCDR] => 1 ) [2025-01-29 01:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 22:19:05' and `end` < '2025-01-29 01:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 01:19:18] Production.INFO: count ==263 [2025-01-29 01:19:18] Production.ERROR: pbx CDR StartTime 2025-01-28 22:19:05 - End Time 2025-01-29 01:19:05 [2025-01-29 01:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 01:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352909', 'tblTempUsageDetail_20' ) start [2025-01-29 01:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352909', 'tblTempUsageDetail_20' ) end [2025-01-29 01:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352909', 'tblTempVendorCDR_20' ) start [2025-01-29 01:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352909', 'tblTempVendorCDR_20' ) end [2025-01-29 01:19:18] Production.INFO: ProcessCDR(1,14352909,1,1,2) [2025-01-29 01:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14352909,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 01:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14352909,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 01:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14352909,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 01:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14352909,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 01:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352909', 'tblTempUsageDetail_20' ) start [2025-01-29 01:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352909', 'tblTempUsageDetail_20' ) end [2025-01-29 01:19:21] Production.ERROR: pbx prc_insertCDR start [2025-01-29 01:19:21] Production.ERROR: pbx prc_insertCDR end [2025-01-29 01:19:22] Production.INFO: ==3186== Releasing lock... [2025-01-29 01:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 01:19:22] Production.INFO: 30.25 MB #Memory Used# [2025-01-29 01:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 22:20:06 [end_date_ymd] => 2025-01-29 01:20:06 [RateCDR] => 1 ) [2025-01-29 01:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 22:20:06' and `end` < '2025-01-29 01:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 01:20:19] Production.INFO: count ==272 [2025-01-29 01:20:19] Production.ERROR: pbx CDR StartTime 2025-01-28 22:20:06 - End Time 2025-01-29 01:20:06 [2025-01-29 01:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 01:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352915', 'tblTempUsageDetail_20' ) start [2025-01-29 01:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352915', 'tblTempUsageDetail_20' ) end [2025-01-29 01:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352915', 'tblTempVendorCDR_20' ) start [2025-01-29 01:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352915', 'tblTempVendorCDR_20' ) end [2025-01-29 01:20:19] Production.INFO: ProcessCDR(1,14352915,1,1,2) [2025-01-29 01:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14352915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 01:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14352915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 01:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14352915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 01:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14352915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 01:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352915', 'tblTempUsageDetail_20' ) start [2025-01-29 01:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352915', 'tblTempUsageDetail_20' ) end [2025-01-29 01:20:22] Production.ERROR: pbx prc_insertCDR start [2025-01-29 01:20:22] Production.ERROR: pbx prc_insertCDR end [2025-01-29 01:20:22] Production.INFO: ==3276== Releasing lock... [2025-01-29 01:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 01:20:22] Production.INFO: 30.75 MB #Memory Used# [2025-01-29 01:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 22:21:05 [end_date_ymd] => 2025-01-29 01:21:05 [RateCDR] => 1 ) [2025-01-29 01:21:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 22:21:05' and `end` < '2025-01-29 01:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 01:21:19] Production.INFO: count ==282 [2025-01-29 01:21:19] Production.ERROR: pbx CDR StartTime 2025-01-28 22:21:05 - End Time 2025-01-29 01:21:05 [2025-01-29 01:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 01:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352920', 'tblTempUsageDetail_20' ) start [2025-01-29 01:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352920', 'tblTempUsageDetail_20' ) end [2025-01-29 01:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352920', 'tblTempVendorCDR_20' ) start [2025-01-29 01:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352920', 'tblTempVendorCDR_20' ) end [2025-01-29 01:21:19] Production.INFO: ProcessCDR(1,14352920,1,1,2) [2025-01-29 01:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14352920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 01:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14352920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 01:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14352920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 01:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14352920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 01:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352920', 'tblTempUsageDetail_20' ) start [2025-01-29 01:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352920', 'tblTempUsageDetail_20' ) end [2025-01-29 01:21:22] Production.ERROR: pbx prc_insertCDR start [2025-01-29 01:21:22] Production.ERROR: pbx prc_insertCDR end [2025-01-29 01:21:22] Production.INFO: ==3368== Releasing lock... [2025-01-29 01:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 01:21:22] Production.INFO: 30.75 MB #Memory Used# [2025-01-29 01:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 22:22:05 [end_date_ymd] => 2025-01-29 01:22:05 [RateCDR] => 1 ) [2025-01-29 01:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 22:22:05' and `end` < '2025-01-29 01:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 01:22:18] Production.INFO: count ==286 [2025-01-29 01:22:18] Production.ERROR: pbx CDR StartTime 2025-01-28 22:22:05 - End Time 2025-01-29 01:22:05 [2025-01-29 01:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 01:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352925', 'tblTempUsageDetail_20' ) start [2025-01-29 01:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352925', 'tblTempUsageDetail_20' ) end [2025-01-29 01:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352925', 'tblTempVendorCDR_20' ) start [2025-01-29 01:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352925', 'tblTempVendorCDR_20' ) end [2025-01-29 01:22:18] Production.INFO: ProcessCDR(1,14352925,1,1,2) [2025-01-29 01:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14352925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 01:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14352925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 01:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14352925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 01:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14352925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 01:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352925', 'tblTempUsageDetail_20' ) start [2025-01-29 01:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352925', 'tblTempUsageDetail_20' ) end [2025-01-29 01:22:21] Production.ERROR: pbx prc_insertCDR start [2025-01-29 01:22:21] Production.ERROR: pbx prc_insertCDR end [2025-01-29 01:22:21] Production.INFO: ==3457== Releasing lock... [2025-01-29 01:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 01:22:21] Production.INFO: 30.5 MB #Memory Used# [2025-01-29 01:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 22:23:05 [end_date_ymd] => 2025-01-29 01:23:05 [RateCDR] => 1 ) [2025-01-29 01:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 22:23:05' and `end` < '2025-01-29 01:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 01:23:18] Production.INFO: count ==286 [2025-01-29 01:23:18] Production.ERROR: pbx CDR StartTime 2025-01-28 22:23:05 - End Time 2025-01-29 01:23:05 [2025-01-29 01:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 01:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352930', 'tblTempUsageDetail_20' ) start [2025-01-29 01:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352930', 'tblTempUsageDetail_20' ) end [2025-01-29 01:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352930', 'tblTempVendorCDR_20' ) start [2025-01-29 01:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352930', 'tblTempVendorCDR_20' ) end [2025-01-29 01:23:18] Production.INFO: ProcessCDR(1,14352930,1,1,2) [2025-01-29 01:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14352930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 01:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14352930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 01:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14352930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 01:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14352930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 01:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352930', 'tblTempUsageDetail_20' ) start [2025-01-29 01:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352930', 'tblTempUsageDetail_20' ) end [2025-01-29 01:23:21] Production.ERROR: pbx prc_insertCDR start [2025-01-29 01:23:21] Production.ERROR: pbx prc_insertCDR end [2025-01-29 01:23:21] Production.INFO: ==3548== Releasing lock... [2025-01-29 01:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 01:23:21] Production.INFO: 30.5 MB #Memory Used# [2025-01-29 01:24:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 22:24:04 [end_date_ymd] => 2025-01-29 01:24:04 [RateCDR] => 1 ) [2025-01-29 01:24:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 22:24:04' and `end` < '2025-01-29 01:24:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 01:24:18] Production.INFO: count ==285 [2025-01-29 01:24:18] Production.ERROR: pbx CDR StartTime 2025-01-28 22:24:04 - End Time 2025-01-29 01:24:04 [2025-01-29 01:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 01:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352935', 'tblTempUsageDetail_20' ) start [2025-01-29 01:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352935', 'tblTempUsageDetail_20' ) end [2025-01-29 01:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352935', 'tblTempVendorCDR_20' ) start [2025-01-29 01:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352935', 'tblTempVendorCDR_20' ) end [2025-01-29 01:24:18] Production.INFO: ProcessCDR(1,14352935,1,1,2) [2025-01-29 01:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14352935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 01:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14352935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 01:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14352935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 01:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14352935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 01:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352935', 'tblTempUsageDetail_20' ) start [2025-01-29 01:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352935', 'tblTempUsageDetail_20' ) end [2025-01-29 01:24:21] Production.ERROR: pbx prc_insertCDR start [2025-01-29 01:24:21] Production.ERROR: pbx prc_insertCDR end [2025-01-29 01:24:21] Production.INFO: ==3638== Releasing lock... [2025-01-29 01:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 01:24:21] Production.INFO: 30.5 MB #Memory Used# [2025-01-29 01:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 22:25:05 [end_date_ymd] => 2025-01-29 01:25:05 [RateCDR] => 1 ) [2025-01-29 01:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 22:25:05' and `end` < '2025-01-29 01:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 01:25:18] Production.INFO: count ==285 [2025-01-29 01:25:18] Production.ERROR: pbx CDR StartTime 2025-01-28 22:25:05 - End Time 2025-01-29 01:25:05 [2025-01-29 01:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352940', 'tblTempUsageDetail_20' ) start [2025-01-29 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352940', 'tblTempUsageDetail_20' ) end [2025-01-29 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352940', 'tblTempVendorCDR_20' ) start [2025-01-29 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352940', 'tblTempVendorCDR_20' ) end [2025-01-29 01:25:18] Production.INFO: ProcessCDR(1,14352940,1,1,2) [2025-01-29 01:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14352940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 01:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14352940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 01:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14352940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 01:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14352940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 01:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352940', 'tblTempUsageDetail_20' ) start [2025-01-29 01:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352940', 'tblTempUsageDetail_20' ) end [2025-01-29 01:25:21] Production.ERROR: pbx prc_insertCDR start [2025-01-29 01:25:21] Production.ERROR: pbx prc_insertCDR end [2025-01-29 01:25:21] Production.INFO: ==3734== Releasing lock... [2025-01-29 01:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 01:25:21] Production.INFO: 30.5 MB #Memory Used# [2025-01-29 01:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 22:26:05 [end_date_ymd] => 2025-01-29 01:26:05 [RateCDR] => 1 ) [2025-01-29 01:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 22:26:05' and `end` < '2025-01-29 01:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 01:26:18] Production.INFO: count ==285 [2025-01-29 01:26:18] Production.ERROR: pbx CDR StartTime 2025-01-28 22:26:05 - End Time 2025-01-29 01:26:05 [2025-01-29 01:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 01:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352945', 'tblTempUsageDetail_20' ) start [2025-01-29 01:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352945', 'tblTempUsageDetail_20' ) end [2025-01-29 01:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352945', 'tblTempVendorCDR_20' ) start [2025-01-29 01:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352945', 'tblTempVendorCDR_20' ) end [2025-01-29 01:26:18] Production.INFO: ProcessCDR(1,14352945,1,1,2) [2025-01-29 01:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14352945,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 01:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14352945,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 01:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14352945,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 01:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14352945,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 01:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352945', 'tblTempUsageDetail_20' ) start [2025-01-29 01:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352945', 'tblTempUsageDetail_20' ) end [2025-01-29 01:26:22] Production.ERROR: pbx prc_insertCDR start [2025-01-29 01:26:22] Production.ERROR: pbx prc_insertCDR end [2025-01-29 01:26:22] Production.INFO: ==3827== Releasing lock... [2025-01-29 01:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 01:26:22] Production.INFO: 30.5 MB #Memory Used# [2025-01-29 01:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 22:27:05 [end_date_ymd] => 2025-01-29 01:27:05 [RateCDR] => 1 ) [2025-01-29 01:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 22:27:05' and `end` < '2025-01-29 01:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 01:27:18] Production.INFO: count ==285 [2025-01-29 01:27:18] Production.ERROR: pbx CDR StartTime 2025-01-28 22:27:05 - End Time 2025-01-29 01:27:05 [2025-01-29 01:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 01:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352950', 'tblTempUsageDetail_20' ) start [2025-01-29 01:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352950', 'tblTempUsageDetail_20' ) end [2025-01-29 01:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352950', 'tblTempVendorCDR_20' ) start [2025-01-29 01:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352950', 'tblTempVendorCDR_20' ) end [2025-01-29 01:27:18] Production.INFO: ProcessCDR(1,14352950,1,1,2) [2025-01-29 01:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14352950,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 01:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14352950,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 01:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14352950,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 01:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14352950,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 01:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352950', 'tblTempUsageDetail_20' ) start [2025-01-29 01:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352950', 'tblTempUsageDetail_20' ) end [2025-01-29 01:27:22] Production.ERROR: pbx prc_insertCDR start [2025-01-29 01:27:22] Production.ERROR: pbx prc_insertCDR end [2025-01-29 01:27:22] Production.INFO: ==3925== Releasing lock... [2025-01-29 01:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 01:27:22] Production.INFO: 30.5 MB #Memory Used# [2025-01-29 01:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 22:28:05 [end_date_ymd] => 2025-01-29 01:28:05 [RateCDR] => 1 ) [2025-01-29 01:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 22:28:05' and `end` < '2025-01-29 01:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 01:28:18] Production.INFO: count ==283 [2025-01-29 01:28:18] Production.ERROR: pbx CDR StartTime 2025-01-28 22:28:05 - End Time 2025-01-29 01:28:05 [2025-01-29 01:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 01:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352955', 'tblTempUsageDetail_20' ) start [2025-01-29 01:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352955', 'tblTempUsageDetail_20' ) end [2025-01-29 01:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352955', 'tblTempVendorCDR_20' ) start [2025-01-29 01:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352955', 'tblTempVendorCDR_20' ) end [2025-01-29 01:28:18] Production.INFO: ProcessCDR(1,14352955,1,1,2) [2025-01-29 01:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14352955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 01:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14352955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 01:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14352955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 01:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14352955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 01:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352955', 'tblTempUsageDetail_20' ) start [2025-01-29 01:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352955', 'tblTempUsageDetail_20' ) end [2025-01-29 01:28:21] Production.ERROR: pbx prc_insertCDR start [2025-01-29 01:28:21] Production.ERROR: pbx prc_insertCDR end [2025-01-29 01:28:21] Production.INFO: ==4015== Releasing lock... [2025-01-29 01:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 01:28:21] Production.INFO: 30.25 MB #Memory Used# [2025-01-29 01:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 22:29:05 [end_date_ymd] => 2025-01-29 01:29:05 [RateCDR] => 1 ) [2025-01-29 01:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 22:29:05' and `end` < '2025-01-29 01:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 01:29:18] Production.INFO: count ==280 [2025-01-29 01:29:18] Production.ERROR: pbx CDR StartTime 2025-01-28 22:29:05 - End Time 2025-01-29 01:29:05 [2025-01-29 01:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 01:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352960', 'tblTempUsageDetail_20' ) start [2025-01-29 01:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352960', 'tblTempUsageDetail_20' ) end [2025-01-29 01:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352960', 'tblTempVendorCDR_20' ) start [2025-01-29 01:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352960', 'tblTempVendorCDR_20' ) end [2025-01-29 01:29:18] Production.INFO: ProcessCDR(1,14352960,1,1,2) [2025-01-29 01:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14352960,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 01:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14352960,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 01:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14352960,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 01:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14352960,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 01:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352960', 'tblTempUsageDetail_20' ) start [2025-01-29 01:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352960', 'tblTempUsageDetail_20' ) end [2025-01-29 01:29:21] Production.ERROR: pbx prc_insertCDR start [2025-01-29 01:29:21] Production.ERROR: pbx prc_insertCDR end [2025-01-29 01:29:21] Production.INFO: ==4149== Releasing lock... [2025-01-29 01:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 01:29:21] Production.INFO: 30.75 MB #Memory Used# [2025-01-29 01:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 22:30:06 [end_date_ymd] => 2025-01-29 01:30:06 [RateCDR] => 1 ) [2025-01-29 01:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 22:30:06' and `end` < '2025-01-29 01:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 01:30:20] Production.INFO: count ==285 [2025-01-29 01:30:20] Production.ERROR: pbx CDR StartTime 2025-01-28 22:30:06 - End Time 2025-01-29 01:30:06 [2025-01-29 01:30:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 01:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352966', 'tblTempUsageDetail_20' ) start [2025-01-29 01:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352966', 'tblTempUsageDetail_20' ) end [2025-01-29 01:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352966', 'tblTempVendorCDR_20' ) start [2025-01-29 01:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352966', 'tblTempVendorCDR_20' ) end [2025-01-29 01:30:20] Production.INFO: ProcessCDR(1,14352966,1,1,2) [2025-01-29 01:30:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14352966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 01:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14352966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 01:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14352966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 01:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14352966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 01:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352966', 'tblTempUsageDetail_20' ) start [2025-01-29 01:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352966', 'tblTempUsageDetail_20' ) end [2025-01-29 01:30:23] Production.ERROR: pbx prc_insertCDR start [2025-01-29 01:30:23] Production.ERROR: pbx prc_insertCDR end [2025-01-29 01:30:23] Production.INFO: ==4250== Releasing lock... [2025-01-29 01:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 01:30:23] Production.INFO: 30.5 MB #Memory Used# [2025-01-29 01:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 22:31:05 [end_date_ymd] => 2025-01-29 01:31:05 [RateCDR] => 1 ) [2025-01-29 01:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 22:31:05' and `end` < '2025-01-29 01:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 01:31:19] Production.INFO: count ==298 [2025-01-29 01:31:19] Production.ERROR: pbx CDR StartTime 2025-01-28 22:31:05 - End Time 2025-01-29 01:31:05 [2025-01-29 01:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 01:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352971', 'tblTempUsageDetail_20' ) start [2025-01-29 01:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352971', 'tblTempUsageDetail_20' ) end [2025-01-29 01:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352971', 'tblTempVendorCDR_20' ) start [2025-01-29 01:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352971', 'tblTempVendorCDR_20' ) end [2025-01-29 01:31:19] Production.INFO: ProcessCDR(1,14352971,1,1,2) [2025-01-29 01:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14352971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 01:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14352971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 01:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14352971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 01:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14352971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 01:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352971', 'tblTempUsageDetail_20' ) start [2025-01-29 01:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352971', 'tblTempUsageDetail_20' ) end [2025-01-29 01:31:22] Production.ERROR: pbx prc_insertCDR start [2025-01-29 01:31:22] Production.ERROR: pbx prc_insertCDR end [2025-01-29 01:31:22] Production.INFO: ==4347== Releasing lock... [2025-01-29 01:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 01:31:22] Production.INFO: 30.5 MB #Memory Used# [2025-01-29 01:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 22:32:05 [end_date_ymd] => 2025-01-29 01:32:05 [RateCDR] => 1 ) [2025-01-29 01:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 22:32:05' and `end` < '2025-01-29 01:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 01:32:18] Production.INFO: count ==299 [2025-01-29 01:32:18] Production.ERROR: pbx CDR StartTime 2025-01-28 22:32:05 - End Time 2025-01-29 01:32:05 [2025-01-29 01:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 01:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352976', 'tblTempUsageDetail_20' ) start [2025-01-29 01:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352976', 'tblTempUsageDetail_20' ) end [2025-01-29 01:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352976', 'tblTempVendorCDR_20' ) start [2025-01-29 01:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352976', 'tblTempVendorCDR_20' ) end [2025-01-29 01:32:18] Production.INFO: ProcessCDR(1,14352976,1,1,2) [2025-01-29 01:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14352976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 01:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14352976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 01:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14352976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 01:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14352976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 01:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352976', 'tblTempUsageDetail_20' ) start [2025-01-29 01:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352976', 'tblTempUsageDetail_20' ) end [2025-01-29 01:32:22] Production.ERROR: pbx prc_insertCDR start [2025-01-29 01:32:22] Production.ERROR: pbx prc_insertCDR end [2025-01-29 01:32:22] Production.INFO: ==4449== Releasing lock... [2025-01-29 01:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 01:32:22] Production.INFO: 30.5 MB #Memory Used# [2025-01-29 01:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 22:33:05 [end_date_ymd] => 2025-01-29 01:33:05 [RateCDR] => 1 ) [2025-01-29 01:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 22:33:05' and `end` < '2025-01-29 01:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 01:33:19] Production.INFO: count ==299 [2025-01-29 01:33:19] Production.ERROR: pbx CDR StartTime 2025-01-28 22:33:05 - End Time 2025-01-29 01:33:05 [2025-01-29 01:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 01:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352981', 'tblTempUsageDetail_20' ) start [2025-01-29 01:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352981', 'tblTempUsageDetail_20' ) end [2025-01-29 01:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352981', 'tblTempVendorCDR_20' ) start [2025-01-29 01:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352981', 'tblTempVendorCDR_20' ) end [2025-01-29 01:33:19] Production.INFO: ProcessCDR(1,14352981,1,1,2) [2025-01-29 01:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14352981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 01:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14352981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 01:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14352981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 01:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14352981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 01:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352981', 'tblTempUsageDetail_20' ) start [2025-01-29 01:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352981', 'tblTempUsageDetail_20' ) end [2025-01-29 01:33:22] Production.ERROR: pbx prc_insertCDR start [2025-01-29 01:33:22] Production.ERROR: pbx prc_insertCDR end [2025-01-29 01:33:22] Production.INFO: ==4541== Releasing lock... [2025-01-29 01:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 01:33:22] Production.INFO: 30.5 MB #Memory Used# [2025-01-29 01:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 22:34:05 [end_date_ymd] => 2025-01-29 01:34:05 [RateCDR] => 1 ) [2025-01-29 01:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 22:34:05' and `end` < '2025-01-29 01:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 01:34:19] Production.INFO: count ==300 [2025-01-29 01:34:19] Production.ERROR: pbx CDR StartTime 2025-01-28 22:34:05 - End Time 2025-01-29 01:34:05 [2025-01-29 01:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 01:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352986', 'tblTempUsageDetail_20' ) start [2025-01-29 01:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352986', 'tblTempUsageDetail_20' ) end [2025-01-29 01:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352986', 'tblTempVendorCDR_20' ) start [2025-01-29 01:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352986', 'tblTempVendorCDR_20' ) end [2025-01-29 01:34:19] Production.INFO: ProcessCDR(1,14352986,1,1,2) [2025-01-29 01:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14352986,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 01:34:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14352986,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 01:34:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14352986,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 01:34:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14352986,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 01:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352986', 'tblTempUsageDetail_20' ) start [2025-01-29 01:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352986', 'tblTempUsageDetail_20' ) end [2025-01-29 01:34:24] Production.ERROR: pbx prc_insertCDR start [2025-01-29 01:34:24] Production.ERROR: pbx prc_insertCDR end [2025-01-29 01:34:24] Production.INFO: ==4652== Releasing lock... [2025-01-29 01:34:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 01:34:24] Production.INFO: 30.5 MB #Memory Used# [2025-01-29 01:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 22:35:05 [end_date_ymd] => 2025-01-29 01:35:05 [RateCDR] => 1 ) [2025-01-29 01:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 22:35:05' and `end` < '2025-01-29 01:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 01:35:18] Production.INFO: count ==298 [2025-01-29 01:35:18] Production.ERROR: pbx CDR StartTime 2025-01-28 22:35:05 - End Time 2025-01-29 01:35:05 [2025-01-29 01:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 01:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352990', 'tblTempUsageDetail_20' ) start [2025-01-29 01:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352990', 'tblTempUsageDetail_20' ) end [2025-01-29 01:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352990', 'tblTempVendorCDR_20' ) start [2025-01-29 01:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352990', 'tblTempVendorCDR_20' ) end [2025-01-29 01:35:18] Production.INFO: ProcessCDR(1,14352990,1,1,2) [2025-01-29 01:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14352990,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 01:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14352990,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 01:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14352990,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 01:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14352990,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 01:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352990', 'tblTempUsageDetail_20' ) start [2025-01-29 01:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352990', 'tblTempUsageDetail_20' ) end [2025-01-29 01:35:21] Production.ERROR: pbx prc_insertCDR start [2025-01-29 01:35:21] Production.ERROR: pbx prc_insertCDR end [2025-01-29 01:35:21] Production.INFO: ==4738== Releasing lock... [2025-01-29 01:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 01:35:21] Production.INFO: 30.5 MB #Memory Used# [2025-01-29 01:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 22:36:05 [end_date_ymd] => 2025-01-29 01:36:05 [RateCDR] => 1 ) [2025-01-29 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-01-28 22:36:05' and `end` < '2025-01-29 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-01-29 01:36:19] Production.INFO: count ==297 [2025-01-29 01:36:19] Production.ERROR: pbx CDR StartTime 2025-01-28 22:36:05 - End Time 2025-01-29 01:36:05 [2025-01-29 01:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 01:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352996', 'tblTempUsageDetail_20' ) start [2025-01-29 01:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14352996', 'tblTempUsageDetail_20' ) end [2025-01-29 01:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352996', 'tblTempVendorCDR_20' ) start [2025-01-29 01:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14352996', 'tblTempVendorCDR_20' ) end [2025-01-29 01:36:19] Production.INFO: ProcessCDR(1,14352996,1,1,2) [2025-01-29 01:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14352996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 01:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14352996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 01:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14352996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 01:36:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14352996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 01:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352996', 'tblTempUsageDetail_20' ) start [2025-01-29 01:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14352996', 'tblTempUsageDetail_20' ) end [2025-01-29 01:36:23] Production.ERROR: pbx prc_insertCDR start [2025-01-29 01:36:23] Production.ERROR: pbx prc_insertCDR end [2025-01-29 01:36:23] Production.INFO: ==4843== Releasing lock... [2025-01-29 01:36:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 01:36:23] Production.INFO: 30.75 MB #Memory Used# [2025-01-29 01:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 22:37:05 [end_date_ymd] => 2025-01-29 01:37:05 [RateCDR] => 1 ) [2025-01-29 01:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 22:37:05' and `end` < '2025-01-29 01:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 01:37:18] Production.INFO: count ==297 [2025-01-29 01:37:18] Production.ERROR: pbx CDR StartTime 2025-01-28 22:37:05 - End Time 2025-01-29 01:37:05 [2025-01-29 01:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 01:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353001', 'tblTempUsageDetail_20' ) start [2025-01-29 01:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353001', 'tblTempUsageDetail_20' ) end [2025-01-29 01:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353001', 'tblTempVendorCDR_20' ) start [2025-01-29 01:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353001', 'tblTempVendorCDR_20' ) end [2025-01-29 01:37:19] Production.INFO: ProcessCDR(1,14353001,1,1,2) [2025-01-29 01:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14353001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 01:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14353001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 01:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14353001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 01:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14353001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 01:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353001', 'tblTempUsageDetail_20' ) start [2025-01-29 01:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353001', 'tblTempUsageDetail_20' ) end [2025-01-29 01:37:22] Production.ERROR: pbx prc_insertCDR start [2025-01-29 01:37:22] Production.ERROR: pbx prc_insertCDR end [2025-01-29 01:37:22] Production.INFO: ==4936== Releasing lock... [2025-01-29 01:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 01:37:22] Production.INFO: 30.75 MB #Memory Used# [2025-01-29 01:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 22:38:06 [end_date_ymd] => 2025-01-29 01:38:06 [RateCDR] => 1 ) [2025-01-29 01:38:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 22:38:06' and `end` < '2025-01-29 01:38:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 01:38:19] Production.INFO: count ==293 [2025-01-29 01:38:19] Production.ERROR: pbx CDR StartTime 2025-01-28 22:38:06 - End Time 2025-01-29 01:38:06 [2025-01-29 01:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 01:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353006', 'tblTempUsageDetail_20' ) start [2025-01-29 01:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353006', 'tblTempUsageDetail_20' ) end [2025-01-29 01:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353006', 'tblTempVendorCDR_20' ) start [2025-01-29 01:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353006', 'tblTempVendorCDR_20' ) end [2025-01-29 01:38:19] Production.INFO: ProcessCDR(1,14353006,1,1,2) [2025-01-29 01:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14353006,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 01:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14353006,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 01:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14353006,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 01:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14353006,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 01:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353006', 'tblTempUsageDetail_20' ) start [2025-01-29 01:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353006', 'tblTempUsageDetail_20' ) end [2025-01-29 01:38:22] Production.ERROR: pbx prc_insertCDR start [2025-01-29 01:38:22] Production.ERROR: pbx prc_insertCDR end [2025-01-29 01:38:22] Production.INFO: ==5033== Releasing lock... [2025-01-29 01:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 01:38:22] Production.INFO: 30.5 MB #Memory Used# [2025-01-29 01:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 22:39:05 [end_date_ymd] => 2025-01-29 01:39:05 [RateCDR] => 1 ) [2025-01-29 01:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 22:39:05' and `end` < '2025-01-29 01:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 01:39:18] Production.INFO: count ==291 [2025-01-29 01:39:19] Production.ERROR: pbx CDR StartTime 2025-01-28 22:39:05 - End Time 2025-01-29 01:39:05 [2025-01-29 01:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 01:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353011', 'tblTempUsageDetail_20' ) start [2025-01-29 01:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353011', 'tblTempUsageDetail_20' ) end [2025-01-29 01:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353011', 'tblTempVendorCDR_20' ) start [2025-01-29 01:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353011', 'tblTempVendorCDR_20' ) end [2025-01-29 01:39:19] Production.INFO: ProcessCDR(1,14353011,1,1,2) [2025-01-29 01:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14353011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 01:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14353011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 01:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14353011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 01:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14353011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 01:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353011', 'tblTempUsageDetail_20' ) start [2025-01-29 01:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353011', 'tblTempUsageDetail_20' ) end [2025-01-29 01:39:22] Production.ERROR: pbx prc_insertCDR start [2025-01-29 01:39:22] Production.ERROR: pbx prc_insertCDR end [2025-01-29 01:39:22] Production.INFO: ==5130== Releasing lock... [2025-01-29 01:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 01:39:22] Production.INFO: 30 MB #Memory Used# [2025-01-29 01:40:07] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 22:40:07 [end_date_ymd] => 2025-01-29 01:40:07 [RateCDR] => 1 ) [2025-01-29 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-01-28 22:40:07' and `end` < '2025-01-29 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-01-29 01:40:19] Production.INFO: count ==294 [2025-01-29 01:40:19] Production.ERROR: pbx CDR StartTime 2025-01-28 22:40:07 - End Time 2025-01-29 01:40:07 [2025-01-29 01:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 01:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353016', 'tblTempUsageDetail_20' ) start [2025-01-29 01:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353016', 'tblTempUsageDetail_20' ) end [2025-01-29 01:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353016', 'tblTempVendorCDR_20' ) start [2025-01-29 01:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353016', 'tblTempVendorCDR_20' ) end [2025-01-29 01:40:19] Production.INFO: ProcessCDR(1,14353016,1,1,2) [2025-01-29 01:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14353016,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 01:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14353016,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 01:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14353016,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 01:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14353016,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 01:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353016', 'tblTempUsageDetail_20' ) start [2025-01-29 01:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353016', 'tblTempUsageDetail_20' ) end [2025-01-29 01:40:23] Production.ERROR: pbx prc_insertCDR start [2025-01-29 01:40:23] Production.ERROR: pbx prc_insertCDR end [2025-01-29 01:40:23] Production.INFO: ==5238== Releasing lock... [2025-01-29 01:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 01:40:23] Production.INFO: 30 MB #Memory Used# [2025-01-29 01:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 22:41:05 [end_date_ymd] => 2025-01-29 01:41:05 [RateCDR] => 1 ) [2025-01-29 01:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 22:41:05' and `end` < '2025-01-29 01:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 01:41:18] Production.INFO: count ==294 [2025-01-29 01:41:18] Production.ERROR: pbx CDR StartTime 2025-01-28 22:41:05 - End Time 2025-01-29 01:41:05 [2025-01-29 01:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 01:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353022', 'tblTempUsageDetail_20' ) start [2025-01-29 01:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353022', 'tblTempUsageDetail_20' ) end [2025-01-29 01:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353022', 'tblTempVendorCDR_20' ) start [2025-01-29 01:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353022', 'tblTempVendorCDR_20' ) end [2025-01-29 01:41:18] Production.INFO: ProcessCDR(1,14353022,1,1,2) [2025-01-29 01:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14353022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 01:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14353022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 01:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14353022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 01:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14353022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 01:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353022', 'tblTempUsageDetail_20' ) start [2025-01-29 01:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353022', 'tblTempUsageDetail_20' ) end [2025-01-29 01:41:22] Production.ERROR: pbx prc_insertCDR start [2025-01-29 01:41:22] Production.ERROR: pbx prc_insertCDR end [2025-01-29 01:41:22] Production.INFO: ==5330== Releasing lock... [2025-01-29 01:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 01:41:22] Production.INFO: 30 MB #Memory Used# [2025-01-29 01:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 22:42:06 [end_date_ymd] => 2025-01-29 01:42:06 [RateCDR] => 1 ) [2025-01-29 01:42:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 22:42:06' and `end` < '2025-01-29 01:42:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 01:42:19] Production.INFO: count ==293 [2025-01-29 01:42:19] Production.ERROR: pbx CDR StartTime 2025-01-28 22:42:06 - End Time 2025-01-29 01:42:06 [2025-01-29 01:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 01:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353027', 'tblTempUsageDetail_20' ) start [2025-01-29 01:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353027', 'tblTempUsageDetail_20' ) end [2025-01-29 01:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353027', 'tblTempVendorCDR_20' ) start [2025-01-29 01:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353027', 'tblTempVendorCDR_20' ) end [2025-01-29 01:42:19] Production.INFO: ProcessCDR(1,14353027,1,1,2) [2025-01-29 01:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14353027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 01:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14353027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 01:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14353027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 01:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14353027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 01:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353027', 'tblTempUsageDetail_20' ) start [2025-01-29 01:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353027', 'tblTempUsageDetail_20' ) end [2025-01-29 01:42:23] Production.ERROR: pbx prc_insertCDR start [2025-01-29 01:42:23] Production.ERROR: pbx prc_insertCDR end [2025-01-29 01:42:23] Production.INFO: ==5427== Releasing lock... [2025-01-29 01:42:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 01:42:23] Production.INFO: 30.25 MB #Memory Used# [2025-01-29 01:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 22:43:05 [end_date_ymd] => 2025-01-29 01:43:05 [RateCDR] => 1 ) [2025-01-29 01:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 22:43:05' and `end` < '2025-01-29 01:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 01:43:18] Production.INFO: count ==292 [2025-01-29 01:43:18] Production.ERROR: pbx CDR StartTime 2025-01-28 22:43:05 - End Time 2025-01-29 01:43:05 [2025-01-29 01:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 01:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353032', 'tblTempUsageDetail_20' ) start [2025-01-29 01:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353032', 'tblTempUsageDetail_20' ) end [2025-01-29 01:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353032', 'tblTempVendorCDR_20' ) start [2025-01-29 01:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353032', 'tblTempVendorCDR_20' ) end [2025-01-29 01:43:18] Production.INFO: ProcessCDR(1,14353032,1,1,2) [2025-01-29 01:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14353032,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 01:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14353032,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 01:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14353032,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 01:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14353032,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 01:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353032', 'tblTempUsageDetail_20' ) start [2025-01-29 01:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353032', 'tblTempUsageDetail_20' ) end [2025-01-29 01:43:21] Production.ERROR: pbx prc_insertCDR start [2025-01-29 01:43:21] Production.ERROR: pbx prc_insertCDR end [2025-01-29 01:43:21] Production.INFO: ==5522== Releasing lock... [2025-01-29 01:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 01:43:21] Production.INFO: 30.5 MB #Memory Used# [2025-01-29 01:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 22:44:06 [end_date_ymd] => 2025-01-29 01:44:06 [RateCDR] => 1 ) [2025-01-29 01:44:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 22:44:06' and `end` < '2025-01-29 01:44:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 01:44:19] Production.INFO: count ==292 [2025-01-29 01:44:19] Production.ERROR: pbx CDR StartTime 2025-01-28 22:44:06 - End Time 2025-01-29 01:44:06 [2025-01-29 01:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 01:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353037', 'tblTempUsageDetail_20' ) start [2025-01-29 01:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353037', 'tblTempUsageDetail_20' ) end [2025-01-29 01:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353037', 'tblTempVendorCDR_20' ) start [2025-01-29 01:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353037', 'tblTempVendorCDR_20' ) end [2025-01-29 01:44:19] Production.INFO: ProcessCDR(1,14353037,1,1,2) [2025-01-29 01:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14353037,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 01:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14353037,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 01:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14353037,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 01:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14353037,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 01:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353037', 'tblTempUsageDetail_20' ) start [2025-01-29 01:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353037', 'tblTempUsageDetail_20' ) end [2025-01-29 01:44:22] Production.ERROR: pbx prc_insertCDR start [2025-01-29 01:44:22] Production.ERROR: pbx prc_insertCDR end [2025-01-29 01:44:22] Production.INFO: ==5654== Releasing lock... [2025-01-29 01:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 01:44:22] Production.INFO: 30.5 MB #Memory Used# [2025-01-29 01:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 22:45:06 [end_date_ymd] => 2025-01-29 01:45:06 [RateCDR] => 1 ) [2025-01-29 01:45:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 22:45:06' and `end` < '2025-01-29 01:45:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 01:45:18] Production.INFO: count ==292 [2025-01-29 01:45:18] Production.ERROR: pbx CDR StartTime 2025-01-28 22:45:06 - End Time 2025-01-29 01:45:06 [2025-01-29 01:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 01:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353042', 'tblTempUsageDetail_20' ) start [2025-01-29 01:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353042', 'tblTempUsageDetail_20' ) end [2025-01-29 01:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353042', 'tblTempVendorCDR_20' ) start [2025-01-29 01:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353042', 'tblTempVendorCDR_20' ) end [2025-01-29 01:45:18] Production.INFO: ProcessCDR(1,14353042,1,1,2) [2025-01-29 01:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14353042,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 01:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14353042,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 01:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14353042,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 01:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14353042,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 01:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353042', 'tblTempUsageDetail_20' ) start [2025-01-29 01:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353042', 'tblTempUsageDetail_20' ) end [2025-01-29 01:45:22] Production.ERROR: pbx prc_insertCDR start [2025-01-29 01:45:22] Production.ERROR: pbx prc_insertCDR end [2025-01-29 01:45:22] Production.INFO: ==5753== Releasing lock... [2025-01-29 01:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 01:45:22] Production.INFO: 30.5 MB #Memory Used# [2025-01-29 01:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 22:46:06 [end_date_ymd] => 2025-01-29 01:46:06 [RateCDR] => 1 ) [2025-01-29 01:46:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 22:46:06' and `end` < '2025-01-29 01:46:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 01:46:19] Production.INFO: count ==292 [2025-01-29 01:46:19] Production.ERROR: pbx CDR StartTime 2025-01-28 22:46:06 - End Time 2025-01-29 01:46:06 [2025-01-29 01:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 01:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353047', 'tblTempUsageDetail_20' ) start [2025-01-29 01:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353047', 'tblTempUsageDetail_20' ) end [2025-01-29 01:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353047', 'tblTempVendorCDR_20' ) start [2025-01-29 01:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353047', 'tblTempVendorCDR_20' ) end [2025-01-29 01:46:19] Production.INFO: ProcessCDR(1,14353047,1,1,2) [2025-01-29 01:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14353047,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 01:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14353047,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 01:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14353047,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 01:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14353047,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 01:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353047', 'tblTempUsageDetail_20' ) start [2025-01-29 01:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353047', 'tblTempUsageDetail_20' ) end [2025-01-29 01:46:22] Production.ERROR: pbx prc_insertCDR start [2025-01-29 01:46:22] Production.ERROR: pbx prc_insertCDR end [2025-01-29 01:46:22] Production.INFO: ==5846== Releasing lock... [2025-01-29 01:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 01:46:22] Production.INFO: 30.5 MB #Memory Used# [2025-01-29 01:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 22:47:05 [end_date_ymd] => 2025-01-29 01:47:05 [RateCDR] => 1 ) [2025-01-29 01:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 22:47:05' and `end` < '2025-01-29 01:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 01:47:19] Production.INFO: count ==294 [2025-01-29 01:47:19] Production.ERROR: pbx CDR StartTime 2025-01-28 22:47:05 - End Time 2025-01-29 01:47:05 [2025-01-29 01:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 01:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353052', 'tblTempUsageDetail_20' ) start [2025-01-29 01:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353052', 'tblTempUsageDetail_20' ) end [2025-01-29 01:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353052', 'tblTempVendorCDR_20' ) start [2025-01-29 01:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353052', 'tblTempVendorCDR_20' ) end [2025-01-29 01:47:19] Production.INFO: ProcessCDR(1,14353052,1,1,2) [2025-01-29 01:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14353052,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 01:47:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14353052,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 01:47:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14353052,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 01:47:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14353052,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 01:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353052', 'tblTempUsageDetail_20' ) start [2025-01-29 01:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353052', 'tblTempUsageDetail_20' ) end [2025-01-29 01:47:24] Production.ERROR: pbx prc_insertCDR start [2025-01-29 01:47:24] Production.ERROR: pbx prc_insertCDR end [2025-01-29 01:47:24] Production.INFO: ==5940== Releasing lock... [2025-01-29 01:47:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 01:47:24] Production.INFO: 30 MB #Memory Used# [2025-01-29 01:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 22:48:05 [end_date_ymd] => 2025-01-29 01:48:05 [RateCDR] => 1 ) [2025-01-29 01:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 22:48:05' and `end` < '2025-01-29 01:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 01:48:18] Production.INFO: count ==292 [2025-01-29 01:48:18] Production.ERROR: pbx CDR StartTime 2025-01-28 22:48:05 - End Time 2025-01-29 01:48:05 [2025-01-29 01:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 01:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353057', 'tblTempUsageDetail_20' ) start [2025-01-29 01:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353057', 'tblTempUsageDetail_20' ) end [2025-01-29 01:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353057', 'tblTempVendorCDR_20' ) start [2025-01-29 01:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353057', 'tblTempVendorCDR_20' ) end [2025-01-29 01:48:18] Production.INFO: ProcessCDR(1,14353057,1,1,2) [2025-01-29 01:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14353057,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 01:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14353057,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 01:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14353057,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 01:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14353057,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 01:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353057', 'tblTempUsageDetail_20' ) start [2025-01-29 01:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353057', 'tblTempUsageDetail_20' ) end [2025-01-29 01:48:21] Production.ERROR: pbx prc_insertCDR start [2025-01-29 01:48:21] Production.ERROR: pbx prc_insertCDR end [2025-01-29 01:48:21] Production.INFO: ==6031== Releasing lock... [2025-01-29 01:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 01:48:21] Production.INFO: 30.5 MB #Memory Used# [2025-01-29 01:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 22:49:05 [end_date_ymd] => 2025-01-29 01:49:05 [RateCDR] => 1 ) [2025-01-29 01:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 22:49:05' and `end` < '2025-01-29 01:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 01:49:18] Production.INFO: count ==286 [2025-01-29 01:49:18] Production.ERROR: pbx CDR StartTime 2025-01-28 22:49:05 - End Time 2025-01-29 01:49:05 [2025-01-29 01:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 01:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353062', 'tblTempUsageDetail_20' ) start [2025-01-29 01:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353062', 'tblTempUsageDetail_20' ) end [2025-01-29 01:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353062', 'tblTempVendorCDR_20' ) start [2025-01-29 01:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353062', 'tblTempVendorCDR_20' ) end [2025-01-29 01:49:18] Production.INFO: ProcessCDR(1,14353062,1,1,2) [2025-01-29 01:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14353062,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 01:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14353062,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 01:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14353062,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 01:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14353062,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 01:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353062', 'tblTempUsageDetail_20' ) start [2025-01-29 01:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353062', 'tblTempUsageDetail_20' ) end [2025-01-29 01:49:21] Production.ERROR: pbx prc_insertCDR start [2025-01-29 01:49:21] Production.ERROR: pbx prc_insertCDR end [2025-01-29 01:49:21] Production.INFO: ==6128== Releasing lock... [2025-01-29 01:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 01:49:21] Production.INFO: 30.25 MB #Memory Used# [2025-01-29 01:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 22:50:05 [end_date_ymd] => 2025-01-29 01:50:05 [RateCDR] => 1 ) [2025-01-29 01:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 22:50:05' and `end` < '2025-01-29 01:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 01:50:18] Production.INFO: count ==291 [2025-01-29 01:50:18] Production.ERROR: pbx CDR StartTime 2025-01-28 22:50:05 - End Time 2025-01-29 01:50:05 [2025-01-29 01:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 01:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353068', 'tblTempUsageDetail_20' ) start [2025-01-29 01:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353068', 'tblTempUsageDetail_20' ) end [2025-01-29 01:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353068', 'tblTempVendorCDR_20' ) start [2025-01-29 01:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353068', 'tblTempVendorCDR_20' ) end [2025-01-29 01:50:18] Production.INFO: ProcessCDR(1,14353068,1,1,2) [2025-01-29 01:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14353068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 01:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14353068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 01:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14353068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 01:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14353068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 01:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353068', 'tblTempUsageDetail_20' ) start [2025-01-29 01:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353068', 'tblTempUsageDetail_20' ) end [2025-01-29 01:50:22] Production.ERROR: pbx prc_insertCDR start [2025-01-29 01:50:22] Production.ERROR: pbx prc_insertCDR end [2025-01-29 01:50:22] Production.INFO: ==6217== Releasing lock... [2025-01-29 01:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 01:50:22] Production.INFO: 30.5 MB #Memory Used# [2025-01-29 01:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 22:51:05 [end_date_ymd] => 2025-01-29 01:51:05 [RateCDR] => 1 ) [2025-01-29 01:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 22:51:05' and `end` < '2025-01-29 01:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 01:51:19] Production.INFO: count ==291 [2025-01-29 01:51:19] Production.ERROR: pbx CDR StartTime 2025-01-28 22:51:05 - End Time 2025-01-29 01:51:05 [2025-01-29 01:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 01:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353073', 'tblTempUsageDetail_20' ) start [2025-01-29 01:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353073', 'tblTempUsageDetail_20' ) end [2025-01-29 01:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353073', 'tblTempVendorCDR_20' ) start [2025-01-29 01:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353073', 'tblTempVendorCDR_20' ) end [2025-01-29 01:51:19] Production.INFO: ProcessCDR(1,14353073,1,1,2) [2025-01-29 01:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14353073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 01:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14353073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 01:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14353073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 01:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14353073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 01:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353073', 'tblTempUsageDetail_20' ) start [2025-01-29 01:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353073', 'tblTempUsageDetail_20' ) end [2025-01-29 01:51:22] Production.ERROR: pbx prc_insertCDR start [2025-01-29 01:51:22] Production.ERROR: pbx prc_insertCDR end [2025-01-29 01:51:22] Production.INFO: ==6303== Releasing lock... [2025-01-29 01:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 01:51:22] Production.INFO: 30.5 MB #Memory Used# [2025-01-29 01:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 22:52:04 [end_date_ymd] => 2025-01-29 01:52:04 [RateCDR] => 1 ) [2025-01-29 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-01-28 22:52:04' and `end` < '2025-01-29 01:52:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 01:52:18] Production.INFO: count ==291 [2025-01-29 01:52:18] Production.ERROR: pbx CDR StartTime 2025-01-28 22:52:04 - End Time 2025-01-29 01:52:04 [2025-01-29 01:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 01:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353074', 'tblTempUsageDetail_20' ) start [2025-01-29 01:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353074', 'tblTempUsageDetail_20' ) end [2025-01-29 01:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353074', 'tblTempVendorCDR_20' ) start [2025-01-29 01:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353074', 'tblTempVendorCDR_20' ) end [2025-01-29 01:52:18] Production.INFO: ProcessCDR(1,14353074,1,1,2) [2025-01-29 01:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14353074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 01:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14353074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 01:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14353074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 01:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14353074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 01:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353074', 'tblTempUsageDetail_20' ) start [2025-01-29 01:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353074', 'tblTempUsageDetail_20' ) end [2025-01-29 01:52:21] Production.ERROR: pbx prc_insertCDR start [2025-01-29 01:52:21] Production.ERROR: pbx prc_insertCDR end [2025-01-29 01:52:21] Production.INFO: ==6376== Releasing lock... [2025-01-29 01:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 01:52:21] Production.INFO: 30.5 MB #Memory Used# [2025-01-29 01:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 22:53:06 [end_date_ymd] => 2025-01-29 01:53:06 [RateCDR] => 1 ) [2025-01-29 01:53:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 22:53:06' and `end` < '2025-01-29 01:53:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 01:53:18] Production.INFO: count ==291 [2025-01-29 01:53:18] Production.ERROR: pbx CDR StartTime 2025-01-28 22:53:06 - End Time 2025-01-29 01:53:06 [2025-01-29 01:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 01:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353083', 'tblTempUsageDetail_20' ) start [2025-01-29 01:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353083', 'tblTempUsageDetail_20' ) end [2025-01-29 01:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353083', 'tblTempVendorCDR_20' ) start [2025-01-29 01:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353083', 'tblTempVendorCDR_20' ) end [2025-01-29 01:53:18] Production.INFO: ProcessCDR(1,14353083,1,1,2) [2025-01-29 01:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14353083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 01:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14353083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 01:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14353083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 01:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14353083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 01:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353083', 'tblTempUsageDetail_20' ) start [2025-01-29 01:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353083', 'tblTempUsageDetail_20' ) end [2025-01-29 01:53:22] Production.ERROR: pbx prc_insertCDR start [2025-01-29 01:53:22] Production.ERROR: pbx prc_insertCDR end [2025-01-29 01:53:22] Production.INFO: ==6460== Releasing lock... [2025-01-29 01:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 01:53:22] Production.INFO: 30.5 MB #Memory Used# [2025-01-29 01:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 22:54:06 [end_date_ymd] => 2025-01-29 01:54:06 [RateCDR] => 1 ) [2025-01-29 01:54:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 22:54:06' and `end` < '2025-01-29 01:54:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 01:54:18] Production.INFO: count ==291 [2025-01-29 01:54:18] Production.ERROR: pbx CDR StartTime 2025-01-28 22:54:06 - End Time 2025-01-29 01:54:06 [2025-01-29 01:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 01:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353088', 'tblTempUsageDetail_20' ) start [2025-01-29 01:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353088', 'tblTempUsageDetail_20' ) end [2025-01-29 01:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353088', 'tblTempVendorCDR_20' ) start [2025-01-29 01:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353088', 'tblTempVendorCDR_20' ) end [2025-01-29 01:54:18] Production.INFO: ProcessCDR(1,14353088,1,1,2) [2025-01-29 01:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14353088,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 01:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14353088,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 01:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14353088,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 01:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14353088,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 01:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353088', 'tblTempUsageDetail_20' ) start [2025-01-29 01:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353088', 'tblTempUsageDetail_20' ) end [2025-01-29 01:54:22] Production.ERROR: pbx prc_insertCDR start [2025-01-29 01:54:22] Production.ERROR: pbx prc_insertCDR end [2025-01-29 01:54:22] Production.INFO: ==6539== Releasing lock... [2025-01-29 01:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 01:54:22] Production.INFO: 30.5 MB #Memory Used# [2025-01-29 01:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 22:55:05 [end_date_ymd] => 2025-01-29 01:55:05 [RateCDR] => 1 ) [2025-01-29 01:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 22:55:05' and `end` < '2025-01-29 01:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 01:55:19] Production.INFO: count ==290 [2025-01-29 01:55:19] Production.ERROR: pbx CDR StartTime 2025-01-28 22:55:05 - End Time 2025-01-29 01:55:05 [2025-01-29 01:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 01:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353093', 'tblTempUsageDetail_20' ) start [2025-01-29 01:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353093', 'tblTempUsageDetail_20' ) end [2025-01-29 01:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353093', 'tblTempVendorCDR_20' ) start [2025-01-29 01:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353093', 'tblTempVendorCDR_20' ) end [2025-01-29 01:55:19] Production.INFO: ProcessCDR(1,14353093,1,1,2) [2025-01-29 01:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14353093,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 01:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14353093,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 01:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14353093,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 01:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14353093,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 01:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353093', 'tblTempUsageDetail_20' ) start [2025-01-29 01:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353093', 'tblTempUsageDetail_20' ) end [2025-01-29 01:55:22] Production.ERROR: pbx prc_insertCDR start [2025-01-29 01:55:22] Production.ERROR: pbx prc_insertCDR end [2025-01-29 01:55:22] Production.INFO: ==6624== Releasing lock... [2025-01-29 01:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 01:55:22] Production.INFO: 30 MB #Memory Used# [2025-01-29 01:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 22:56:06 [end_date_ymd] => 2025-01-29 01:56:06 [RateCDR] => 1 ) [2025-01-29 01:56:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 22:56:06' and `end` < '2025-01-29 01:56:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 01:56:18] Production.INFO: count ==290 [2025-01-29 01:56:19] Production.ERROR: pbx CDR StartTime 2025-01-28 22:56:06 - End Time 2025-01-29 01:56:06 [2025-01-29 01:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 01:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353098', 'tblTempUsageDetail_20' ) start [2025-01-29 01:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353098', 'tblTempUsageDetail_20' ) end [2025-01-29 01:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353098', 'tblTempVendorCDR_20' ) start [2025-01-29 01:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353098', 'tblTempVendorCDR_20' ) end [2025-01-29 01:56:19] Production.INFO: ProcessCDR(1,14353098,1,1,2) [2025-01-29 01:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14353098,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 01:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14353098,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 01:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14353098,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 01:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14353098,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 01:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353098', 'tblTempUsageDetail_20' ) start [2025-01-29 01:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353098', 'tblTempUsageDetail_20' ) end [2025-01-29 01:56:22] Production.ERROR: pbx prc_insertCDR start [2025-01-29 01:56:22] Production.ERROR: pbx prc_insertCDR end [2025-01-29 01:56:22] Production.INFO: ==6705== Releasing lock... [2025-01-29 01:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 01:56:22] Production.INFO: 30 MB #Memory Used# [2025-01-29 01:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 22:57:05 [end_date_ymd] => 2025-01-29 01:57:05 [RateCDR] => 1 ) [2025-01-29 01:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 22:57:05' and `end` < '2025-01-29 01:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 01:57:19] Production.INFO: count ==290 [2025-01-29 01:57:19] Production.ERROR: pbx CDR StartTime 2025-01-28 22:57:05 - End Time 2025-01-29 01:57:05 [2025-01-29 01:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 01:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353103', 'tblTempUsageDetail_20' ) start [2025-01-29 01:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353103', 'tblTempUsageDetail_20' ) end [2025-01-29 01:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353103', 'tblTempVendorCDR_20' ) start [2025-01-29 01:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353103', 'tblTempVendorCDR_20' ) end [2025-01-29 01:57:19] Production.INFO: ProcessCDR(1,14353103,1,1,2) [2025-01-29 01:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14353103,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 01:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14353103,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 01:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14353103,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 01:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14353103,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 01:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353103', 'tblTempUsageDetail_20' ) start [2025-01-29 01:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353103', 'tblTempUsageDetail_20' ) end [2025-01-29 01:57:23] Production.ERROR: pbx prc_insertCDR start [2025-01-29 01:57:23] Production.ERROR: pbx prc_insertCDR end [2025-01-29 01:57:23] Production.INFO: ==6778== Releasing lock... [2025-01-29 01:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 01:57:23] Production.INFO: 30 MB #Memory Used# [2025-01-29 01:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 22:58:06 [end_date_ymd] => 2025-01-29 01:58:06 [RateCDR] => 1 ) [2025-01-29 01:58:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 22:58:06' and `end` < '2025-01-29 01:58:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 01:58:19] Production.INFO: count ==290 [2025-01-29 01:58:19] Production.ERROR: pbx CDR StartTime 2025-01-28 22:58:06 - End Time 2025-01-29 01:58:06 [2025-01-29 01:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 01:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353108', 'tblTempUsageDetail_20' ) start [2025-01-29 01:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353108', 'tblTempUsageDetail_20' ) end [2025-01-29 01:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353108', 'tblTempVendorCDR_20' ) start [2025-01-29 01:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353108', 'tblTempVendorCDR_20' ) end [2025-01-29 01:58:19] Production.INFO: ProcessCDR(1,14353108,1,1,2) [2025-01-29 01:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14353108,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 01:58:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14353108,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 01:58:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14353108,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 01:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14353108,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 01:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353108', 'tblTempUsageDetail_20' ) start [2025-01-29 01:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353108', 'tblTempUsageDetail_20' ) end [2025-01-29 01:58:23] Production.ERROR: pbx prc_insertCDR start [2025-01-29 01:58:23] Production.ERROR: pbx prc_insertCDR end [2025-01-29 01:58:23] Production.INFO: ==6863== Releasing lock... [2025-01-29 01:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 01:58:23] Production.INFO: 30 MB #Memory Used# [2025-01-29 01:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 22:59:06 [end_date_ymd] => 2025-01-29 01:59:06 [RateCDR] => 1 ) [2025-01-29 01:59:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 22:59:06' and `end` < '2025-01-29 01:59:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 01:59:19] Production.INFO: count ==293 [2025-01-29 01:59:19] Production.ERROR: pbx CDR StartTime 2025-01-28 22:59:06 - End Time 2025-01-29 01:59:06 [2025-01-29 01:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 01:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353113', 'tblTempUsageDetail_20' ) start [2025-01-29 01:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353113', 'tblTempUsageDetail_20' ) end [2025-01-29 01:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353113', 'tblTempVendorCDR_20' ) start [2025-01-29 01:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353113', 'tblTempVendorCDR_20' ) end [2025-01-29 01:59:19] Production.INFO: ProcessCDR(1,14353113,1,1,2) [2025-01-29 01:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14353113,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 01:59:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14353113,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 01:59:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14353113,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 01:59:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14353113,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 01:59:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353113', 'tblTempUsageDetail_20' ) start [2025-01-29 01:59:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353113', 'tblTempUsageDetail_20' ) end [2025-01-29 01:59:26] Production.ERROR: pbx prc_insertCDR start [2025-01-29 01:59:26] Production.ERROR: pbx prc_insertCDR end [2025-01-29 01:59:26] Production.INFO: ==6980== Releasing lock... [2025-01-29 01:59:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 01:59:26] Production.INFO: 30.5 MB #Memory Used# [2025-01-29 02:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 23:00:07 [end_date_ymd] => 2025-01-29 02:00:07 [RateCDR] => 1 ) [2025-01-29 02:00:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 23:00:07' and `end` < '2025-01-29 02:00:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 02:00:19] Production.INFO: count ==301 [2025-01-29 02:00:19] Production.ERROR: pbx CDR StartTime 2025-01-28 23:00:07 - End Time 2025-01-29 02:00:07 [2025-01-29 02:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 02:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353119', 'tblTempUsageDetail_20' ) start [2025-01-29 02:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353119', 'tblTempUsageDetail_20' ) end [2025-01-29 02:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353119', 'tblTempVendorCDR_20' ) start [2025-01-29 02:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353119', 'tblTempVendorCDR_20' ) end [2025-01-29 02:00:19] Production.INFO: ProcessCDR(1,14353119,1,1,2) [2025-01-29 02:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14353119,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 02:00:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14353119,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 02:00:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14353119,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 02:00:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14353119,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 02:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353119', 'tblTempUsageDetail_20' ) start [2025-01-29 02:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353119', 'tblTempUsageDetail_20' ) end [2025-01-29 02:00:25] Production.ERROR: pbx prc_insertCDR start [2025-01-29 02:00:25] Production.ERROR: pbx prc_insertCDR end [2025-01-29 02:00:25] Production.INFO: ==7137== Releasing lock... [2025-01-29 02:00:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 02:00:25] Production.INFO: 30.5 MB #Memory Used# [2025-01-29 02:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 23:01:05 [end_date_ymd] => 2025-01-29 02:01:05 [RateCDR] => 1 ) [2025-01-29 02:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 23:01:05' and `end` < '2025-01-29 02:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 02:01:19] Production.INFO: count ==301 [2025-01-29 02:01:19] Production.ERROR: pbx CDR StartTime 2025-01-28 23:01:05 - End Time 2025-01-29 02:01:05 [2025-01-29 02:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 02:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353124', 'tblTempUsageDetail_20' ) start [2025-01-29 02:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353124', 'tblTempUsageDetail_20' ) end [2025-01-29 02:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353124', 'tblTempVendorCDR_20' ) start [2025-01-29 02:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353124', 'tblTempVendorCDR_20' ) end [2025-01-29 02:01:19] Production.INFO: ProcessCDR(1,14353124,1,1,2) [2025-01-29 02:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14353124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 02:01:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14353124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 02:01:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14353124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 02:01:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14353124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 02:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353124', 'tblTempUsageDetail_20' ) start [2025-01-29 02:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353124', 'tblTempUsageDetail_20' ) end [2025-01-29 02:01:24] Production.ERROR: pbx prc_insertCDR start [2025-01-29 02:01:24] Production.ERROR: pbx prc_insertCDR end [2025-01-29 02:01:24] Production.INFO: ==7314== Releasing lock... [2025-01-29 02:01:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 02:01:24] Production.INFO: 30.5 MB #Memory Used# [2025-01-29 02:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 23:02:06 [end_date_ymd] => 2025-01-29 02:02:06 [RateCDR] => 1 ) [2025-01-29 02:02:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 23:02:06' and `end` < '2025-01-29 02:02:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 02:02:19] Production.INFO: count ==302 [2025-01-29 02:02:19] Production.ERROR: pbx CDR StartTime 2025-01-28 23:02:06 - End Time 2025-01-29 02:02:06 [2025-01-29 02:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 02:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353129', 'tblTempUsageDetail_20' ) start [2025-01-29 02:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353129', 'tblTempUsageDetail_20' ) end [2025-01-29 02:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353129', 'tblTempVendorCDR_20' ) start [2025-01-29 02:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353129', 'tblTempVendorCDR_20' ) end [2025-01-29 02:02:19] Production.INFO: ProcessCDR(1,14353129,1,1,2) [2025-01-29 02:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14353129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 02:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14353129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 02:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14353129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 02:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14353129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 02:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353129', 'tblTempUsageDetail_20' ) start [2025-01-29 02:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353129', 'tblTempUsageDetail_20' ) end [2025-01-29 02:02:24] Production.ERROR: pbx prc_insertCDR start [2025-01-29 02:02:24] Production.ERROR: pbx prc_insertCDR end [2025-01-29 02:02:24] Production.INFO: ==7391== Releasing lock... [2025-01-29 02:02:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 02:02:24] Production.INFO: 30.5 MB #Memory Used# [2025-01-29 02:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 23:03:05 [end_date_ymd] => 2025-01-29 02:03:05 [RateCDR] => 1 ) [2025-01-29 02:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 23:03:05' and `end` < '2025-01-29 02:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 02:03:19] Production.INFO: count ==296 [2025-01-29 02:03:19] Production.ERROR: pbx CDR StartTime 2025-01-28 23:03:05 - End Time 2025-01-29 02:03:05 [2025-01-29 02:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 02:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353134', 'tblTempUsageDetail_20' ) start [2025-01-29 02:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353134', 'tblTempUsageDetail_20' ) end [2025-01-29 02:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353134', 'tblTempVendorCDR_20' ) start [2025-01-29 02:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353134', 'tblTempVendorCDR_20' ) end [2025-01-29 02:03:19] Production.INFO: ProcessCDR(1,14353134,1,1,2) [2025-01-29 02:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14353134,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 02:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14353134,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 02:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14353134,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 02:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14353134,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 02:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353134', 'tblTempUsageDetail_20' ) start [2025-01-29 02:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353134', 'tblTempUsageDetail_20' ) end [2025-01-29 02:03:22] Production.ERROR: pbx prc_insertCDR start [2025-01-29 02:03:22] Production.ERROR: pbx prc_insertCDR end [2025-01-29 02:03:22] Production.INFO: ==7470== Releasing lock... [2025-01-29 02:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 02:03:22] Production.INFO: 30.25 MB #Memory Used# [2025-01-29 02:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 23:04:05 [end_date_ymd] => 2025-01-29 02:04:05 [RateCDR] => 1 ) [2025-01-29 02:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 23:04:05' and `end` < '2025-01-29 02:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 02:04:18] Production.INFO: count ==295 [2025-01-29 02:04:18] Production.ERROR: pbx CDR StartTime 2025-01-28 23:04:05 - End Time 2025-01-29 02:04:05 [2025-01-29 02:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 02:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353139', 'tblTempUsageDetail_20' ) start [2025-01-29 02:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353139', 'tblTempUsageDetail_20' ) end [2025-01-29 02:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353139', 'tblTempVendorCDR_20' ) start [2025-01-29 02:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353139', 'tblTempVendorCDR_20' ) end [2025-01-29 02:04:18] Production.INFO: ProcessCDR(1,14353139,1,1,2) [2025-01-29 02:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14353139,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 02:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14353139,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 02:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14353139,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 02:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14353139,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 02:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353139', 'tblTempUsageDetail_20' ) start [2025-01-29 02:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353139', 'tblTempUsageDetail_20' ) end [2025-01-29 02:04:22] Production.ERROR: pbx prc_insertCDR start [2025-01-29 02:04:22] Production.ERROR: pbx prc_insertCDR end [2025-01-29 02:04:22] Production.INFO: ==7551== Releasing lock... [2025-01-29 02:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 02:04:22] Production.INFO: 30.25 MB #Memory Used# [2025-01-29 02:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 23:05:05 [end_date_ymd] => 2025-01-29 02:05:05 [RateCDR] => 1 ) [2025-01-29 02:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 23:05:05' and `end` < '2025-01-29 02:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 02:05:17] Production.INFO: count ==295 [2025-01-29 02:05:17] Production.ERROR: pbx CDR StartTime 2025-01-28 23:05:05 - End Time 2025-01-29 02:05:05 [2025-01-29 02:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 02:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353144', 'tblTempUsageDetail_20' ) start [2025-01-29 02:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353144', 'tblTempUsageDetail_20' ) end [2025-01-29 02:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353144', 'tblTempVendorCDR_20' ) start [2025-01-29 02:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353144', 'tblTempVendorCDR_20' ) end [2025-01-29 02:05:17] Production.INFO: ProcessCDR(1,14353144,1,1,2) [2025-01-29 02:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14353144,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 02:05:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14353144,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 02:05:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14353144,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 02:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14353144,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 02:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353144', 'tblTempUsageDetail_20' ) start [2025-01-29 02:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353144', 'tblTempUsageDetail_20' ) end [2025-01-29 02:05:21] Production.ERROR: pbx prc_insertCDR start [2025-01-29 02:05:21] Production.ERROR: pbx prc_insertCDR end [2025-01-29 02:05:21] Production.INFO: ==7633== Releasing lock... [2025-01-29 02:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 02:05:21] Production.INFO: 30.25 MB #Memory Used# [2025-01-29 02:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 23:06:05 [end_date_ymd] => 2025-01-29 02:06:05 [RateCDR] => 1 ) [2025-01-29 02:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 23:06:05' and `end` < '2025-01-29 02:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 02:06:18] Production.INFO: count ==295 [2025-01-29 02:06:18] Production.ERROR: pbx CDR StartTime 2025-01-28 23:06:05 - End Time 2025-01-29 02:06:05 [2025-01-29 02:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 02:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353149', 'tblTempUsageDetail_20' ) start [2025-01-29 02:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353149', 'tblTempUsageDetail_20' ) end [2025-01-29 02:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353149', 'tblTempVendorCDR_20' ) start [2025-01-29 02:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353149', 'tblTempVendorCDR_20' ) end [2025-01-29 02:06:18] Production.INFO: ProcessCDR(1,14353149,1,1,2) [2025-01-29 02:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14353149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 02:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14353149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 02:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14353149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 02:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14353149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 02:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353149', 'tblTempUsageDetail_20' ) start [2025-01-29 02:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353149', 'tblTempUsageDetail_20' ) end [2025-01-29 02:06:21] Production.ERROR: pbx prc_insertCDR start [2025-01-29 02:06:21] Production.ERROR: pbx prc_insertCDR end [2025-01-29 02:06:21] Production.INFO: ==7705== Releasing lock... [2025-01-29 02:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 02:06:21] Production.INFO: 30.25 MB #Memory Used# [2025-01-29 02:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 23:07:05 [end_date_ymd] => 2025-01-29 02:07:05 [RateCDR] => 1 ) [2025-01-29 02:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 23:07:05' and `end` < '2025-01-29 02:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 02:07:18] Production.INFO: count ==295 [2025-01-29 02:07:18] Production.ERROR: pbx CDR StartTime 2025-01-28 23:07:05 - End Time 2025-01-29 02:07:05 [2025-01-29 02:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 02:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353154', 'tblTempUsageDetail_20' ) start [2025-01-29 02:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353154', 'tblTempUsageDetail_20' ) end [2025-01-29 02:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353154', 'tblTempVendorCDR_20' ) start [2025-01-29 02:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353154', 'tblTempVendorCDR_20' ) end [2025-01-29 02:07:18] Production.INFO: ProcessCDR(1,14353154,1,1,2) [2025-01-29 02:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14353154,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 02:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14353154,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 02:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14353154,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 02:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14353154,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 02:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353154', 'tblTempUsageDetail_20' ) start [2025-01-29 02:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353154', 'tblTempUsageDetail_20' ) end [2025-01-29 02:07:21] Production.ERROR: pbx prc_insertCDR start [2025-01-29 02:07:21] Production.ERROR: pbx prc_insertCDR end [2025-01-29 02:07:21] Production.INFO: ==7784== Releasing lock... [2025-01-29 02:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 02:07:21] Production.INFO: 30.25 MB #Memory Used# [2025-01-29 02:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 23:08:06 [end_date_ymd] => 2025-01-29 02:08:06 [RateCDR] => 1 ) [2025-01-29 02:08:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 23:08:06' and `end` < '2025-01-29 02:08:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 02:08:18] Production.INFO: count ==295 [2025-01-29 02:08:18] Production.ERROR: pbx CDR StartTime 2025-01-28 23:08:06 - End Time 2025-01-29 02:08:06 [2025-01-29 02:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 02:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353159', 'tblTempUsageDetail_20' ) start [2025-01-29 02:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353159', 'tblTempUsageDetail_20' ) end [2025-01-29 02:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353159', 'tblTempVendorCDR_20' ) start [2025-01-29 02:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353159', 'tblTempVendorCDR_20' ) end [2025-01-29 02:08:18] Production.INFO: ProcessCDR(1,14353159,1,1,2) [2025-01-29 02:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14353159,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 02:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14353159,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 02:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14353159,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 02:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14353159,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 02:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353159', 'tblTempUsageDetail_20' ) start [2025-01-29 02:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353159', 'tblTempUsageDetail_20' ) end [2025-01-29 02:08:22] Production.ERROR: pbx prc_insertCDR start [2025-01-29 02:08:22] Production.ERROR: pbx prc_insertCDR end [2025-01-29 02:08:22] Production.INFO: ==7865== Releasing lock... [2025-01-29 02:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 02:08:22] Production.INFO: 30.25 MB #Memory Used# [2025-01-29 02:09:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 23:09:04 [end_date_ymd] => 2025-01-29 02:09:04 [RateCDR] => 1 ) [2025-01-29 02:09:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 23:09:04' and `end` < '2025-01-29 02:09:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 02:09:18] Production.INFO: count ==295 [2025-01-29 02:09:18] Production.ERROR: pbx CDR StartTime 2025-01-28 23:09:04 - End Time 2025-01-29 02:09:04 [2025-01-29 02:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 02:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353164', 'tblTempUsageDetail_20' ) start [2025-01-29 02:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353164', 'tblTempUsageDetail_20' ) end [2025-01-29 02:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353164', 'tblTempVendorCDR_20' ) start [2025-01-29 02:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353164', 'tblTempVendorCDR_20' ) end [2025-01-29 02:09:18] Production.INFO: ProcessCDR(1,14353164,1,1,2) [2025-01-29 02:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14353164,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 02:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14353164,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 02:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14353164,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 02:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14353164,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 02:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353164', 'tblTempUsageDetail_20' ) start [2025-01-29 02:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353164', 'tblTempUsageDetail_20' ) end [2025-01-29 02:09:21] Production.ERROR: pbx prc_insertCDR start [2025-01-29 02:09:21] Production.ERROR: pbx prc_insertCDR end [2025-01-29 02:09:21] Production.INFO: ==7939== Releasing lock... [2025-01-29 02:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 02:09:21] Production.INFO: 30.25 MB #Memory Used# [2025-01-29 02:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 23:10:06 [end_date_ymd] => 2025-01-29 02:10:06 [RateCDR] => 1 ) [2025-01-29 02:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 23:10:06' and `end` < '2025-01-29 02:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 02:10:18] Production.INFO: count ==300 [2025-01-29 02:10:18] Production.ERROR: pbx CDR StartTime 2025-01-28 23:10:06 - End Time 2025-01-29 02:10:06 [2025-01-29 02:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 02:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353169', 'tblTempUsageDetail_20' ) start [2025-01-29 02:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353169', 'tblTempUsageDetail_20' ) end [2025-01-29 02:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353169', 'tblTempVendorCDR_20' ) start [2025-01-29 02:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353169', 'tblTempVendorCDR_20' ) end [2025-01-29 02:10:18] Production.INFO: ProcessCDR(1,14353169,1,1,2) [2025-01-29 02:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14353169,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 02:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14353169,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 02:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14353169,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 02:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14353169,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 02:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353169', 'tblTempUsageDetail_20' ) start [2025-01-29 02:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353169', 'tblTempUsageDetail_20' ) end [2025-01-29 02:10:23] Production.ERROR: pbx prc_insertCDR start [2025-01-29 02:10:23] Production.ERROR: pbx prc_insertCDR end [2025-01-29 02:10:23] Production.INFO: ==8016== Releasing lock... [2025-01-29 02:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 02:10:23] Production.INFO: 30.5 MB #Memory Used# [2025-01-29 02:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 23:11:05 [end_date_ymd] => 2025-01-29 02:11:05 [RateCDR] => 1 ) [2025-01-29 02:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 23:11:05' and `end` < '2025-01-29 02:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 02:11:18] Production.INFO: count ==300 [2025-01-29 02:11:18] Production.ERROR: pbx CDR StartTime 2025-01-28 23:11:05 - End Time 2025-01-29 02:11:05 [2025-01-29 02:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 02:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353175', 'tblTempUsageDetail_20' ) start [2025-01-29 02:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353175', 'tblTempUsageDetail_20' ) end [2025-01-29 02:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353175', 'tblTempVendorCDR_20' ) start [2025-01-29 02:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353175', 'tblTempVendorCDR_20' ) end [2025-01-29 02:11:18] Production.INFO: ProcessCDR(1,14353175,1,1,2) [2025-01-29 02:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14353175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 02:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14353175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 02:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14353175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 02:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14353175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 02:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353175', 'tblTempUsageDetail_20' ) start [2025-01-29 02:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353175', 'tblTempUsageDetail_20' ) end [2025-01-29 02:11:21] Production.ERROR: pbx prc_insertCDR start [2025-01-29 02:11:21] Production.ERROR: pbx prc_insertCDR end [2025-01-29 02:11:21] Production.INFO: ==8095== Releasing lock... [2025-01-29 02:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 02:11:21] Production.INFO: 30.5 MB #Memory Used# [2025-01-29 02:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 23:12:05 [end_date_ymd] => 2025-01-29 02:12:05 [RateCDR] => 1 ) [2025-01-29 02:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 23:12:05' and `end` < '2025-01-29 02:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 02:12:18] Production.INFO: count ==299 [2025-01-29 02:12:18] Production.ERROR: pbx CDR StartTime 2025-01-28 23:12:05 - End Time 2025-01-29 02:12:05 [2025-01-29 02:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 02:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353180', 'tblTempUsageDetail_20' ) start [2025-01-29 02:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353180', 'tblTempUsageDetail_20' ) end [2025-01-29 02:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353180', 'tblTempVendorCDR_20' ) start [2025-01-29 02:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353180', 'tblTempVendorCDR_20' ) end [2025-01-29 02:12:18] Production.INFO: ProcessCDR(1,14353180,1,1,2) [2025-01-29 02:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14353180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 02:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14353180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 02:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14353180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 02:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14353180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 02:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353180', 'tblTempUsageDetail_20' ) start [2025-01-29 02:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353180', 'tblTempUsageDetail_20' ) end [2025-01-29 02:12:21] Production.ERROR: pbx prc_insertCDR start [2025-01-29 02:12:21] Production.ERROR: pbx prc_insertCDR end [2025-01-29 02:12:21] Production.INFO: ==8170== Releasing lock... [2025-01-29 02:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 02:12:21] Production.INFO: 30.25 MB #Memory Used# [2025-01-29 02:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 23:13:05 [end_date_ymd] => 2025-01-29 02:13:05 [RateCDR] => 1 ) [2025-01-29 02:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 23:13:05' and `end` < '2025-01-29 02:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 02:13:18] Production.INFO: count ==299 [2025-01-29 02:13:18] Production.ERROR: pbx CDR StartTime 2025-01-28 23:13:05 - End Time 2025-01-29 02:13:05 [2025-01-29 02:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 02:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353185', 'tblTempUsageDetail_20' ) start [2025-01-29 02:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353185', 'tblTempUsageDetail_20' ) end [2025-01-29 02:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353185', 'tblTempVendorCDR_20' ) start [2025-01-29 02:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353185', 'tblTempVendorCDR_20' ) end [2025-01-29 02:13:18] Production.INFO: ProcessCDR(1,14353185,1,1,2) [2025-01-29 02:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14353185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 02:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14353185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 02:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14353185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 02:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14353185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 02:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353185', 'tblTempUsageDetail_20' ) start [2025-01-29 02:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353185', 'tblTempUsageDetail_20' ) end [2025-01-29 02:13:21] Production.ERROR: pbx prc_insertCDR start [2025-01-29 02:13:21] Production.ERROR: pbx prc_insertCDR end [2025-01-29 02:13:21] Production.INFO: ==8244== Releasing lock... [2025-01-29 02:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 02:13:21] Production.INFO: 30.25 MB #Memory Used# [2025-01-29 02:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 23:14:06 [end_date_ymd] => 2025-01-29 02:14:06 [RateCDR] => 1 ) [2025-01-29 02:14:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 23:14:06' and `end` < '2025-01-29 02:14:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 02:14:18] Production.INFO: count ==298 [2025-01-29 02:14:18] Production.ERROR: pbx CDR StartTime 2025-01-28 23:14:06 - End Time 2025-01-29 02:14:06 [2025-01-29 02:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 02:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353190', 'tblTempUsageDetail_20' ) start [2025-01-29 02:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353190', 'tblTempUsageDetail_20' ) end [2025-01-29 02:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353190', 'tblTempVendorCDR_20' ) start [2025-01-29 02:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353190', 'tblTempVendorCDR_20' ) end [2025-01-29 02:14:18] Production.INFO: ProcessCDR(1,14353190,1,1,2) [2025-01-29 02:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14353190,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 02:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14353190,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 02:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14353190,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 02:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14353190,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 02:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353190', 'tblTempUsageDetail_20' ) start [2025-01-29 02:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353190', 'tblTempUsageDetail_20' ) end [2025-01-29 02:14:22] Production.ERROR: pbx prc_insertCDR start [2025-01-29 02:14:22] Production.ERROR: pbx prc_insertCDR end [2025-01-29 02:14:22] Production.INFO: ==8325== Releasing lock... [2025-01-29 02:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 02:14:22] Production.INFO: 30 MB #Memory Used# [2025-01-29 02:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 23:15:05 [end_date_ymd] => 2025-01-29 02:15:05 [RateCDR] => 1 ) [2025-01-29 02:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 23:15:05' and `end` < '2025-01-29 02:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 02:15:18] Production.INFO: count ==296 [2025-01-29 02:15:18] Production.ERROR: pbx CDR StartTime 2025-01-28 23:15:05 - End Time 2025-01-29 02:15:05 [2025-01-29 02:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 02:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353195', 'tblTempUsageDetail_20' ) start [2025-01-29 02:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353195', 'tblTempUsageDetail_20' ) end [2025-01-29 02:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353195', 'tblTempVendorCDR_20' ) start [2025-01-29 02:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353195', 'tblTempVendorCDR_20' ) end [2025-01-29 02:15:18] Production.INFO: ProcessCDR(1,14353195,1,1,2) [2025-01-29 02:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14353195,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 02:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14353195,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 02:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14353195,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 02:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14353195,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 02:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353195', 'tblTempUsageDetail_20' ) start [2025-01-29 02:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353195', 'tblTempUsageDetail_20' ) end [2025-01-29 02:15:21] Production.ERROR: pbx prc_insertCDR start [2025-01-29 02:15:21] Production.ERROR: pbx prc_insertCDR end [2025-01-29 02:15:21] Production.INFO: ==8435== Releasing lock... [2025-01-29 02:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 02:15:21] Production.INFO: 30.25 MB #Memory Used# [2025-01-29 02:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 23:16:05 [end_date_ymd] => 2025-01-29 02:16:05 [RateCDR] => 1 ) [2025-01-29 02:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 23:16:05' and `end` < '2025-01-29 02:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 02:16:17] Production.INFO: count ==295 [2025-01-29 02:16:17] Production.ERROR: pbx CDR StartTime 2025-01-28 23:16:05 - End Time 2025-01-29 02:16:05 [2025-01-29 02:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 02:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353200', 'tblTempUsageDetail_20' ) start [2025-01-29 02:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353200', 'tblTempUsageDetail_20' ) end [2025-01-29 02:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353200', 'tblTempVendorCDR_20' ) start [2025-01-29 02:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353200', 'tblTempVendorCDR_20' ) end [2025-01-29 02:16:17] Production.INFO: ProcessCDR(1,14353200,1,1,2) [2025-01-29 02:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14353200,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 02:16:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14353200,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 02:16:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14353200,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 02:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14353200,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 02:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353200', 'tblTempUsageDetail_20' ) start [2025-01-29 02:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353200', 'tblTempUsageDetail_20' ) end [2025-01-29 02:16:21] Production.ERROR: pbx prc_insertCDR start [2025-01-29 02:16:21] Production.ERROR: pbx prc_insertCDR end [2025-01-29 02:16:21] Production.INFO: ==8508== Releasing lock... [2025-01-29 02:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 02:16:21] Production.INFO: 30.25 MB #Memory Used# [2025-01-29 02:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 23:17:05 [end_date_ymd] => 2025-01-29 02:17:05 [RateCDR] => 1 ) [2025-01-29 02:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 23:17:05' and `end` < '2025-01-29 02:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 02:17:18] Production.INFO: count ==300 [2025-01-29 02:17:18] Production.ERROR: pbx CDR StartTime 2025-01-28 23:17:05 - End Time 2025-01-29 02:17:05 [2025-01-29 02:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 02:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353205', 'tblTempUsageDetail_20' ) start [2025-01-29 02:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353205', 'tblTempUsageDetail_20' ) end [2025-01-29 02:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353205', 'tblTempVendorCDR_20' ) start [2025-01-29 02:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353205', 'tblTempVendorCDR_20' ) end [2025-01-29 02:17:18] Production.INFO: ProcessCDR(1,14353205,1,1,2) [2025-01-29 02:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14353205,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 02:17:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14353205,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 02:17:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14353205,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 02:17:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14353205,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 02:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353205', 'tblTempUsageDetail_20' ) start [2025-01-29 02:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353205', 'tblTempUsageDetail_20' ) end [2025-01-29 02:17:23] Production.ERROR: pbx prc_insertCDR start [2025-01-29 02:17:23] Production.ERROR: pbx prc_insertCDR end [2025-01-29 02:17:23] Production.INFO: ==8581== Releasing lock... [2025-01-29 02:17:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 02:17:23] Production.INFO: 30.25 MB #Memory Used# [2025-01-29 02:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 23:18:05 [end_date_ymd] => 2025-01-29 02:18:05 [RateCDR] => 1 ) [2025-01-29 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-01-28 23:18:05' and `end` < '2025-01-29 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-01-29 02:18:20] Production.INFO: count ==305 [2025-01-29 02:18:20] Production.ERROR: pbx CDR StartTime 2025-01-28 23:18:05 - End Time 2025-01-29 02:18:05 [2025-01-29 02:18:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 02:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353210', 'tblTempUsageDetail_20' ) start [2025-01-29 02:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353210', 'tblTempUsageDetail_20' ) end [2025-01-29 02:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353210', 'tblTempVendorCDR_20' ) start [2025-01-29 02:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353210', 'tblTempVendorCDR_20' ) end [2025-01-29 02:18:20] Production.INFO: ProcessCDR(1,14353210,1,1,2) [2025-01-29 02:18:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14353210,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 02:18:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14353210,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 02:18:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14353210,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 02:18:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14353210,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 02:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353210', 'tblTempUsageDetail_20' ) start [2025-01-29 02:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353210', 'tblTempUsageDetail_20' ) end [2025-01-29 02:18:23] Production.ERROR: pbx prc_insertCDR start [2025-01-29 02:18:23] Production.ERROR: pbx prc_insertCDR end [2025-01-29 02:18:23] Production.INFO: ==8653== Releasing lock... [2025-01-29 02:18:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 02:18:23] Production.INFO: 30.5 MB #Memory Used# [2025-01-29 02:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 23:19:06 [end_date_ymd] => 2025-01-29 02:19:06 [RateCDR] => 1 ) [2025-01-29 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-01-28 23:19:06' and `end` < '2025-01-29 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-01-29 02:19:18] Production.INFO: count ==306 [2025-01-29 02:19:18] Production.ERROR: pbx CDR StartTime 2025-01-28 23:19:06 - End Time 2025-01-29 02:19:06 [2025-01-29 02:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 02:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353215', 'tblTempUsageDetail_20' ) start [2025-01-29 02:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353215', 'tblTempUsageDetail_20' ) end [2025-01-29 02:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353215', 'tblTempVendorCDR_20' ) start [2025-01-29 02:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353215', 'tblTempVendorCDR_20' ) end [2025-01-29 02:19:18] Production.INFO: ProcessCDR(1,14353215,1,1,2) [2025-01-29 02:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14353215,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 02:19:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14353215,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 02:19:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14353215,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 02:19:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14353215,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 02:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353215', 'tblTempUsageDetail_20' ) start [2025-01-29 02:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353215', 'tblTempUsageDetail_20' ) end [2025-01-29 02:19:23] Production.ERROR: pbx prc_insertCDR start [2025-01-29 02:19:23] Production.ERROR: pbx prc_insertCDR end [2025-01-29 02:19:23] Production.INFO: ==8727== Releasing lock... [2025-01-29 02:19:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 02:19:23] Production.INFO: 30.5 MB #Memory Used# [2025-01-29 02:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 23:20:06 [end_date_ymd] => 2025-01-29 02:20:06 [RateCDR] => 1 ) [2025-01-29 02:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 23:20:06' and `end` < '2025-01-29 02:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 02:20:18] Production.INFO: count ==316 [2025-01-29 02:20:18] Production.ERROR: pbx CDR StartTime 2025-01-28 23:20:06 - End Time 2025-01-29 02:20:06 [2025-01-29 02:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 02:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353221', 'tblTempUsageDetail_20' ) start [2025-01-29 02:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353221', 'tblTempUsageDetail_20' ) end [2025-01-29 02:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353221', 'tblTempVendorCDR_20' ) start [2025-01-29 02:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353221', 'tblTempVendorCDR_20' ) end [2025-01-29 02:20:18] Production.INFO: ProcessCDR(1,14353221,1,1,2) [2025-01-29 02:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14353221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 02:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14353221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 02:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14353221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 02:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14353221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 02:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353221', 'tblTempUsageDetail_20' ) start [2025-01-29 02:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353221', 'tblTempUsageDetail_20' ) end [2025-01-29 02:20:22] Production.ERROR: pbx prc_insertCDR start [2025-01-29 02:20:22] Production.ERROR: pbx prc_insertCDR end [2025-01-29 02:20:22] Production.INFO: ==8799== Releasing lock... [2025-01-29 02:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 02:20:22] Production.INFO: 30 MB #Memory Used# [2025-01-29 02:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 23:21:05 [end_date_ymd] => 2025-01-29 02:21:05 [RateCDR] => 1 ) [2025-01-29 02:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 23:21:05' and `end` < '2025-01-29 02:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 02:21:18] Production.INFO: count ==326 [2025-01-29 02:21:18] Production.ERROR: pbx CDR StartTime 2025-01-28 23:21:05 - End Time 2025-01-29 02:21:05 [2025-01-29 02:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 02:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353226', 'tblTempUsageDetail_20' ) start [2025-01-29 02:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353226', 'tblTempUsageDetail_20' ) end [2025-01-29 02:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353226', 'tblTempVendorCDR_20' ) start [2025-01-29 02:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353226', 'tblTempVendorCDR_20' ) end [2025-01-29 02:21:18] Production.INFO: ProcessCDR(1,14353226,1,1,2) [2025-01-29 02:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14353226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 02:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14353226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 02:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14353226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 02:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14353226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 02:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353226', 'tblTempUsageDetail_20' ) start [2025-01-29 02:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353226', 'tblTempUsageDetail_20' ) end [2025-01-29 02:21:22] Production.ERROR: pbx prc_insertCDR start [2025-01-29 02:21:22] Production.ERROR: pbx prc_insertCDR end [2025-01-29 02:21:22] Production.INFO: ==8872== Releasing lock... [2025-01-29 02:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 02:21:22] Production.INFO: 30 MB #Memory Used# [2025-01-29 02:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 23:22:05 [end_date_ymd] => 2025-01-29 02:22:05 [RateCDR] => 1 ) [2025-01-29 02:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 23:22:05' and `end` < '2025-01-29 02:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 02:22:17] Production.INFO: count ==323 [2025-01-29 02:22:17] Production.ERROR: pbx CDR StartTime 2025-01-28 23:22:05 - End Time 2025-01-29 02:22:05 [2025-01-29 02:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 02:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353231', 'tblTempUsageDetail_20' ) start [2025-01-29 02:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353231', 'tblTempUsageDetail_20' ) end [2025-01-29 02:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353231', 'tblTempVendorCDR_20' ) start [2025-01-29 02:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353231', 'tblTempVendorCDR_20' ) end [2025-01-29 02:22:17] Production.INFO: ProcessCDR(1,14353231,1,1,2) [2025-01-29 02:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14353231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 02:22:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14353231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 02:22:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14353231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 02:22:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14353231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 02:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353231', 'tblTempUsageDetail_20' ) start [2025-01-29 02:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353231', 'tblTempUsageDetail_20' ) end [2025-01-29 02:22:20] Production.ERROR: pbx prc_insertCDR start [2025-01-29 02:22:20] Production.ERROR: pbx prc_insertCDR end [2025-01-29 02:22:20] Production.INFO: ==8943== Releasing lock... [2025-01-29 02:22:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 02:22:20] Production.INFO: 30.25 MB #Memory Used# [2025-01-29 02:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 23:23:05 [end_date_ymd] => 2025-01-29 02:23:05 [RateCDR] => 1 ) [2025-01-29 02:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 23:23:05' and `end` < '2025-01-29 02:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 02:23:18] Production.INFO: count ==324 [2025-01-29 02:23:18] Production.ERROR: pbx CDR StartTime 2025-01-28 23:23:05 - End Time 2025-01-29 02:23:05 [2025-01-29 02:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 02:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353236', 'tblTempUsageDetail_20' ) start [2025-01-29 02:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353236', 'tblTempUsageDetail_20' ) end [2025-01-29 02:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353236', 'tblTempVendorCDR_20' ) start [2025-01-29 02:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353236', 'tblTempVendorCDR_20' ) end [2025-01-29 02:23:18] Production.INFO: ProcessCDR(1,14353236,1,1,2) [2025-01-29 02:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14353236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 02:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14353236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 02:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14353236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 02:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14353236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 02:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353236', 'tblTempUsageDetail_20' ) start [2025-01-29 02:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353236', 'tblTempUsageDetail_20' ) end [2025-01-29 02:23:21] Production.ERROR: pbx prc_insertCDR start [2025-01-29 02:23:21] Production.ERROR: pbx prc_insertCDR end [2025-01-29 02:23:21] Production.INFO: ==9016== Releasing lock... [2025-01-29 02:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 02:23:21] Production.INFO: 30 MB #Memory Used# [2025-01-29 02:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 23:24:05 [end_date_ymd] => 2025-01-29 02:24:05 [RateCDR] => 1 ) [2025-01-29 02:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 23:24:05' and `end` < '2025-01-29 02:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 02:24:18] Production.INFO: count ==322 [2025-01-29 02:24:18] Production.ERROR: pbx CDR StartTime 2025-01-28 23:24:05 - End Time 2025-01-29 02:24:05 [2025-01-29 02:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 02:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353241', 'tblTempUsageDetail_20' ) start [2025-01-29 02:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353241', 'tblTempUsageDetail_20' ) end [2025-01-29 02:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353241', 'tblTempVendorCDR_20' ) start [2025-01-29 02:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353241', 'tblTempVendorCDR_20' ) end [2025-01-29 02:24:18] Production.INFO: ProcessCDR(1,14353241,1,1,2) [2025-01-29 02:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14353241,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 02:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14353241,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 02:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14353241,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 02:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14353241,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 02:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353241', 'tblTempUsageDetail_20' ) start [2025-01-29 02:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353241', 'tblTempUsageDetail_20' ) end [2025-01-29 02:24:21] Production.ERROR: pbx prc_insertCDR start [2025-01-29 02:24:21] Production.ERROR: pbx prc_insertCDR end [2025-01-29 02:24:21] Production.INFO: ==9095== Releasing lock... [2025-01-29 02:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 02:24:21] Production.INFO: 30.5 MB #Memory Used# [2025-01-29 02:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 23:25:05 [end_date_ymd] => 2025-01-29 02:25:05 [RateCDR] => 1 ) [2025-01-29 02:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 23:25:05' and `end` < '2025-01-29 02:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 02:25:17] Production.INFO: count ==321 [2025-01-29 02:25:17] Production.ERROR: pbx CDR StartTime 2025-01-28 23:25:05 - End Time 2025-01-29 02:25:05 [2025-01-29 02:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 02:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353246', 'tblTempUsageDetail_20' ) start [2025-01-29 02:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353246', 'tblTempUsageDetail_20' ) end [2025-01-29 02:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353246', 'tblTempVendorCDR_20' ) start [2025-01-29 02:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353246', 'tblTempVendorCDR_20' ) end [2025-01-29 02:25:17] Production.INFO: ProcessCDR(1,14353246,1,1,2) [2025-01-29 02:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14353246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 02:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14353246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 02:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14353246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 02:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14353246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 02:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353246', 'tblTempUsageDetail_20' ) start [2025-01-29 02:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353246', 'tblTempUsageDetail_20' ) end [2025-01-29 02:25:21] Production.ERROR: pbx prc_insertCDR start [2025-01-29 02:25:21] Production.ERROR: pbx prc_insertCDR end [2025-01-29 02:25:21] Production.INFO: ==9164== Releasing lock... [2025-01-29 02:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 02:25:21] Production.INFO: 30.25 MB #Memory Used# [2025-01-29 02:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 23:26:05 [end_date_ymd] => 2025-01-29 02:26:05 [RateCDR] => 1 ) [2025-01-29 02:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 23:26:05' and `end` < '2025-01-29 02:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 02:26:18] Production.INFO: count ==321 [2025-01-29 02:26:18] Production.ERROR: pbx CDR StartTime 2025-01-28 23:26:05 - End Time 2025-01-29 02:26:05 [2025-01-29 02:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 02:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353251', 'tblTempUsageDetail_20' ) start [2025-01-29 02:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353251', 'tblTempUsageDetail_20' ) end [2025-01-29 02:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353251', 'tblTempVendorCDR_20' ) start [2025-01-29 02:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353251', 'tblTempVendorCDR_20' ) end [2025-01-29 02:26:18] Production.INFO: ProcessCDR(1,14353251,1,1,2) [2025-01-29 02:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14353251,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 02:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14353251,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 02:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14353251,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 02:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14353251,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 02:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353251', 'tblTempUsageDetail_20' ) start [2025-01-29 02:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353251', 'tblTempUsageDetail_20' ) end [2025-01-29 02:26:21] Production.ERROR: pbx prc_insertCDR start [2025-01-29 02:26:21] Production.ERROR: pbx prc_insertCDR end [2025-01-29 02:26:21] Production.INFO: ==9237== Releasing lock... [2025-01-29 02:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 02:26:21] Production.INFO: 30.25 MB #Memory Used# [2025-01-29 02:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 23:27:05 [end_date_ymd] => 2025-01-29 02:27:05 [RateCDR] => 1 ) [2025-01-29 02:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 23:27:05' and `end` < '2025-01-29 02:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 02:27:19] Production.INFO: count ==321 [2025-01-29 02:27:19] Production.ERROR: pbx CDR StartTime 2025-01-28 23:27:05 - End Time 2025-01-29 02:27:05 [2025-01-29 02:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 02:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353256', 'tblTempUsageDetail_20' ) start [2025-01-29 02:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353256', 'tblTempUsageDetail_20' ) end [2025-01-29 02:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353256', 'tblTempVendorCDR_20' ) start [2025-01-29 02:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353256', 'tblTempVendorCDR_20' ) end [2025-01-29 02:27:19] Production.INFO: ProcessCDR(1,14353256,1,1,2) [2025-01-29 02:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14353256,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 02:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14353256,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 02:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14353256,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 02:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14353256,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 02:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353256', 'tblTempUsageDetail_20' ) start [2025-01-29 02:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353256', 'tblTempUsageDetail_20' ) end [2025-01-29 02:27:22] Production.ERROR: pbx prc_insertCDR start [2025-01-29 02:27:22] Production.ERROR: pbx prc_insertCDR end [2025-01-29 02:27:22] Production.INFO: ==9306== Releasing lock... [2025-01-29 02:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 02:27:22] Production.INFO: 30.25 MB #Memory Used# [2025-01-29 02:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 23:28:05 [end_date_ymd] => 2025-01-29 02:28:05 [RateCDR] => 1 ) [2025-01-29 02:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 23:28:05' and `end` < '2025-01-29 02:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 02:28:18] Production.INFO: count ==319 [2025-01-29 02:28:18] Production.ERROR: pbx CDR StartTime 2025-01-28 23:28:05 - End Time 2025-01-29 02:28:05 [2025-01-29 02:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 02:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353261', 'tblTempUsageDetail_20' ) start [2025-01-29 02:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353261', 'tblTempUsageDetail_20' ) end [2025-01-29 02:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353261', 'tblTempVendorCDR_20' ) start [2025-01-29 02:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353261', 'tblTempVendorCDR_20' ) end [2025-01-29 02:28:18] Production.INFO: ProcessCDR(1,14353261,1,1,2) [2025-01-29 02:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14353261,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 02:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14353261,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 02:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14353261,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 02:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14353261,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 02:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353261', 'tblTempUsageDetail_20' ) start [2025-01-29 02:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353261', 'tblTempUsageDetail_20' ) end [2025-01-29 02:28:22] Production.ERROR: pbx prc_insertCDR start [2025-01-29 02:28:22] Production.ERROR: pbx prc_insertCDR end [2025-01-29 02:28:22] Production.INFO: ==9378== Releasing lock... [2025-01-29 02:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 02:28:22] Production.INFO: 30.25 MB #Memory Used# [2025-01-29 02:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 23:29:05 [end_date_ymd] => 2025-01-29 02:29:05 [RateCDR] => 1 ) [2025-01-29 02:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 23:29:05' and `end` < '2025-01-29 02:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 02:29:19] Production.INFO: count ==314 [2025-01-29 02:29:19] Production.ERROR: pbx CDR StartTime 2025-01-28 23:29:05 - End Time 2025-01-29 02:29:05 [2025-01-29 02:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 02:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353266', 'tblTempUsageDetail_20' ) start [2025-01-29 02:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353266', 'tblTempUsageDetail_20' ) end [2025-01-29 02:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353266', 'tblTempVendorCDR_20' ) start [2025-01-29 02:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353266', 'tblTempVendorCDR_20' ) end [2025-01-29 02:29:19] Production.INFO: ProcessCDR(1,14353266,1,1,2) [2025-01-29 02:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14353266,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 02:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14353266,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 02:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14353266,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 02:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14353266,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 02:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353266', 'tblTempUsageDetail_20' ) start [2025-01-29 02:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353266', 'tblTempUsageDetail_20' ) end [2025-01-29 02:29:22] Production.ERROR: pbx prc_insertCDR start [2025-01-29 02:29:22] Production.ERROR: pbx prc_insertCDR end [2025-01-29 02:29:22] Production.INFO: ==9451== Releasing lock... [2025-01-29 02:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 02:29:22] Production.INFO: 29.75 MB #Memory Used# [2025-01-29 02:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 23:30:06 [end_date_ymd] => 2025-01-29 02:30:06 [RateCDR] => 1 ) [2025-01-29 02:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 23:30:06' and `end` < '2025-01-29 02:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 02:30:18] Production.INFO: count ==322 [2025-01-29 02:30:19] Production.ERROR: pbx CDR StartTime 2025-01-28 23:30:06 - End Time 2025-01-29 02:30:06 [2025-01-29 02:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 02:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353272', 'tblTempUsageDetail_20' ) start [2025-01-29 02:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353272', 'tblTempUsageDetail_20' ) end [2025-01-29 02:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353272', 'tblTempVendorCDR_20' ) start [2025-01-29 02:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353272', 'tblTempVendorCDR_20' ) end [2025-01-29 02:30:19] Production.INFO: ProcessCDR(1,14353272,1,1,2) [2025-01-29 02:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14353272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 02:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14353272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 02:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14353272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 02:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14353272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 02:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353272', 'tblTempUsageDetail_20' ) start [2025-01-29 02:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353272', 'tblTempUsageDetail_20' ) end [2025-01-29 02:30:22] Production.ERROR: pbx prc_insertCDR start [2025-01-29 02:30:22] Production.ERROR: pbx prc_insertCDR end [2025-01-29 02:30:22] Production.INFO: ==9564== Releasing lock... [2025-01-29 02:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 02:30:22] Production.INFO: 30.25 MB #Memory Used# [2025-01-29 02:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 23:31:05 [end_date_ymd] => 2025-01-29 02:31:05 [RateCDR] => 1 ) [2025-01-29 02:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 23:31:05' and `end` < '2025-01-29 02:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 02:31:19] Production.INFO: count ==334 [2025-01-29 02:31:19] Production.ERROR: pbx CDR StartTime 2025-01-28 23:31:05 - End Time 2025-01-29 02:31:05 [2025-01-29 02:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 02:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353277', 'tblTempUsageDetail_20' ) start [2025-01-29 02:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353277', 'tblTempUsageDetail_20' ) end [2025-01-29 02:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353277', 'tblTempVendorCDR_20' ) start [2025-01-29 02:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353277', 'tblTempVendorCDR_20' ) end [2025-01-29 02:31:19] Production.INFO: ProcessCDR(1,14353277,1,1,2) [2025-01-29 02:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14353277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 02:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14353277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 02:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14353277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 02:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14353277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 02:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353277', 'tblTempUsageDetail_20' ) start [2025-01-29 02:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353277', 'tblTempUsageDetail_20' ) end [2025-01-29 02:31:22] Production.ERROR: pbx prc_insertCDR start [2025-01-29 02:31:22] Production.ERROR: pbx prc_insertCDR end [2025-01-29 02:31:22] Production.INFO: ==9636== Releasing lock... [2025-01-29 02:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 02:31:22] Production.INFO: 30 MB #Memory Used# [2025-01-29 02:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 23:32:05 [end_date_ymd] => 2025-01-29 02:32:05 [RateCDR] => 1 ) [2025-01-29 02:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 23:32:05' and `end` < '2025-01-29 02:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 02:32:18] Production.INFO: count ==333 [2025-01-29 02:32:18] Production.ERROR: pbx CDR StartTime 2025-01-28 23:32:05 - End Time 2025-01-29 02:32:05 [2025-01-29 02:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 02:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353281', 'tblTempUsageDetail_20' ) start [2025-01-29 02:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353281', 'tblTempUsageDetail_20' ) end [2025-01-29 02:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353281', 'tblTempVendorCDR_20' ) start [2025-01-29 02:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353281', 'tblTempVendorCDR_20' ) end [2025-01-29 02:32:18] Production.INFO: ProcessCDR(1,14353281,1,1,2) [2025-01-29 02:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14353281,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 02:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14353281,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 02:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14353281,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 02:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14353281,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 02:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353281', 'tblTempUsageDetail_20' ) start [2025-01-29 02:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353281', 'tblTempUsageDetail_20' ) end [2025-01-29 02:32:21] Production.ERROR: pbx prc_insertCDR start [2025-01-29 02:32:21] Production.ERROR: pbx prc_insertCDR end [2025-01-29 02:32:21] Production.INFO: ==9707== Releasing lock... [2025-01-29 02:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 02:32:21] Production.INFO: 30 MB #Memory Used# [2025-01-29 02:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 23:33:05 [end_date_ymd] => 2025-01-29 02:33:05 [RateCDR] => 1 ) [2025-01-29 02:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 23:33:05' and `end` < '2025-01-29 02:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 02:33:19] Production.INFO: count ==333 [2025-01-29 02:33:19] Production.ERROR: pbx CDR StartTime 2025-01-28 23:33:05 - End Time 2025-01-29 02:33:05 [2025-01-29 02:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 02:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353287', 'tblTempUsageDetail_20' ) start [2025-01-29 02:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353287', 'tblTempUsageDetail_20' ) end [2025-01-29 02:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353287', 'tblTempVendorCDR_20' ) start [2025-01-29 02:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353287', 'tblTempVendorCDR_20' ) end [2025-01-29 02:33:19] Production.INFO: ProcessCDR(1,14353287,1,1,2) [2025-01-29 02:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14353287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 02:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14353287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 02:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14353287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 02:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14353287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 02:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353287', 'tblTempUsageDetail_20' ) start [2025-01-29 02:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353287', 'tblTempUsageDetail_20' ) end [2025-01-29 02:33:22] Production.ERROR: pbx prc_insertCDR start [2025-01-29 02:33:22] Production.ERROR: pbx prc_insertCDR end [2025-01-29 02:33:22] Production.INFO: ==9778== Releasing lock... [2025-01-29 02:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 02:33:22] Production.INFO: 30 MB #Memory Used# [2025-01-29 02:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 23:34:05 [end_date_ymd] => 2025-01-29 02:34:05 [RateCDR] => 1 ) [2025-01-29 02:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 23:34:05' and `end` < '2025-01-29 02:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 02:34:19] Production.INFO: count ==318 [2025-01-29 02:34:19] Production.ERROR: pbx CDR StartTime 2025-01-28 23:34:05 - End Time 2025-01-29 02:34:05 [2025-01-29 02:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 02:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353292', 'tblTempUsageDetail_20' ) start [2025-01-29 02:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353292', 'tblTempUsageDetail_20' ) end [2025-01-29 02:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353292', 'tblTempVendorCDR_20' ) start [2025-01-29 02:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353292', 'tblTempVendorCDR_20' ) end [2025-01-29 02:34:19] Production.INFO: ProcessCDR(1,14353292,1,1,2) [2025-01-29 02:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14353292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 02:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14353292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 02:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14353292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 02:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14353292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 02:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353292', 'tblTempUsageDetail_20' ) start [2025-01-29 02:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353292', 'tblTempUsageDetail_20' ) end [2025-01-29 02:34:22] Production.ERROR: pbx prc_insertCDR start [2025-01-29 02:34:22] Production.ERROR: pbx prc_insertCDR end [2025-01-29 02:34:22] Production.INFO: ==9854== Releasing lock... [2025-01-29 02:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 02:34:22] Production.INFO: 29.75 MB #Memory Used# [2025-01-29 02:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 23:35:05 [end_date_ymd] => 2025-01-29 02:35:05 [RateCDR] => 1 ) [2025-01-29 02:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 23:35:05' and `end` < '2025-01-29 02:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 02:35:18] Production.INFO: count ==318 [2025-01-29 02:35:18] Production.ERROR: pbx CDR StartTime 2025-01-28 23:35:05 - End Time 2025-01-29 02:35:05 [2025-01-29 02:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 02:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353297', 'tblTempUsageDetail_20' ) start [2025-01-29 02:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353297', 'tblTempUsageDetail_20' ) end [2025-01-29 02:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353297', 'tblTempVendorCDR_20' ) start [2025-01-29 02:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353297', 'tblTempVendorCDR_20' ) end [2025-01-29 02:35:18] Production.INFO: ProcessCDR(1,14353297,1,1,2) [2025-01-29 02:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14353297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 02:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14353297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 02:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14353297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 02:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14353297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 02:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353297', 'tblTempUsageDetail_20' ) start [2025-01-29 02:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353297', 'tblTempUsageDetail_20' ) end [2025-01-29 02:35:21] Production.ERROR: pbx prc_insertCDR start [2025-01-29 02:35:21] Production.ERROR: pbx prc_insertCDR end [2025-01-29 02:35:21] Production.INFO: ==9925== Releasing lock... [2025-01-29 02:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 02:35:21] Production.INFO: 29.75 MB #Memory Used# [2025-01-29 02:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 23:36:05 [end_date_ymd] => 2025-01-29 02:36:05 [RateCDR] => 1 ) [2025-01-29 02:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 23:36:05' and `end` < '2025-01-29 02:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 02:36:19] Production.INFO: count ==318 [2025-01-29 02:36:19] Production.ERROR: pbx CDR StartTime 2025-01-28 23:36:05 - End Time 2025-01-29 02:36:05 [2025-01-29 02:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 02:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353302', 'tblTempUsageDetail_20' ) start [2025-01-29 02:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353302', 'tblTempUsageDetail_20' ) end [2025-01-29 02:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353302', 'tblTempVendorCDR_20' ) start [2025-01-29 02:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353302', 'tblTempVendorCDR_20' ) end [2025-01-29 02:36:19] Production.INFO: ProcessCDR(1,14353302,1,1,2) [2025-01-29 02:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14353302,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 02:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14353302,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 02:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14353302,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 02:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14353302,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 02:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353302', 'tblTempUsageDetail_20' ) start [2025-01-29 02:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353302', 'tblTempUsageDetail_20' ) end [2025-01-29 02:36:22] Production.ERROR: pbx prc_insertCDR start [2025-01-29 02:36:22] Production.ERROR: pbx prc_insertCDR end [2025-01-29 02:36:22] Production.INFO: ==9995== Releasing lock... [2025-01-29 02:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 02:36:22] Production.INFO: 29.75 MB #Memory Used# [2025-01-29 02:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 23:37:05 [end_date_ymd] => 2025-01-29 02:37:05 [RateCDR] => 1 ) [2025-01-29 02:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 23:37:05' and `end` < '2025-01-29 02:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 02:37:18] Production.INFO: count ==318 [2025-01-29 02:37:18] Production.ERROR: pbx CDR StartTime 2025-01-28 23:37:05 - End Time 2025-01-29 02:37:05 [2025-01-29 02:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 02:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353307', 'tblTempUsageDetail_20' ) start [2025-01-29 02:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353307', 'tblTempUsageDetail_20' ) end [2025-01-29 02:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353307', 'tblTempVendorCDR_20' ) start [2025-01-29 02:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353307', 'tblTempVendorCDR_20' ) end [2025-01-29 02:37:18] Production.INFO: ProcessCDR(1,14353307,1,1,2) [2025-01-29 02:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14353307,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 02:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14353307,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 02:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14353307,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 02:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14353307,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 02:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353307', 'tblTempUsageDetail_20' ) start [2025-01-29 02:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353307', 'tblTempUsageDetail_20' ) end [2025-01-29 02:37:22] Production.ERROR: pbx prc_insertCDR start [2025-01-29 02:37:22] Production.ERROR: pbx prc_insertCDR end [2025-01-29 02:37:22] Production.INFO: ==10066== Releasing lock... [2025-01-29 02:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 02:37:22] Production.INFO: 29.75 MB #Memory Used# [2025-01-29 02:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 23:38:05 [end_date_ymd] => 2025-01-29 02:38:05 [RateCDR] => 1 ) [2025-01-29 02:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 23:38:05' and `end` < '2025-01-29 02:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 02:38:18] Production.INFO: count ==316 [2025-01-29 02:38:18] Production.ERROR: pbx CDR StartTime 2025-01-28 23:38:05 - End Time 2025-01-29 02:38:05 [2025-01-29 02:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 02:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353312', 'tblTempUsageDetail_20' ) start [2025-01-29 02:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353312', 'tblTempUsageDetail_20' ) end [2025-01-29 02:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353312', 'tblTempVendorCDR_20' ) start [2025-01-29 02:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353312', 'tblTempVendorCDR_20' ) end [2025-01-29 02:38:18] Production.INFO: ProcessCDR(1,14353312,1,1,2) [2025-01-29 02:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14353312,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 02:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14353312,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 02:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14353312,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 02:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14353312,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 02:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353312', 'tblTempUsageDetail_20' ) start [2025-01-29 02:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353312', 'tblTempUsageDetail_20' ) end [2025-01-29 02:38:21] Production.ERROR: pbx prc_insertCDR start [2025-01-29 02:38:21] Production.ERROR: pbx prc_insertCDR end [2025-01-29 02:38:21] Production.INFO: ==10143== Releasing lock... [2025-01-29 02:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 02:38:21] Production.INFO: 30 MB #Memory Used# [2025-01-29 02:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 23:39:05 [end_date_ymd] => 2025-01-29 02:39:05 [RateCDR] => 1 ) [2025-01-29 02:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 23:39:05' and `end` < '2025-01-29 02:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 02:39:18] Production.INFO: count ==315 [2025-01-29 02:39:18] Production.ERROR: pbx CDR StartTime 2025-01-28 23:39:05 - End Time 2025-01-29 02:39:05 [2025-01-29 02:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 02:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353317', 'tblTempUsageDetail_20' ) start [2025-01-29 02:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353317', 'tblTempUsageDetail_20' ) end [2025-01-29 02:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353317', 'tblTempVendorCDR_20' ) start [2025-01-29 02:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353317', 'tblTempVendorCDR_20' ) end [2025-01-29 02:39:18] Production.INFO: ProcessCDR(1,14353317,1,1,2) [2025-01-29 02:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14353317,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 02:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14353317,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 02:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14353317,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 02:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14353317,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 02:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353317', 'tblTempUsageDetail_20' ) start [2025-01-29 02:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353317', 'tblTempUsageDetail_20' ) end [2025-01-29 02:39:21] Production.ERROR: pbx prc_insertCDR start [2025-01-29 02:39:21] Production.ERROR: pbx prc_insertCDR end [2025-01-29 02:39:21] Production.INFO: ==10216== Releasing lock... [2025-01-29 02:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 02:39:21] Production.INFO: 29.75 MB #Memory Used# [2025-01-29 02:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 23:40:06 [end_date_ymd] => 2025-01-29 02:40:06 [RateCDR] => 1 ) [2025-01-29 02:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 23:40:06' and `end` < '2025-01-29 02:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 02:40:19] Production.INFO: count ==323 [2025-01-29 02:40:19] Production.ERROR: pbx CDR StartTime 2025-01-28 23:40:06 - End Time 2025-01-29 02:40:06 [2025-01-29 02:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 02:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353323', 'tblTempUsageDetail_20' ) start [2025-01-29 02:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353323', 'tblTempUsageDetail_20' ) end [2025-01-29 02:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353323', 'tblTempVendorCDR_20' ) start [2025-01-29 02:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353323', 'tblTempVendorCDR_20' ) end [2025-01-29 02:40:19] Production.INFO: ProcessCDR(1,14353323,1,1,2) [2025-01-29 02:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14353323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 02:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14353323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 02:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14353323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 02:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14353323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 02:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353323', 'tblTempUsageDetail_20' ) start [2025-01-29 02:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353323', 'tblTempUsageDetail_20' ) end [2025-01-29 02:40:22] Production.ERROR: pbx prc_insertCDR start [2025-01-29 02:40:22] Production.ERROR: pbx prc_insertCDR end [2025-01-29 02:40:22] Production.INFO: ==10289== Releasing lock... [2025-01-29 02:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 02:40:22] Production.INFO: 30 MB #Memory Used# [2025-01-29 02:41:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 23:41:04 [end_date_ymd] => 2025-01-29 02:41:04 [RateCDR] => 1 ) [2025-01-29 02:41:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 23:41:04' and `end` < '2025-01-29 02:41:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 02:41:18] Production.INFO: count ==324 [2025-01-29 02:41:18] Production.ERROR: pbx CDR StartTime 2025-01-28 23:41:04 - End Time 2025-01-29 02:41:04 [2025-01-29 02:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 02:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353328', 'tblTempUsageDetail_20' ) start [2025-01-29 02:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353328', 'tblTempUsageDetail_20' ) end [2025-01-29 02:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353328', 'tblTempVendorCDR_20' ) start [2025-01-29 02:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353328', 'tblTempVendorCDR_20' ) end [2025-01-29 02:41:18] Production.INFO: ProcessCDR(1,14353328,1,1,2) [2025-01-29 02:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14353328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 02:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14353328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 02:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14353328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 02:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14353328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 02:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353328', 'tblTempUsageDetail_20' ) start [2025-01-29 02:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353328', 'tblTempUsageDetail_20' ) end [2025-01-29 02:41:21] Production.ERROR: pbx prc_insertCDR start [2025-01-29 02:41:21] Production.ERROR: pbx prc_insertCDR end [2025-01-29 02:41:21] Production.INFO: ==10364== Releasing lock... [2025-01-29 02:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 02:41:21] Production.INFO: 30 MB #Memory Used# [2025-01-29 02:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 23:42:05 [end_date_ymd] => 2025-01-29 02:42:05 [RateCDR] => 1 ) [2025-01-29 02:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 23:42:05' and `end` < '2025-01-29 02:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 02:42:18] Production.INFO: count ==324 [2025-01-29 02:42:18] Production.ERROR: pbx CDR StartTime 2025-01-28 23:42:05 - End Time 2025-01-29 02:42:05 [2025-01-29 02:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 02:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353333', 'tblTempUsageDetail_20' ) start [2025-01-29 02:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353333', 'tblTempUsageDetail_20' ) end [2025-01-29 02:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353333', 'tblTempVendorCDR_20' ) start [2025-01-29 02:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353333', 'tblTempVendorCDR_20' ) end [2025-01-29 02:42:18] Production.INFO: ProcessCDR(1,14353333,1,1,2) [2025-01-29 02:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14353333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 02:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14353333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 02:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14353333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 02:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14353333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 02:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353333', 'tblTempUsageDetail_20' ) start [2025-01-29 02:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353333', 'tblTempUsageDetail_20' ) end [2025-01-29 02:42:21] Production.ERROR: pbx prc_insertCDR start [2025-01-29 02:42:21] Production.ERROR: pbx prc_insertCDR end [2025-01-29 02:42:21] Production.INFO: ==10434== Releasing lock... [2025-01-29 02:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 02:42:21] Production.INFO: 30 MB #Memory Used# [2025-01-29 02:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 23:43:05 [end_date_ymd] => 2025-01-29 02:43:05 [RateCDR] => 1 ) [2025-01-29 02:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 23:43:05' and `end` < '2025-01-29 02:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 02:43:18] Production.INFO: count ==322 [2025-01-29 02:43:18] Production.ERROR: pbx CDR StartTime 2025-01-28 23:43:05 - End Time 2025-01-29 02:43:05 [2025-01-29 02:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 02:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353338', 'tblTempUsageDetail_20' ) start [2025-01-29 02:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353338', 'tblTempUsageDetail_20' ) end [2025-01-29 02:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353338', 'tblTempVendorCDR_20' ) start [2025-01-29 02:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353338', 'tblTempVendorCDR_20' ) end [2025-01-29 02:43:18] Production.INFO: ProcessCDR(1,14353338,1,1,2) [2025-01-29 02:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14353338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 02:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14353338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 02:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14353338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 02:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14353338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 02:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353338', 'tblTempUsageDetail_20' ) start [2025-01-29 02:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353338', 'tblTempUsageDetail_20' ) end [2025-01-29 02:43:21] Production.ERROR: pbx prc_insertCDR start [2025-01-29 02:43:21] Production.ERROR: pbx prc_insertCDR end [2025-01-29 02:43:21] Production.INFO: ==10505== Releasing lock... [2025-01-29 02:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 02:43:21] Production.INFO: 30 MB #Memory Used# [2025-01-29 02:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 23:44:05 [end_date_ymd] => 2025-01-29 02:44:05 [RateCDR] => 1 ) [2025-01-29 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-01-28 23:44:05' and `end` < '2025-01-29 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-01-29 02:44:18] Production.INFO: count ==318 [2025-01-29 02:44:18] Production.ERROR: pbx CDR StartTime 2025-01-28 23:44:05 - End Time 2025-01-29 02:44:05 [2025-01-29 02:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 02:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353343', 'tblTempUsageDetail_20' ) start [2025-01-29 02:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353343', 'tblTempUsageDetail_20' ) end [2025-01-29 02:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353343', 'tblTempVendorCDR_20' ) start [2025-01-29 02:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353343', 'tblTempVendorCDR_20' ) end [2025-01-29 02:44:18] Production.INFO: ProcessCDR(1,14353343,1,1,2) [2025-01-29 02:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14353343,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 02:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14353343,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 02:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14353343,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 02:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14353343,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 02:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353343', 'tblTempUsageDetail_20' ) start [2025-01-29 02:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353343', 'tblTempUsageDetail_20' ) end [2025-01-29 02:44:22] Production.ERROR: pbx prc_insertCDR start [2025-01-29 02:44:22] Production.ERROR: pbx prc_insertCDR end [2025-01-29 02:44:22] Production.INFO: ==10575== Releasing lock... [2025-01-29 02:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 02:44:22] Production.INFO: 29.75 MB #Memory Used# [2025-01-29 02:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 23:45:05 [end_date_ymd] => 2025-01-29 02:45:05 [RateCDR] => 1 ) [2025-01-29 02:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 23:45:05' and `end` < '2025-01-29 02:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 02:45:18] Production.INFO: count ==317 [2025-01-29 02:45:18] Production.ERROR: pbx CDR StartTime 2025-01-28 23:45:05 - End Time 2025-01-29 02:45:05 [2025-01-29 02:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 02:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353348', 'tblTempUsageDetail_20' ) start [2025-01-29 02:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353348', 'tblTempUsageDetail_20' ) end [2025-01-29 02:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353348', 'tblTempVendorCDR_20' ) start [2025-01-29 02:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353348', 'tblTempVendorCDR_20' ) end [2025-01-29 02:45:18] Production.INFO: ProcessCDR(1,14353348,1,1,2) [2025-01-29 02:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14353348,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 02:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14353348,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 02:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14353348,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 02:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14353348,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 02:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353348', 'tblTempUsageDetail_20' ) start [2025-01-29 02:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353348', 'tblTempUsageDetail_20' ) end [2025-01-29 02:45:21] Production.ERROR: pbx prc_insertCDR start [2025-01-29 02:45:21] Production.ERROR: pbx prc_insertCDR end [2025-01-29 02:45:21] Production.INFO: ==10645== Releasing lock... [2025-01-29 02:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 02:45:21] Production.INFO: 29.75 MB #Memory Used# [2025-01-29 02:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 23:46:05 [end_date_ymd] => 2025-01-29 02:46:05 [RateCDR] => 1 ) [2025-01-29 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-01-28 23:46:05' and `end` < '2025-01-29 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-01-29 02:46:18] Production.INFO: count ==317 [2025-01-29 02:46:18] Production.ERROR: pbx CDR StartTime 2025-01-28 23:46:05 - End Time 2025-01-29 02:46:05 [2025-01-29 02:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 02:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353353', 'tblTempUsageDetail_20' ) start [2025-01-29 02:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353353', 'tblTempUsageDetail_20' ) end [2025-01-29 02:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353353', 'tblTempVendorCDR_20' ) start [2025-01-29 02:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353353', 'tblTempVendorCDR_20' ) end [2025-01-29 02:46:18] Production.INFO: ProcessCDR(1,14353353,1,1,2) [2025-01-29 02:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14353353,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 02:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14353353,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 02:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14353353,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 02:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14353353,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 02:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353353', 'tblTempUsageDetail_20' ) start [2025-01-29 02:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353353', 'tblTempUsageDetail_20' ) end [2025-01-29 02:46:21] Production.ERROR: pbx prc_insertCDR start [2025-01-29 02:46:21] Production.ERROR: pbx prc_insertCDR end [2025-01-29 02:46:21] Production.INFO: ==10755== Releasing lock... [2025-01-29 02:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 02:46:21] Production.INFO: 29.75 MB #Memory Used# [2025-01-29 02:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 23:47:06 [end_date_ymd] => 2025-01-29 02:47:06 [RateCDR] => 1 ) [2025-01-29 02:47:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 23:47:06' and `end` < '2025-01-29 02:47:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 02:47:18] Production.INFO: count ==316 [2025-01-29 02:47:18] Production.ERROR: pbx CDR StartTime 2025-01-28 23:47:06 - End Time 2025-01-29 02:47:06 [2025-01-29 02:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 02:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353358', 'tblTempUsageDetail_20' ) start [2025-01-29 02:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353358', 'tblTempUsageDetail_20' ) end [2025-01-29 02:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353358', 'tblTempVendorCDR_20' ) start [2025-01-29 02:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353358', 'tblTempVendorCDR_20' ) end [2025-01-29 02:47:18] Production.INFO: ProcessCDR(1,14353358,1,1,2) [2025-01-29 02:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14353358,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 02:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14353358,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 02:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14353358,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 02:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14353358,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 02:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353358', 'tblTempUsageDetail_20' ) start [2025-01-29 02:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353358', 'tblTempUsageDetail_20' ) end [2025-01-29 02:47:22] Production.ERROR: pbx prc_insertCDR start [2025-01-29 02:47:22] Production.ERROR: pbx prc_insertCDR end [2025-01-29 02:47:22] Production.INFO: ==10826== Releasing lock... [2025-01-29 02:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 02:47:22] Production.INFO: 29.75 MB #Memory Used# [2025-01-29 02:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 23:48:05 [end_date_ymd] => 2025-01-29 02:48:05 [RateCDR] => 1 ) [2025-01-29 02:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 23:48:05' and `end` < '2025-01-29 02:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 02:48:18] Production.INFO: count ==316 [2025-01-29 02:48:18] Production.ERROR: pbx CDR StartTime 2025-01-28 23:48:05 - End Time 2025-01-29 02:48:05 [2025-01-29 02:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 02:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353363', 'tblTempUsageDetail_20' ) start [2025-01-29 02:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353363', 'tblTempUsageDetail_20' ) end [2025-01-29 02:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353363', 'tblTempVendorCDR_20' ) start [2025-01-29 02:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353363', 'tblTempVendorCDR_20' ) end [2025-01-29 02:48:18] Production.INFO: ProcessCDR(1,14353363,1,1,2) [2025-01-29 02:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14353363,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 02:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14353363,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 02:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14353363,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 02:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14353363,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 02:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353363', 'tblTempUsageDetail_20' ) start [2025-01-29 02:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353363', 'tblTempUsageDetail_20' ) end [2025-01-29 02:48:21] Production.ERROR: pbx prc_insertCDR start [2025-01-29 02:48:21] Production.ERROR: pbx prc_insertCDR end [2025-01-29 02:48:21] Production.INFO: ==10896== Releasing lock... [2025-01-29 02:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 02:48:21] Production.INFO: 29.75 MB #Memory Used# [2025-01-29 02:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 23:49:05 [end_date_ymd] => 2025-01-29 02:49:05 [RateCDR] => 1 ) [2025-01-29 02:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 23:49:05' and `end` < '2025-01-29 02:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 02:49:19] Production.INFO: count ==319 [2025-01-29 02:49:19] Production.ERROR: pbx CDR StartTime 2025-01-28 23:49:05 - End Time 2025-01-29 02:49:05 [2025-01-29 02:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 02:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353368', 'tblTempUsageDetail_20' ) start [2025-01-29 02:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353368', 'tblTempUsageDetail_20' ) end [2025-01-29 02:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353368', 'tblTempVendorCDR_20' ) start [2025-01-29 02:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353368', 'tblTempVendorCDR_20' ) end [2025-01-29 02:49:19] Production.INFO: ProcessCDR(1,14353368,1,1,2) [2025-01-29 02:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14353368,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 02:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14353368,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 02:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14353368,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 02:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14353368,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 02:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353368', 'tblTempUsageDetail_20' ) start [2025-01-29 02:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353368', 'tblTempUsageDetail_20' ) end [2025-01-29 02:49:23] Production.ERROR: pbx prc_insertCDR start [2025-01-29 02:49:23] Production.ERROR: pbx prc_insertCDR end [2025-01-29 02:49:23] Production.INFO: ==10970== Releasing lock... [2025-01-29 02:49:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 02:49:23] Production.INFO: 29.75 MB #Memory Used# [2025-01-29 02:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 23:50:06 [end_date_ymd] => 2025-01-29 02:50:06 [RateCDR] => 1 ) [2025-01-29 02:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 23:50:06' and `end` < '2025-01-29 02:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 02:50:18] Production.INFO: count ==341 [2025-01-29 02:50:18] Production.ERROR: pbx CDR StartTime 2025-01-28 23:50:06 - End Time 2025-01-29 02:50:06 [2025-01-29 02:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 02:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353374', 'tblTempUsageDetail_20' ) start [2025-01-29 02:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353374', 'tblTempUsageDetail_20' ) end [2025-01-29 02:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353374', 'tblTempVendorCDR_20' ) start [2025-01-29 02:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353374', 'tblTempVendorCDR_20' ) end [2025-01-29 02:50:18] Production.INFO: ProcessCDR(1,14353374,1,1,2) [2025-01-29 02:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14353374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 02:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14353374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 02:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14353374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 02:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14353374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 02:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353374', 'tblTempUsageDetail_20' ) start [2025-01-29 02:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353374', 'tblTempUsageDetail_20' ) end [2025-01-29 02:50:22] Production.ERROR: pbx prc_insertCDR start [2025-01-29 02:50:22] Production.ERROR: pbx prc_insertCDR end [2025-01-29 02:50:22] Production.INFO: ==11044== Releasing lock... [2025-01-29 02:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 02:50:22] Production.INFO: 30 MB #Memory Used# [2025-01-29 02:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 23:51:05 [end_date_ymd] => 2025-01-29 02:51:05 [RateCDR] => 1 ) [2025-01-29 02:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 23:51:05' and `end` < '2025-01-29 02:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 02:51:19] Production.INFO: count ==343 [2025-01-29 02:51:19] Production.ERROR: pbx CDR StartTime 2025-01-28 23:51:05 - End Time 2025-01-29 02:51:05 [2025-01-29 02:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 02:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353379', 'tblTempUsageDetail_20' ) start [2025-01-29 02:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353379', 'tblTempUsageDetail_20' ) end [2025-01-29 02:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353379', 'tblTempVendorCDR_20' ) start [2025-01-29 02:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353379', 'tblTempVendorCDR_20' ) end [2025-01-29 02:51:19] Production.INFO: ProcessCDR(1,14353379,1,1,2) [2025-01-29 02:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14353379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 02:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14353379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 02:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14353379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 02:51:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14353379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 02:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353379', 'tblTempUsageDetail_20' ) start [2025-01-29 02:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353379', 'tblTempUsageDetail_20' ) end [2025-01-29 02:51:23] Production.ERROR: pbx prc_insertCDR start [2025-01-29 02:51:23] Production.ERROR: pbx prc_insertCDR end [2025-01-29 02:51:23] Production.INFO: ==11119== Releasing lock... [2025-01-29 02:51:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 02:51:23] Production.INFO: 30.25 MB #Memory Used# [2025-01-29 02:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 23:52:05 [end_date_ymd] => 2025-01-29 02:52:05 [RateCDR] => 1 ) [2025-01-29 02:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 23:52:05' and `end` < '2025-01-29 02:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 02:52:17] Production.INFO: count ==343 [2025-01-29 02:52:17] Production.ERROR: pbx CDR StartTime 2025-01-28 23:52:05 - End Time 2025-01-29 02:52:05 [2025-01-29 02:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 02:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353384', 'tblTempUsageDetail_20' ) start [2025-01-29 02:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353384', 'tblTempUsageDetail_20' ) end [2025-01-29 02:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353384', 'tblTempVendorCDR_20' ) start [2025-01-29 02:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353384', 'tblTempVendorCDR_20' ) end [2025-01-29 02:52:17] Production.INFO: ProcessCDR(1,14353384,1,1,2) [2025-01-29 02:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14353384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 02:52:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14353384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 02:52:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14353384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 02:52:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14353384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 02:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353384', 'tblTempUsageDetail_20' ) start [2025-01-29 02:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353384', 'tblTempUsageDetail_20' ) end [2025-01-29 02:52:20] Production.ERROR: pbx prc_insertCDR start [2025-01-29 02:52:20] Production.ERROR: pbx prc_insertCDR end [2025-01-29 02:52:20] Production.INFO: ==11194== Releasing lock... [2025-01-29 02:52:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 02:52:20] Production.INFO: 30.25 MB #Memory Used# [2025-01-29 02:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 23:53:05 [end_date_ymd] => 2025-01-29 02:53:05 [RateCDR] => 1 ) [2025-01-29 02:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 23:53:05' and `end` < '2025-01-29 02:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 02:53:19] Production.INFO: count ==347 [2025-01-29 02:53:19] Production.ERROR: pbx CDR StartTime 2025-01-28 23:53:05 - End Time 2025-01-29 02:53:05 [2025-01-29 02:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 02:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353389', 'tblTempUsageDetail_20' ) start [2025-01-29 02:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353389', 'tblTempUsageDetail_20' ) end [2025-01-29 02:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353389', 'tblTempVendorCDR_20' ) start [2025-01-29 02:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353389', 'tblTempVendorCDR_20' ) end [2025-01-29 02:53:19] Production.INFO: ProcessCDR(1,14353389,1,1,2) [2025-01-29 02:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14353389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 02:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14353389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 02:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14353389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 02:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14353389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 02:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353389', 'tblTempUsageDetail_20' ) start [2025-01-29 02:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353389', 'tblTempUsageDetail_20' ) end [2025-01-29 02:53:23] Production.ERROR: pbx prc_insertCDR start [2025-01-29 02:53:23] Production.ERROR: pbx prc_insertCDR end [2025-01-29 02:53:23] Production.INFO: ==11276== Releasing lock... [2025-01-29 02:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 02:53:23] Production.INFO: 30 MB #Memory Used# [2025-01-29 02:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 23:54:05 [end_date_ymd] => 2025-01-29 02:54:05 [RateCDR] => 1 ) [2025-01-29 02:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 23:54:05' and `end` < '2025-01-29 02:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 02:54:18] Production.INFO: count ==346 [2025-01-29 02:54:18] Production.ERROR: pbx CDR StartTime 2025-01-28 23:54:05 - End Time 2025-01-29 02:54:05 [2025-01-29 02:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 02:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353394', 'tblTempUsageDetail_20' ) start [2025-01-29 02:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353394', 'tblTempUsageDetail_20' ) end [2025-01-29 02:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353394', 'tblTempVendorCDR_20' ) start [2025-01-29 02:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353394', 'tblTempVendorCDR_20' ) end [2025-01-29 02:54:18] Production.INFO: ProcessCDR(1,14353394,1,1,2) [2025-01-29 02:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14353394,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 02:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14353394,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 02:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14353394,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 02:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14353394,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 02:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353394', 'tblTempUsageDetail_20' ) start [2025-01-29 02:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353394', 'tblTempUsageDetail_20' ) end [2025-01-29 02:54:21] Production.ERROR: pbx prc_insertCDR start [2025-01-29 02:54:21] Production.ERROR: pbx prc_insertCDR end [2025-01-29 02:54:21] Production.INFO: ==11355== Releasing lock... [2025-01-29 02:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 02:54:21] Production.INFO: 30 MB #Memory Used# [2025-01-29 02:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 23:55:05 [end_date_ymd] => 2025-01-29 02:55:05 [RateCDR] => 1 ) [2025-01-29 02:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 23:55:05' and `end` < '2025-01-29 02:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 02:55:18] Production.INFO: count ==344 [2025-01-29 02:55:18] Production.ERROR: pbx CDR StartTime 2025-01-28 23:55:05 - End Time 2025-01-29 02:55:05 [2025-01-29 02:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 02:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353399', 'tblTempUsageDetail_20' ) start [2025-01-29 02:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353399', 'tblTempUsageDetail_20' ) end [2025-01-29 02:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353399', 'tblTempVendorCDR_20' ) start [2025-01-29 02:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353399', 'tblTempVendorCDR_20' ) end [2025-01-29 02:55:18] Production.INFO: ProcessCDR(1,14353399,1,1,2) [2025-01-29 02:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14353399,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 02:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14353399,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 02:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14353399,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 02:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14353399,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 02:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353399', 'tblTempUsageDetail_20' ) start [2025-01-29 02:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353399', 'tblTempUsageDetail_20' ) end [2025-01-29 02:55:21] Production.ERROR: pbx prc_insertCDR start [2025-01-29 02:55:21] Production.ERROR: pbx prc_insertCDR end [2025-01-29 02:55:21] Production.INFO: ==11428== Releasing lock... [2025-01-29 02:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 02:55:21] Production.INFO: 30 MB #Memory Used# [2025-01-29 02:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 23:56:06 [end_date_ymd] => 2025-01-29 02:56:06 [RateCDR] => 1 ) [2025-01-29 02:56:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 23:56:06' and `end` < '2025-01-29 02:56:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 02:56:19] Production.INFO: count ==343 [2025-01-29 02:56:19] Production.ERROR: pbx CDR StartTime 2025-01-28 23:56:06 - End Time 2025-01-29 02:56:06 [2025-01-29 02:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 02:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353404', 'tblTempUsageDetail_20' ) start [2025-01-29 02:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353404', 'tblTempUsageDetail_20' ) end [2025-01-29 02:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353404', 'tblTempVendorCDR_20' ) start [2025-01-29 02:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353404', 'tblTempVendorCDR_20' ) end [2025-01-29 02:56:19] Production.INFO: ProcessCDR(1,14353404,1,1,2) [2025-01-29 02:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14353404,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 02:56:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14353404,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 02:56:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14353404,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 02:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14353404,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 02:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353404', 'tblTempUsageDetail_20' ) start [2025-01-29 02:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353404', 'tblTempUsageDetail_20' ) end [2025-01-29 02:56:23] Production.ERROR: pbx prc_insertCDR start [2025-01-29 02:56:23] Production.ERROR: pbx prc_insertCDR end [2025-01-29 02:56:23] Production.INFO: ==11501== Releasing lock... [2025-01-29 02:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 02:56:23] Production.INFO: 30.25 MB #Memory Used# [2025-01-29 02:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 23:57:05 [end_date_ymd] => 2025-01-29 02:57:05 [RateCDR] => 1 ) [2025-01-29 02:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 23:57:05' and `end` < '2025-01-29 02:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 02:57:19] Production.INFO: count ==341 [2025-01-29 02:57:19] Production.ERROR: pbx CDR StartTime 2025-01-28 23:57:05 - End Time 2025-01-29 02:57:05 [2025-01-29 02:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 02:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353409', 'tblTempUsageDetail_20' ) start [2025-01-29 02:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353409', 'tblTempUsageDetail_20' ) end [2025-01-29 02:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353409', 'tblTempVendorCDR_20' ) start [2025-01-29 02:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353409', 'tblTempVendorCDR_20' ) end [2025-01-29 02:57:19] Production.INFO: ProcessCDR(1,14353409,1,1,2) [2025-01-29 02:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14353409,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 02:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14353409,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 02:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14353409,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 02:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14353409,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 02:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353409', 'tblTempUsageDetail_20' ) start [2025-01-29 02:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353409', 'tblTempUsageDetail_20' ) end [2025-01-29 02:57:22] Production.ERROR: pbx prc_insertCDR start [2025-01-29 02:57:22] Production.ERROR: pbx prc_insertCDR end [2025-01-29 02:57:22] Production.INFO: ==11578== Releasing lock... [2025-01-29 02:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 02:57:22] Production.INFO: 30 MB #Memory Used# [2025-01-29 02:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 23:58:05 [end_date_ymd] => 2025-01-29 02:58:05 [RateCDR] => 1 ) [2025-01-29 02:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 23:58:05' and `end` < '2025-01-29 02:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 02:58:18] Production.INFO: count ==341 [2025-01-29 02:58:18] Production.ERROR: pbx CDR StartTime 2025-01-28 23:58:05 - End Time 2025-01-29 02:58:05 [2025-01-29 02:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 02:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353414', 'tblTempUsageDetail_20' ) start [2025-01-29 02:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353414', 'tblTempUsageDetail_20' ) end [2025-01-29 02:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353414', 'tblTempVendorCDR_20' ) start [2025-01-29 02:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353414', 'tblTempVendorCDR_20' ) end [2025-01-29 02:58:18] Production.INFO: ProcessCDR(1,14353414,1,1,2) [2025-01-29 02:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14353414,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 02:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14353414,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 02:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14353414,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 02:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14353414,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 02:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353414', 'tblTempUsageDetail_20' ) start [2025-01-29 02:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353414', 'tblTempUsageDetail_20' ) end [2025-01-29 02:58:21] Production.ERROR: pbx prc_insertCDR start [2025-01-29 02:58:21] Production.ERROR: pbx prc_insertCDR end [2025-01-29 02:58:21] Production.INFO: ==11655== Releasing lock... [2025-01-29 02:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 02:58:21] Production.INFO: 30 MB #Memory Used# [2025-01-29 02:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-28 23:59:05 [end_date_ymd] => 2025-01-29 02:59:05 [RateCDR] => 1 ) [2025-01-29 02:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-28 23:59:05' and `end` < '2025-01-29 02:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 02:59:18] Production.INFO: count ==338 [2025-01-29 02:59:18] Production.ERROR: pbx CDR StartTime 2025-01-28 23:59:05 - End Time 2025-01-29 02:59:05 [2025-01-29 02:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 02:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353419', 'tblTempUsageDetail_20' ) start [2025-01-29 02:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353419', 'tblTempUsageDetail_20' ) end [2025-01-29 02:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353419', 'tblTempVendorCDR_20' ) start [2025-01-29 02:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353419', 'tblTempVendorCDR_20' ) end [2025-01-29 02:59:18] Production.INFO: ProcessCDR(1,14353419,1,1,2) [2025-01-29 02:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14353419,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 02:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14353419,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 02:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14353419,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 02:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14353419,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 02:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353419', 'tblTempUsageDetail_20' ) start [2025-01-29 02:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353419', 'tblTempUsageDetail_20' ) end [2025-01-29 02:59:21] Production.ERROR: pbx prc_insertCDR start [2025-01-29 02:59:21] Production.ERROR: pbx prc_insertCDR end [2025-01-29 02:59:21] Production.INFO: ==11727== Releasing lock... [2025-01-29 02:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 02:59:21] Production.INFO: 30 MB #Memory Used# [2025-01-29 03:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 00:00:06 [end_date_ymd] => 2025-01-29 03:00:06 [RateCDR] => 1 ) [2025-01-29 03:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 00:00:06' and `end` < '2025-01-29 03:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 03:00:19] Production.INFO: count ==342 [2025-01-29 03:00:19] Production.ERROR: pbx CDR StartTime 2025-01-29 00:00:06 - End Time 2025-01-29 03:00:06 [2025-01-29 03:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 03:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353425', 'tblTempUsageDetail_20' ) start [2025-01-29 03:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353425', 'tblTempUsageDetail_20' ) end [2025-01-29 03:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353425', 'tblTempVendorCDR_20' ) start [2025-01-29 03:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353425', 'tblTempVendorCDR_20' ) end [2025-01-29 03:00:19] Production.INFO: ProcessCDR(1,14353425,1,1,2) [2025-01-29 03:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14353425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 03:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14353425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 03:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14353425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 03:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14353425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 03:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353425', 'tblTempUsageDetail_20' ) start [2025-01-29 03:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353425', 'tblTempUsageDetail_20' ) end [2025-01-29 03:00:22] Production.ERROR: pbx prc_insertCDR start [2025-01-29 03:00:22] Production.ERROR: pbx prc_insertCDR end [2025-01-29 03:00:22] Production.INFO: ==11807== Releasing lock... [2025-01-29 03:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 03:00:22] Production.INFO: 30 MB #Memory Used# [2025-01-29 03:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 00:01:06 [end_date_ymd] => 2025-01-29 03:01:06 [RateCDR] => 1 ) [2025-01-29 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-01-29 00:01:06' and `end` < '2025-01-29 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-01-29 03:01:18] Production.INFO: count ==342 [2025-01-29 03:01:18] Production.ERROR: pbx CDR StartTime 2025-01-29 00:01:06 - End Time 2025-01-29 03:01:06 [2025-01-29 03:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 03:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353430', 'tblTempUsageDetail_20' ) start [2025-01-29 03:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353430', 'tblTempUsageDetail_20' ) end [2025-01-29 03:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353430', 'tblTempVendorCDR_20' ) start [2025-01-29 03:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353430', 'tblTempVendorCDR_20' ) end [2025-01-29 03:01:18] Production.INFO: ProcessCDR(1,14353430,1,1,2) [2025-01-29 03:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14353430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 03:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14353430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 03:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14353430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 03:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14353430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 03:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353430', 'tblTempUsageDetail_20' ) start [2025-01-29 03:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353430', 'tblTempUsageDetail_20' ) end [2025-01-29 03:01:21] Production.ERROR: pbx prc_insertCDR start [2025-01-29 03:01:21] Production.ERROR: pbx prc_insertCDR end [2025-01-29 03:01:21] Production.INFO: ==11944== Releasing lock... [2025-01-29 03:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 03:01:21] Production.INFO: 30 MB #Memory Used# [2025-01-29 03:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 00:02:06 [end_date_ymd] => 2025-01-29 03:02:06 [RateCDR] => 1 ) [2025-01-29 03:02:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 00:02:06' and `end` < '2025-01-29 03:02:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 03:02:19] Production.INFO: count ==341 [2025-01-29 03:02:19] Production.ERROR: pbx CDR StartTime 2025-01-29 00:02:06 - End Time 2025-01-29 03:02:06 [2025-01-29 03:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 03:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353435', 'tblTempUsageDetail_20' ) start [2025-01-29 03:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353435', 'tblTempUsageDetail_20' ) end [2025-01-29 03:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353435', 'tblTempVendorCDR_20' ) start [2025-01-29 03:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353435', 'tblTempVendorCDR_20' ) end [2025-01-29 03:02:19] Production.INFO: ProcessCDR(1,14353435,1,1,2) [2025-01-29 03:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14353435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 03:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14353435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 03:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14353435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 03:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14353435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 03:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353435', 'tblTempUsageDetail_20' ) start [2025-01-29 03:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353435', 'tblTempUsageDetail_20' ) end [2025-01-29 03:02:22] Production.ERROR: pbx prc_insertCDR start [2025-01-29 03:02:22] Production.ERROR: pbx prc_insertCDR end [2025-01-29 03:02:22] Production.INFO: ==12093== Releasing lock... [2025-01-29 03:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 03:02:22] Production.INFO: 30 MB #Memory Used# [2025-01-29 03:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 00:03:05 [end_date_ymd] => 2025-01-29 03:03:05 [RateCDR] => 1 ) [2025-01-29 03:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 00:03:05' and `end` < '2025-01-29 03:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 03:03:18] Production.INFO: count ==339 [2025-01-29 03:03:18] Production.ERROR: pbx CDR StartTime 2025-01-29 00:03:05 - End Time 2025-01-29 03:03:05 [2025-01-29 03:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 03:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353440', 'tblTempUsageDetail_20' ) start [2025-01-29 03:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353440', 'tblTempUsageDetail_20' ) end [2025-01-29 03:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353440', 'tblTempVendorCDR_20' ) start [2025-01-29 03:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353440', 'tblTempVendorCDR_20' ) end [2025-01-29 03:03:18] Production.INFO: ProcessCDR(1,14353440,1,1,2) [2025-01-29 03:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14353440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 03:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14353440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 03:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14353440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 03:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14353440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 03:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353440', 'tblTempUsageDetail_20' ) start [2025-01-29 03:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353440', 'tblTempUsageDetail_20' ) end [2025-01-29 03:03:21] Production.ERROR: pbx prc_insertCDR start [2025-01-29 03:03:21] Production.ERROR: pbx prc_insertCDR end [2025-01-29 03:03:21] Production.INFO: ==12165== Releasing lock... [2025-01-29 03:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 03:03:21] Production.INFO: 30 MB #Memory Used# [2025-01-29 03:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 00:04:05 [end_date_ymd] => 2025-01-29 03:04:05 [RateCDR] => 1 ) [2025-01-29 03:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 00:04:05' and `end` < '2025-01-29 03:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 03:04:18] Production.INFO: count ==338 [2025-01-29 03:04:18] Production.ERROR: pbx CDR StartTime 2025-01-29 00:04:05 - End Time 2025-01-29 03:04:05 [2025-01-29 03:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 03:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353445', 'tblTempUsageDetail_20' ) start [2025-01-29 03:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353445', 'tblTempUsageDetail_20' ) end [2025-01-29 03:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353445', 'tblTempVendorCDR_20' ) start [2025-01-29 03:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353445', 'tblTempVendorCDR_20' ) end [2025-01-29 03:04:18] Production.INFO: ProcessCDR(1,14353445,1,1,2) [2025-01-29 03:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14353445,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 03:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14353445,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 03:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14353445,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 03:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14353445,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 03:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353445', 'tblTempUsageDetail_20' ) start [2025-01-29 03:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353445', 'tblTempUsageDetail_20' ) end [2025-01-29 03:04:21] Production.ERROR: pbx prc_insertCDR start [2025-01-29 03:04:21] Production.ERROR: pbx prc_insertCDR end [2025-01-29 03:04:21] Production.INFO: ==12243== Releasing lock... [2025-01-29 03:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 03:04:21] Production.INFO: 30 MB #Memory Used# [2025-01-29 03:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 00:05:05 [end_date_ymd] => 2025-01-29 03:05:05 [RateCDR] => 1 ) [2025-01-29 03:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 00:05:05' and `end` < '2025-01-29 03:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 03:05:17] Production.INFO: count ==338 [2025-01-29 03:05:17] Production.ERROR: pbx CDR StartTime 2025-01-29 00:05:05 - End Time 2025-01-29 03:05:05 [2025-01-29 03:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 03:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353450', 'tblTempUsageDetail_20' ) start [2025-01-29 03:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353450', 'tblTempUsageDetail_20' ) end [2025-01-29 03:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353450', 'tblTempVendorCDR_20' ) start [2025-01-29 03:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353450', 'tblTempVendorCDR_20' ) end [2025-01-29 03:05:17] Production.INFO: ProcessCDR(1,14353450,1,1,2) [2025-01-29 03:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14353450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 03:05:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14353450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 03:05:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14353450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 03:05:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14353450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 03:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353450', 'tblTempUsageDetail_20' ) start [2025-01-29 03:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353450', 'tblTempUsageDetail_20' ) end [2025-01-29 03:05:20] Production.ERROR: pbx prc_insertCDR start [2025-01-29 03:05:20] Production.ERROR: pbx prc_insertCDR end [2025-01-29 03:05:20] Production.INFO: ==12320== Releasing lock... [2025-01-29 03:05:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 03:05:20] Production.INFO: 30 MB #Memory Used# [2025-01-29 03:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 00:06:05 [end_date_ymd] => 2025-01-29 03:06:05 [RateCDR] => 1 ) [2025-01-29 03:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 00:06:05' and `end` < '2025-01-29 03:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 03:06:18] Production.INFO: count ==338 [2025-01-29 03:06:18] Production.ERROR: pbx CDR StartTime 2025-01-29 00:06:05 - End Time 2025-01-29 03:06:05 [2025-01-29 03:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 03:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353454', 'tblTempUsageDetail_20' ) start [2025-01-29 03:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353454', 'tblTempUsageDetail_20' ) end [2025-01-29 03:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353454', 'tblTempVendorCDR_20' ) start [2025-01-29 03:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353454', 'tblTempVendorCDR_20' ) end [2025-01-29 03:06:18] Production.INFO: ProcessCDR(1,14353454,1,1,2) [2025-01-29 03:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14353454,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 03:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14353454,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 03:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14353454,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 03:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14353454,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 03:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353454', 'tblTempUsageDetail_20' ) start [2025-01-29 03:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353454', 'tblTempUsageDetail_20' ) end [2025-01-29 03:06:22] Production.ERROR: pbx prc_insertCDR start [2025-01-29 03:06:22] Production.ERROR: pbx prc_insertCDR end [2025-01-29 03:06:22] Production.INFO: ==12477== Releasing lock... [2025-01-29 03:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 03:06:22] Production.INFO: 30 MB #Memory Used# [2025-01-29 03:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 00:07:05 [end_date_ymd] => 2025-01-29 03:07:05 [RateCDR] => 1 ) [2025-01-29 03:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 00:07:05' and `end` < '2025-01-29 03:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 03:07:17] Production.INFO: count ==338 [2025-01-29 03:07:17] Production.ERROR: pbx CDR StartTime 2025-01-29 00:07:05 - End Time 2025-01-29 03:07:05 [2025-01-29 03:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 03:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353460', 'tblTempUsageDetail_20' ) start [2025-01-29 03:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353460', 'tblTempUsageDetail_20' ) end [2025-01-29 03:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353460', 'tblTempVendorCDR_20' ) start [2025-01-29 03:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353460', 'tblTempVendorCDR_20' ) end [2025-01-29 03:07:17] Production.INFO: ProcessCDR(1,14353460,1,1,2) [2025-01-29 03:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14353460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 03:07:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14353460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 03:07:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14353460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 03:07:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14353460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 03:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353460', 'tblTempUsageDetail_20' ) start [2025-01-29 03:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353460', 'tblTempUsageDetail_20' ) end [2025-01-29 03:07:20] Production.ERROR: pbx prc_insertCDR start [2025-01-29 03:07:20] Production.ERROR: pbx prc_insertCDR end [2025-01-29 03:07:20] Production.INFO: ==12557== Releasing lock... [2025-01-29 03:07:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 03:07:20] Production.INFO: 30 MB #Memory Used# [2025-01-29 03:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 00:08:05 [end_date_ymd] => 2025-01-29 03:08:05 [RateCDR] => 1 ) [2025-01-29 03:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 00:08:05' and `end` < '2025-01-29 03:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 03:08:17] Production.INFO: count ==337 [2025-01-29 03:08:17] Production.ERROR: pbx CDR StartTime 2025-01-29 00:08:05 - End Time 2025-01-29 03:08:05 [2025-01-29 03:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 03:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353465', 'tblTempUsageDetail_20' ) start [2025-01-29 03:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353465', 'tblTempUsageDetail_20' ) end [2025-01-29 03:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353465', 'tblTempVendorCDR_20' ) start [2025-01-29 03:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353465', 'tblTempVendorCDR_20' ) end [2025-01-29 03:08:17] Production.INFO: ProcessCDR(1,14353465,1,1,2) [2025-01-29 03:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14353465,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 03:08:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14353465,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 03:08:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14353465,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 03:08:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14353465,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 03:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353465', 'tblTempUsageDetail_20' ) start [2025-01-29 03:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353465', 'tblTempUsageDetail_20' ) end [2025-01-29 03:08:20] Production.ERROR: pbx prc_insertCDR start [2025-01-29 03:08:20] Production.ERROR: pbx prc_insertCDR end [2025-01-29 03:08:20] Production.INFO: ==12641== Releasing lock... [2025-01-29 03:08:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 03:08:20] Production.INFO: 30 MB #Memory Used# [2025-01-29 03:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 00:09:05 [end_date_ymd] => 2025-01-29 03:09:05 [RateCDR] => 1 ) [2025-01-29 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-01-29 00:09:05' and `end` < '2025-01-29 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-01-29 03:09:18] Production.INFO: count ==335 [2025-01-29 03:09:18] Production.ERROR: pbx CDR StartTime 2025-01-29 00:09:05 - End Time 2025-01-29 03:09:05 [2025-01-29 03:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 03:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353470', 'tblTempUsageDetail_20' ) start [2025-01-29 03:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353470', 'tblTempUsageDetail_20' ) end [2025-01-29 03:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353470', 'tblTempVendorCDR_20' ) start [2025-01-29 03:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353470', 'tblTempVendorCDR_20' ) end [2025-01-29 03:09:19] Production.INFO: ProcessCDR(1,14353470,1,1,2) [2025-01-29 03:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14353470,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 03:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14353470,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 03:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14353470,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 03:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14353470,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 03:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353470', 'tblTempUsageDetail_20' ) start [2025-01-29 03:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353470', 'tblTempUsageDetail_20' ) end [2025-01-29 03:09:22] Production.ERROR: pbx prc_insertCDR start [2025-01-29 03:09:22] Production.ERROR: pbx prc_insertCDR end [2025-01-29 03:09:22] Production.INFO: ==12805== Releasing lock... [2025-01-29 03:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 03:09:22] Production.INFO: 30 MB #Memory Used# [2025-01-29 03:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 00:10:06 [end_date_ymd] => 2025-01-29 03:10:06 [RateCDR] => 1 ) [2025-01-29 03:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 00:10:06' and `end` < '2025-01-29 03:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 03:10:18] Production.INFO: count ==331 [2025-01-29 03:10:18] Production.ERROR: pbx CDR StartTime 2025-01-29 00:10:06 - End Time 2025-01-29 03:10:06 [2025-01-29 03:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 03:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353475', 'tblTempUsageDetail_20' ) start [2025-01-29 03:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353475', 'tblTempUsageDetail_20' ) end [2025-01-29 03:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353475', 'tblTempVendorCDR_20' ) start [2025-01-29 03:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353475', 'tblTempVendorCDR_20' ) end [2025-01-29 03:10:18] Production.INFO: ProcessCDR(1,14353475,1,1,2) [2025-01-29 03:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14353475,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 03:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14353475,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 03:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14353475,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 03:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14353475,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 03:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353475', 'tblTempUsageDetail_20' ) start [2025-01-29 03:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353475', 'tblTempUsageDetail_20' ) end [2025-01-29 03:10:22] Production.ERROR: pbx prc_insertCDR start [2025-01-29 03:10:22] Production.ERROR: pbx prc_insertCDR end [2025-01-29 03:10:22] Production.INFO: ==12884== Releasing lock... [2025-01-29 03:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 03:10:22] Production.INFO: 30 MB #Memory Used# [2025-01-29 03:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 00:11:06 [end_date_ymd] => 2025-01-29 03:11:06 [RateCDR] => 1 ) [2025-01-29 03:11:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 00:11:06' and `end` < '2025-01-29 03:11:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 03:11:18] Production.INFO: count ==321 [2025-01-29 03:11:18] Production.ERROR: pbx CDR StartTime 2025-01-29 00:11:06 - End Time 2025-01-29 03:11:06 [2025-01-29 03:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 03:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353481', 'tblTempUsageDetail_20' ) start [2025-01-29 03:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353481', 'tblTempUsageDetail_20' ) end [2025-01-29 03:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353481', 'tblTempVendorCDR_20' ) start [2025-01-29 03:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353481', 'tblTempVendorCDR_20' ) end [2025-01-29 03:11:18] Production.INFO: ProcessCDR(1,14353481,1,1,2) [2025-01-29 03:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14353481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 03:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14353481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 03:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14353481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 03:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14353481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 03:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353481', 'tblTempUsageDetail_20' ) start [2025-01-29 03:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353481', 'tblTempUsageDetail_20' ) end [2025-01-29 03:11:21] Production.ERROR: pbx prc_insertCDR start [2025-01-29 03:11:21] Production.ERROR: pbx prc_insertCDR end [2025-01-29 03:11:21] Production.INFO: ==12968== Releasing lock... [2025-01-29 03:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 03:11:21] Production.INFO: 30 MB #Memory Used# [2025-01-29 03:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 00:12:05 [end_date_ymd] => 2025-01-29 03:12:05 [RateCDR] => 1 ) [2025-01-29 03:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 00:12:05' and `end` < '2025-01-29 03:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 03:12:18] Production.INFO: count ==321 [2025-01-29 03:12:18] Production.ERROR: pbx CDR StartTime 2025-01-29 00:12:05 - End Time 2025-01-29 03:12:05 [2025-01-29 03:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 03:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353486', 'tblTempUsageDetail_20' ) start [2025-01-29 03:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353486', 'tblTempUsageDetail_20' ) end [2025-01-29 03:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353486', 'tblTempVendorCDR_20' ) start [2025-01-29 03:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353486', 'tblTempVendorCDR_20' ) end [2025-01-29 03:12:18] Production.INFO: ProcessCDR(1,14353486,1,1,2) [2025-01-29 03:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14353486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 03:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14353486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 03:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14353486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 03:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14353486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 03:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353486', 'tblTempUsageDetail_20' ) start [2025-01-29 03:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353486', 'tblTempUsageDetail_20' ) end [2025-01-29 03:12:21] Production.ERROR: pbx prc_insertCDR start [2025-01-29 03:12:21] Production.ERROR: pbx prc_insertCDR end [2025-01-29 03:12:21] Production.INFO: ==13050== Releasing lock... [2025-01-29 03:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 03:12:21] Production.INFO: 30 MB #Memory Used# [2025-01-29 03:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 00:13:05 [end_date_ymd] => 2025-01-29 03:13:05 [RateCDR] => 1 ) [2025-01-29 03:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 00:13:05' and `end` < '2025-01-29 03:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 03:13:18] Production.INFO: count ==321 [2025-01-29 03:13:18] Production.ERROR: pbx CDR StartTime 2025-01-29 00:13:05 - End Time 2025-01-29 03:13:05 [2025-01-29 03:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 03:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353491', 'tblTempUsageDetail_20' ) start [2025-01-29 03:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353491', 'tblTempUsageDetail_20' ) end [2025-01-29 03:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353491', 'tblTempVendorCDR_20' ) start [2025-01-29 03:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353491', 'tblTempVendorCDR_20' ) end [2025-01-29 03:13:18] Production.INFO: ProcessCDR(1,14353491,1,1,2) [2025-01-29 03:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14353491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 03:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14353491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 03:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14353491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 03:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14353491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 03:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353491', 'tblTempUsageDetail_20' ) start [2025-01-29 03:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353491', 'tblTempUsageDetail_20' ) end [2025-01-29 03:13:21] Production.ERROR: pbx prc_insertCDR start [2025-01-29 03:13:21] Production.ERROR: pbx prc_insertCDR end [2025-01-29 03:13:21] Production.INFO: ==13209== Releasing lock... [2025-01-29 03:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 03:13:21] Production.INFO: 30 MB #Memory Used# [2025-01-29 03:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 00:14:05 [end_date_ymd] => 2025-01-29 03:14:05 [RateCDR] => 1 ) [2025-01-29 03:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 00:14:05' and `end` < '2025-01-29 03:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 03:14:18] Production.INFO: count ==321 [2025-01-29 03:14:18] Production.ERROR: pbx CDR StartTime 2025-01-29 00:14:05 - End Time 2025-01-29 03:14:05 [2025-01-29 03:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 03:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353496', 'tblTempUsageDetail_20' ) start [2025-01-29 03:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353496', 'tblTempUsageDetail_20' ) end [2025-01-29 03:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353496', 'tblTempVendorCDR_20' ) start [2025-01-29 03:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353496', 'tblTempVendorCDR_20' ) end [2025-01-29 03:14:18] Production.INFO: ProcessCDR(1,14353496,1,1,2) [2025-01-29 03:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14353496,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 03:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14353496,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 03:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14353496,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 03:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14353496,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 03:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353496', 'tblTempUsageDetail_20' ) start [2025-01-29 03:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353496', 'tblTempUsageDetail_20' ) end [2025-01-29 03:14:22] Production.ERROR: pbx prc_insertCDR start [2025-01-29 03:14:22] Production.ERROR: pbx prc_insertCDR end [2025-01-29 03:14:22] Production.INFO: ==13289== Releasing lock... [2025-01-29 03:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 03:14:22] Production.INFO: 30 MB #Memory Used# [2025-01-29 03:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 00:15:05 [end_date_ymd] => 2025-01-29 03:15:05 [RateCDR] => 1 ) [2025-01-29 03:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 00:15:05' and `end` < '2025-01-29 03:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 03:15:18] Production.INFO: count ==318 [2025-01-29 03:15:18] Production.ERROR: pbx CDR StartTime 2025-01-29 00:15:05 - End Time 2025-01-29 03:15:05 [2025-01-29 03:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 03:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353501', 'tblTempUsageDetail_20' ) start [2025-01-29 03:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353501', 'tblTempUsageDetail_20' ) end [2025-01-29 03:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353501', 'tblTempVendorCDR_20' ) start [2025-01-29 03:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353501', 'tblTempVendorCDR_20' ) end [2025-01-29 03:15:18] Production.INFO: ProcessCDR(1,14353501,1,1,2) [2025-01-29 03:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14353501,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 03:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14353501,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 03:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14353501,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 03:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14353501,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 03:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353501', 'tblTempUsageDetail_20' ) start [2025-01-29 03:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353501', 'tblTempUsageDetail_20' ) end [2025-01-29 03:15:21] Production.ERROR: pbx prc_insertCDR start [2025-01-29 03:15:21] Production.ERROR: pbx prc_insertCDR end [2025-01-29 03:15:21] Production.INFO: ==13375== Releasing lock... [2025-01-29 03:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 03:15:21] Production.INFO: 29.75 MB #Memory Used# [2025-01-29 03:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 00:16:05 [end_date_ymd] => 2025-01-29 03:16:05 [RateCDR] => 1 ) [2025-01-29 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-01-29 00:16:05' and `end` < '2025-01-29 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-01-29 03:16:18] Production.INFO: count ==317 [2025-01-29 03:16:18] Production.ERROR: pbx CDR StartTime 2025-01-29 00:16:05 - End Time 2025-01-29 03:16:05 [2025-01-29 03:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 03:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353506', 'tblTempUsageDetail_20' ) start [2025-01-29 03:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353506', 'tblTempUsageDetail_20' ) end [2025-01-29 03:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353506', 'tblTempVendorCDR_20' ) start [2025-01-29 03:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353506', 'tblTempVendorCDR_20' ) end [2025-01-29 03:16:18] Production.INFO: ProcessCDR(1,14353506,1,1,2) [2025-01-29 03:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14353506,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 03:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14353506,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 03:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14353506,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 03:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14353506,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 03:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353506', 'tblTempUsageDetail_20' ) start [2025-01-29 03:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353506', 'tblTempUsageDetail_20' ) end [2025-01-29 03:16:21] Production.ERROR: pbx prc_insertCDR start [2025-01-29 03:16:21] Production.ERROR: pbx prc_insertCDR end [2025-01-29 03:16:21] Production.INFO: ==13456== Releasing lock... [2025-01-29 03:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 03:16:21] Production.INFO: 29.75 MB #Memory Used# [2025-01-29 03:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 00:17:05 [end_date_ymd] => 2025-01-29 03:17:05 [RateCDR] => 1 ) [2025-01-29 03:17:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 00:17:05' and `end` < '2025-01-29 03:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 03:17:19] Production.INFO: count ==317 [2025-01-29 03:17:19] Production.ERROR: pbx CDR StartTime 2025-01-29 00:17:05 - End Time 2025-01-29 03:17:05 [2025-01-29 03:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 03:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353511', 'tblTempUsageDetail_20' ) start [2025-01-29 03:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353511', 'tblTempUsageDetail_20' ) end [2025-01-29 03:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353511', 'tblTempVendorCDR_20' ) start [2025-01-29 03:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353511', 'tblTempVendorCDR_20' ) end [2025-01-29 03:17:19] Production.INFO: ProcessCDR(1,14353511,1,1,2) [2025-01-29 03:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14353511,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 03:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14353511,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 03:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14353511,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 03:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14353511,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 03:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353511', 'tblTempUsageDetail_20' ) start [2025-01-29 03:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353511', 'tblTempUsageDetail_20' ) end [2025-01-29 03:17:22] Production.ERROR: pbx prc_insertCDR start [2025-01-29 03:17:22] Production.ERROR: pbx prc_insertCDR end [2025-01-29 03:17:22] Production.INFO: ==13617== Releasing lock... [2025-01-29 03:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 03:17:22] Production.INFO: 29.75 MB #Memory Used# [2025-01-29 03:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 00:18:05 [end_date_ymd] => 2025-01-29 03:18:05 [RateCDR] => 1 ) [2025-01-29 03:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 00:18:05' and `end` < '2025-01-29 03:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 03:18:18] Production.INFO: count ==317 [2025-01-29 03:18:18] Production.ERROR: pbx CDR StartTime 2025-01-29 00:18:05 - End Time 2025-01-29 03:18:05 [2025-01-29 03:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 03:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353516', 'tblTempUsageDetail_20' ) start [2025-01-29 03:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353516', 'tblTempUsageDetail_20' ) end [2025-01-29 03:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353516', 'tblTempVendorCDR_20' ) start [2025-01-29 03:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353516', 'tblTempVendorCDR_20' ) end [2025-01-29 03:18:18] Production.INFO: ProcessCDR(1,14353516,1,1,2) [2025-01-29 03:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14353516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 03:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14353516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 03:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14353516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 03:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14353516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 03:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353516', 'tblTempUsageDetail_20' ) start [2025-01-29 03:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353516', 'tblTempUsageDetail_20' ) end [2025-01-29 03:18:22] Production.ERROR: pbx prc_insertCDR start [2025-01-29 03:18:22] Production.ERROR: pbx prc_insertCDR end [2025-01-29 03:18:22] Production.INFO: ==13737== Releasing lock... [2025-01-29 03:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 03:18:22] Production.INFO: 29.75 MB #Memory Used# [2025-01-29 03:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 00:19:05 [end_date_ymd] => 2025-01-29 03:19:05 [RateCDR] => 1 ) [2025-01-29 03:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 00:19:05' and `end` < '2025-01-29 03:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 03:19:18] Production.INFO: count ==317 [2025-01-29 03:19:18] Production.ERROR: pbx CDR StartTime 2025-01-29 00:19:05 - End Time 2025-01-29 03:19:05 [2025-01-29 03:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 03:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353521', 'tblTempUsageDetail_20' ) start [2025-01-29 03:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353521', 'tblTempUsageDetail_20' ) end [2025-01-29 03:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353521', 'tblTempVendorCDR_20' ) start [2025-01-29 03:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353521', 'tblTempVendorCDR_20' ) end [2025-01-29 03:19:18] Production.INFO: ProcessCDR(1,14353521,1,1,2) [2025-01-29 03:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14353521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 03:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14353521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 03:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14353521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 03:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14353521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 03:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353521', 'tblTempUsageDetail_20' ) start [2025-01-29 03:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353521', 'tblTempUsageDetail_20' ) end [2025-01-29 03:19:21] Production.ERROR: pbx prc_insertCDR start [2025-01-29 03:19:21] Production.ERROR: pbx prc_insertCDR end [2025-01-29 03:19:21] Production.INFO: ==13813== Releasing lock... [2025-01-29 03:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 03:19:21] Production.INFO: 29.75 MB #Memory Used# [2025-01-29 03:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 00:20:06 [end_date_ymd] => 2025-01-29 03:20:06 [RateCDR] => 1 ) [2025-01-29 03:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 00:20:06' and `end` < '2025-01-29 03:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 03:20:19] Production.INFO: count ==313 [2025-01-29 03:20:19] Production.ERROR: pbx CDR StartTime 2025-01-29 00:20:06 - End Time 2025-01-29 03:20:06 [2025-01-29 03:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 03:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353526', 'tblTempUsageDetail_20' ) start [2025-01-29 03:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353526', 'tblTempUsageDetail_20' ) end [2025-01-29 03:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353526', 'tblTempVendorCDR_20' ) start [2025-01-29 03:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353526', 'tblTempVendorCDR_20' ) end [2025-01-29 03:20:19] Production.INFO: ProcessCDR(1,14353526,1,1,2) [2025-01-29 03:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14353526,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 03:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14353526,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 03:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14353526,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 03:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14353526,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 03:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353526', 'tblTempUsageDetail_20' ) start [2025-01-29 03:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353526', 'tblTempUsageDetail_20' ) end [2025-01-29 03:20:22] Production.ERROR: pbx prc_insertCDR start [2025-01-29 03:20:22] Production.ERROR: pbx prc_insertCDR end [2025-01-29 03:20:22] Production.INFO: ==13903== Releasing lock... [2025-01-29 03:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 03:20:22] Production.INFO: 29.75 MB #Memory Used# [2025-01-29 03:21:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 00:21:04 [end_date_ymd] => 2025-01-29 03:21:04 [RateCDR] => 1 ) [2025-01-29 03:21:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 00:21:04' and `end` < '2025-01-29 03:21:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 03:21:17] Production.INFO: count ==313 [2025-01-29 03:21:17] Production.ERROR: pbx CDR StartTime 2025-01-29 00:21:04 - End Time 2025-01-29 03:21:04 [2025-01-29 03:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 03:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353532', 'tblTempUsageDetail_20' ) start [2025-01-29 03:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353532', 'tblTempUsageDetail_20' ) end [2025-01-29 03:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353532', 'tblTempVendorCDR_20' ) start [2025-01-29 03:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353532', 'tblTempVendorCDR_20' ) end [2025-01-29 03:21:17] Production.INFO: ProcessCDR(1,14353532,1,1,2) [2025-01-29 03:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14353532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 03:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14353532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 03:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14353532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 03:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14353532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 03:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353532', 'tblTempUsageDetail_20' ) start [2025-01-29 03:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353532', 'tblTempUsageDetail_20' ) end [2025-01-29 03:21:21] Production.ERROR: pbx prc_insertCDR start [2025-01-29 03:21:21] Production.ERROR: pbx prc_insertCDR end [2025-01-29 03:21:21] Production.INFO: ==13988== Releasing lock... [2025-01-29 03:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 03:21:21] Production.INFO: 29.75 MB #Memory Used# [2025-01-29 03:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 00:22:06 [end_date_ymd] => 2025-01-29 03:22:06 [RateCDR] => 1 ) [2025-01-29 03:22:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 00:22:06' and `end` < '2025-01-29 03:22:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 03:22:18] Production.INFO: count ==313 [2025-01-29 03:22:18] Production.ERROR: pbx CDR StartTime 2025-01-29 00:22:06 - End Time 2025-01-29 03:22:06 [2025-01-29 03:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 03:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353537', 'tblTempUsageDetail_20' ) start [2025-01-29 03:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353537', 'tblTempUsageDetail_20' ) end [2025-01-29 03:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353537', 'tblTempVendorCDR_20' ) start [2025-01-29 03:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353537', 'tblTempVendorCDR_20' ) end [2025-01-29 03:22:18] Production.INFO: ProcessCDR(1,14353537,1,1,2) [2025-01-29 03:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14353537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 03:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14353537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 03:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14353537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 03:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14353537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 03:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353537', 'tblTempUsageDetail_20' ) start [2025-01-29 03:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353537', 'tblTempUsageDetail_20' ) end [2025-01-29 03:22:21] Production.ERROR: pbx prc_insertCDR start [2025-01-29 03:22:21] Production.ERROR: pbx prc_insertCDR end [2025-01-29 03:22:21] Production.INFO: ==14075== Releasing lock... [2025-01-29 03:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 03:22:21] Production.INFO: 29.75 MB #Memory Used# [2025-01-29 03:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 00:23:05 [end_date_ymd] => 2025-01-29 03:23:05 [RateCDR] => 1 ) [2025-01-29 03:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 00:23:05' and `end` < '2025-01-29 03:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 03:23:18] Production.INFO: count ==313 [2025-01-29 03:23:18] Production.ERROR: pbx CDR StartTime 2025-01-29 00:23:05 - End Time 2025-01-29 03:23:05 [2025-01-29 03:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 03:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353542', 'tblTempUsageDetail_20' ) start [2025-01-29 03:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353542', 'tblTempUsageDetail_20' ) end [2025-01-29 03:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353542', 'tblTempVendorCDR_20' ) start [2025-01-29 03:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353542', 'tblTempVendorCDR_20' ) end [2025-01-29 03:23:18] Production.INFO: ProcessCDR(1,14353542,1,1,2) [2025-01-29 03:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14353542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 03:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14353542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 03:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14353542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 03:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14353542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 03:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353542', 'tblTempUsageDetail_20' ) start [2025-01-29 03:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353542', 'tblTempUsageDetail_20' ) end [2025-01-29 03:23:21] Production.ERROR: pbx prc_insertCDR start [2025-01-29 03:23:21] Production.ERROR: pbx prc_insertCDR end [2025-01-29 03:23:21] Production.INFO: ==14193== Releasing lock... [2025-01-29 03:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 03:23:21] Production.INFO: 29.75 MB #Memory Used# [2025-01-29 03:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 00:24:06 [end_date_ymd] => 2025-01-29 03:24:06 [RateCDR] => 1 ) [2025-01-29 03:24:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 00:24:06' and `end` < '2025-01-29 03:24:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 03:24:19] Production.INFO: count ==313 [2025-01-29 03:24:19] Production.ERROR: pbx CDR StartTime 2025-01-29 00:24:06 - End Time 2025-01-29 03:24:06 [2025-01-29 03:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 03:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353547', 'tblTempUsageDetail_20' ) start [2025-01-29 03:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353547', 'tblTempUsageDetail_20' ) end [2025-01-29 03:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353547', 'tblTempVendorCDR_20' ) start [2025-01-29 03:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353547', 'tblTempVendorCDR_20' ) end [2025-01-29 03:24:19] Production.INFO: ProcessCDR(1,14353547,1,1,2) [2025-01-29 03:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14353547,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 03:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14353547,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 03:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14353547,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 03:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14353547,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 03:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353547', 'tblTempUsageDetail_20' ) start [2025-01-29 03:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353547', 'tblTempUsageDetail_20' ) end [2025-01-29 03:24:22] Production.ERROR: pbx prc_insertCDR start [2025-01-29 03:24:22] Production.ERROR: pbx prc_insertCDR end [2025-01-29 03:24:22] Production.INFO: ==14298== Releasing lock... [2025-01-29 03:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 03:24:22] Production.INFO: 29.75 MB #Memory Used# [2025-01-29 03:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 00:25:05 [end_date_ymd] => 2025-01-29 03:25:05 [RateCDR] => 1 ) [2025-01-29 03:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 00:25:05' and `end` < '2025-01-29 03:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 03:25:17] Production.INFO: count ==313 [2025-01-29 03:25:17] Production.ERROR: pbx CDR StartTime 2025-01-29 00:25:05 - End Time 2025-01-29 03:25:05 [2025-01-29 03:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353552', 'tblTempUsageDetail_20' ) start [2025-01-29 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353552', 'tblTempUsageDetail_20' ) end [2025-01-29 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353552', 'tblTempVendorCDR_20' ) start [2025-01-29 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353552', 'tblTempVendorCDR_20' ) end [2025-01-29 03:25:17] Production.INFO: ProcessCDR(1,14353552,1,1,2) [2025-01-29 03:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14353552,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 03:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14353552,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 03:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14353552,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 03:25:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14353552,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 03:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353552', 'tblTempUsageDetail_20' ) start [2025-01-29 03:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353552', 'tblTempUsageDetail_20' ) end [2025-01-29 03:25:20] Production.ERROR: pbx prc_insertCDR start [2025-01-29 03:25:20] Production.ERROR: pbx prc_insertCDR end [2025-01-29 03:25:20] Production.INFO: ==14397== Releasing lock... [2025-01-29 03:25:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 03:25:20] Production.INFO: 29.75 MB #Memory Used# [2025-01-29 03:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 00:26:05 [end_date_ymd] => 2025-01-29 03:26:05 [RateCDR] => 1 ) [2025-01-29 03:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 00:26:05' and `end` < '2025-01-29 03:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 03:26:18] Production.INFO: count ==313 [2025-01-29 03:26:18] Production.ERROR: pbx CDR StartTime 2025-01-29 00:26:05 - End Time 2025-01-29 03:26:05 [2025-01-29 03:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 03:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353557', 'tblTempUsageDetail_20' ) start [2025-01-29 03:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353557', 'tblTempUsageDetail_20' ) end [2025-01-29 03:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353557', 'tblTempVendorCDR_20' ) start [2025-01-29 03:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353557', 'tblTempVendorCDR_20' ) end [2025-01-29 03:26:18] Production.INFO: ProcessCDR(1,14353557,1,1,2) [2025-01-29 03:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14353557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 03:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14353557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 03:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14353557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 03:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14353557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 03:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353557', 'tblTempUsageDetail_20' ) start [2025-01-29 03:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353557', 'tblTempUsageDetail_20' ) end [2025-01-29 03:26:21] Production.ERROR: pbx prc_insertCDR start [2025-01-29 03:26:21] Production.ERROR: pbx prc_insertCDR end [2025-01-29 03:26:21] Production.INFO: ==14495== Releasing lock... [2025-01-29 03:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 03:26:21] Production.INFO: 29.75 MB #Memory Used# [2025-01-29 03:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 00:27:05 [end_date_ymd] => 2025-01-29 03:27:05 [RateCDR] => 1 ) [2025-01-29 03:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 00:27:05' and `end` < '2025-01-29 03:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 03:27:18] Production.INFO: count ==313 [2025-01-29 03:27:18] Production.ERROR: pbx CDR StartTime 2025-01-29 00:27:05 - End Time 2025-01-29 03:27:05 [2025-01-29 03:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 03:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353562', 'tblTempUsageDetail_20' ) start [2025-01-29 03:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353562', 'tblTempUsageDetail_20' ) end [2025-01-29 03:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353562', 'tblTempVendorCDR_20' ) start [2025-01-29 03:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353562', 'tblTempVendorCDR_20' ) end [2025-01-29 03:27:18] Production.INFO: ProcessCDR(1,14353562,1,1,2) [2025-01-29 03:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14353562,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 03:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14353562,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 03:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14353562,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 03:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14353562,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 03:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353562', 'tblTempUsageDetail_20' ) start [2025-01-29 03:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353562', 'tblTempUsageDetail_20' ) end [2025-01-29 03:27:21] Production.ERROR: pbx prc_insertCDR start [2025-01-29 03:27:21] Production.ERROR: pbx prc_insertCDR end [2025-01-29 03:27:21] Production.INFO: ==14594== Releasing lock... [2025-01-29 03:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 03:27:21] Production.INFO: 29.75 MB #Memory Used# [2025-01-29 03:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 00:28:05 [end_date_ymd] => 2025-01-29 03:28:05 [RateCDR] => 1 ) [2025-01-29 03:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 00:28:05' and `end` < '2025-01-29 03:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 03:28:18] Production.INFO: count ==312 [2025-01-29 03:28:18] Production.ERROR: pbx CDR StartTime 2025-01-29 00:28:05 - End Time 2025-01-29 03:28:05 [2025-01-29 03:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 03:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353567', 'tblTempUsageDetail_20' ) start [2025-01-29 03:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353567', 'tblTempUsageDetail_20' ) end [2025-01-29 03:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353567', 'tblTempVendorCDR_20' ) start [2025-01-29 03:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353567', 'tblTempVendorCDR_20' ) end [2025-01-29 03:28:18] Production.INFO: ProcessCDR(1,14353567,1,1,2) [2025-01-29 03:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14353567,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 03:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14353567,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 03:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14353567,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 03:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14353567,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 03:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353567', 'tblTempUsageDetail_20' ) start [2025-01-29 03:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353567', 'tblTempUsageDetail_20' ) end [2025-01-29 03:28:21] Production.ERROR: pbx prc_insertCDR start [2025-01-29 03:28:21] Production.ERROR: pbx prc_insertCDR end [2025-01-29 03:28:21] Production.INFO: ==14684== Releasing lock... [2025-01-29 03:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 03:28:21] Production.INFO: 29.75 MB #Memory Used# [2025-01-29 03:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 00:29:06 [end_date_ymd] => 2025-01-29 03:29:06 [RateCDR] => 1 ) [2025-01-29 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-01-29 00:29:06' and `end` < '2025-01-29 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-01-29 03:29:20] Production.INFO: count ==312 [2025-01-29 03:29:20] Production.ERROR: pbx CDR StartTime 2025-01-29 00:29:06 - End Time 2025-01-29 03:29:06 [2025-01-29 03:29:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 03:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353572', 'tblTempUsageDetail_20' ) start [2025-01-29 03:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353572', 'tblTempUsageDetail_20' ) end [2025-01-29 03:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353572', 'tblTempVendorCDR_20' ) start [2025-01-29 03:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353572', 'tblTempVendorCDR_20' ) end [2025-01-29 03:29:20] Production.INFO: ProcessCDR(1,14353572,1,1,2) [2025-01-29 03:29:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14353572,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 03:29:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14353572,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 03:29:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14353572,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 03:29:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14353572,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 03:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353572', 'tblTempUsageDetail_20' ) start [2025-01-29 03:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353572', 'tblTempUsageDetail_20' ) end [2025-01-29 03:29:23] Production.ERROR: pbx prc_insertCDR start [2025-01-29 03:29:23] Production.ERROR: pbx prc_insertCDR end [2025-01-29 03:29:23] Production.INFO: ==14768== Releasing lock... [2025-01-29 03:29:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 03:29:23] Production.INFO: 29.75 MB #Memory Used# [2025-01-29 03:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 00:30:05 [end_date_ymd] => 2025-01-29 03:30:05 [RateCDR] => 1 ) [2025-01-29 03:30:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 00:30:05' and `end` < '2025-01-29 03:30:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 03:30:18] Production.INFO: count ==310 [2025-01-29 03:30:18] Production.ERROR: pbx CDR StartTime 2025-01-29 00:30:05 - End Time 2025-01-29 03:30:05 [2025-01-29 03:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 03:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353577', 'tblTempUsageDetail_20' ) start [2025-01-29 03:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353577', 'tblTempUsageDetail_20' ) end [2025-01-29 03:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353577', 'tblTempVendorCDR_20' ) start [2025-01-29 03:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353577', 'tblTempVendorCDR_20' ) end [2025-01-29 03:30:18] Production.INFO: ProcessCDR(1,14353577,1,1,2) [2025-01-29 03:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14353577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 03:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14353577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 03:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14353577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 03:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14353577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 03:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353577', 'tblTempUsageDetail_20' ) start [2025-01-29 03:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353577', 'tblTempUsageDetail_20' ) end [2025-01-29 03:30:21] Production.ERROR: pbx prc_insertCDR start [2025-01-29 03:30:21] Production.ERROR: pbx prc_insertCDR end [2025-01-29 03:30:21] Production.INFO: ==14851== Releasing lock... [2025-01-29 03:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 03:30:21] Production.INFO: 29.75 MB #Memory Used# [2025-01-29 03:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 00:31:05 [end_date_ymd] => 2025-01-29 03:31:05 [RateCDR] => 1 ) [2025-01-29 03:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 00:31:05' and `end` < '2025-01-29 03:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 03:31:18] Production.INFO: count ==294 [2025-01-29 03:31:18] Production.ERROR: pbx CDR StartTime 2025-01-29 00:31:05 - End Time 2025-01-29 03:31:05 [2025-01-29 03:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 03:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353583', 'tblTempUsageDetail_20' ) start [2025-01-29 03:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353583', 'tblTempUsageDetail_20' ) end [2025-01-29 03:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353583', 'tblTempVendorCDR_20' ) start [2025-01-29 03:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353583', 'tblTempVendorCDR_20' ) end [2025-01-29 03:31:19] Production.INFO: ProcessCDR(1,14353583,1,1,2) [2025-01-29 03:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14353583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 03:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14353583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 03:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14353583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 03:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14353583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 03:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353583', 'tblTempUsageDetail_20' ) start [2025-01-29 03:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353583', 'tblTempUsageDetail_20' ) end [2025-01-29 03:31:22] Production.ERROR: pbx prc_insertCDR start [2025-01-29 03:31:22] Production.ERROR: pbx prc_insertCDR end [2025-01-29 03:31:22] Production.INFO: ==14930== Releasing lock... [2025-01-29 03:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 03:31:22] Production.INFO: 29.75 MB #Memory Used# [2025-01-29 03:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 00:32:05 [end_date_ymd] => 2025-01-29 03:32:05 [RateCDR] => 1 ) [2025-01-29 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-01-29 00:32:05' and `end` < '2025-01-29 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-01-29 03:32:19] Production.INFO: count ==294 [2025-01-29 03:32:19] Production.ERROR: pbx CDR StartTime 2025-01-29 00:32:05 - End Time 2025-01-29 03:32:05 [2025-01-29 03:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 03:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353588', 'tblTempUsageDetail_20' ) start [2025-01-29 03:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353588', 'tblTempUsageDetail_20' ) end [2025-01-29 03:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353588', 'tblTempVendorCDR_20' ) start [2025-01-29 03:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353588', 'tblTempVendorCDR_20' ) end [2025-01-29 03:32:19] Production.INFO: ProcessCDR(1,14353588,1,1,2) [2025-01-29 03:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14353588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 03:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14353588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 03:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14353588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 03:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14353588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 03:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353588', 'tblTempUsageDetail_20' ) start [2025-01-29 03:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353588', 'tblTempUsageDetail_20' ) end [2025-01-29 03:32:22] Production.ERROR: pbx prc_insertCDR start [2025-01-29 03:32:22] Production.ERROR: pbx prc_insertCDR end [2025-01-29 03:32:22] Production.INFO: ==15017== Releasing lock... [2025-01-29 03:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 03:32:22] Production.INFO: 29.75 MB #Memory Used# [2025-01-29 03:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 00:33:06 [end_date_ymd] => 2025-01-29 03:33:06 [RateCDR] => 1 ) [2025-01-29 03:33:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 00:33:06' and `end` < '2025-01-29 03:33:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 03:33:19] Production.INFO: count ==294 [2025-01-29 03:33:19] Production.ERROR: pbx CDR StartTime 2025-01-29 00:33:06 - End Time 2025-01-29 03:33:06 [2025-01-29 03:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 03:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353593', 'tblTempUsageDetail_20' ) start [2025-01-29 03:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353593', 'tblTempUsageDetail_20' ) end [2025-01-29 03:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353593', 'tblTempVendorCDR_20' ) start [2025-01-29 03:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353593', 'tblTempVendorCDR_20' ) end [2025-01-29 03:33:19] Production.INFO: ProcessCDR(1,14353593,1,1,2) [2025-01-29 03:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14353593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 03:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14353593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 03:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14353593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 03:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14353593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 03:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353593', 'tblTempUsageDetail_20' ) start [2025-01-29 03:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353593', 'tblTempUsageDetail_20' ) end [2025-01-29 03:33:22] Production.ERROR: pbx prc_insertCDR start [2025-01-29 03:33:22] Production.ERROR: pbx prc_insertCDR end [2025-01-29 03:33:22] Production.INFO: ==15138== Releasing lock... [2025-01-29 03:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 03:33:22] Production.INFO: 29.75 MB #Memory Used# [2025-01-29 03:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 00:34:05 [end_date_ymd] => 2025-01-29 03:34:05 [RateCDR] => 1 ) [2025-01-29 03:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 00:34:05' and `end` < '2025-01-29 03:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 03:34:18] Production.INFO: count ==290 [2025-01-29 03:34:18] Production.ERROR: pbx CDR StartTime 2025-01-29 00:34:05 - End Time 2025-01-29 03:34:05 [2025-01-29 03:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 03:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353598', 'tblTempUsageDetail_20' ) start [2025-01-29 03:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353598', 'tblTempUsageDetail_20' ) end [2025-01-29 03:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353598', 'tblTempVendorCDR_20' ) start [2025-01-29 03:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353598', 'tblTempVendorCDR_20' ) end [2025-01-29 03:34:18] Production.INFO: ProcessCDR(1,14353598,1,1,2) [2025-01-29 03:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14353598,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 03:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14353598,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 03:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14353598,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 03:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14353598,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 03:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353598', 'tblTempUsageDetail_20' ) start [2025-01-29 03:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353598', 'tblTempUsageDetail_20' ) end [2025-01-29 03:34:21] Production.ERROR: pbx prc_insertCDR start [2025-01-29 03:34:21] Production.ERROR: pbx prc_insertCDR end [2025-01-29 03:34:21] Production.INFO: ==15265== Releasing lock... [2025-01-29 03:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 03:34:21] Production.INFO: 29.5 MB #Memory Used# [2025-01-29 03:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 00:35:05 [end_date_ymd] => 2025-01-29 03:35:05 [RateCDR] => 1 ) [2025-01-29 03:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 00:35:05' and `end` < '2025-01-29 03:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 03:35:19] Production.INFO: count ==286 [2025-01-29 03:35:19] Production.ERROR: pbx CDR StartTime 2025-01-29 00:35:05 - End Time 2025-01-29 03:35:05 [2025-01-29 03:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 03:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353603', 'tblTempUsageDetail_20' ) start [2025-01-29 03:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353603', 'tblTempUsageDetail_20' ) end [2025-01-29 03:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353603', 'tblTempVendorCDR_20' ) start [2025-01-29 03:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353603', 'tblTempVendorCDR_20' ) end [2025-01-29 03:35:19] Production.INFO: ProcessCDR(1,14353603,1,1,2) [2025-01-29 03:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14353603,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 03:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14353603,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 03:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14353603,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 03:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14353603,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 03:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353603', 'tblTempUsageDetail_20' ) start [2025-01-29 03:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353603', 'tblTempUsageDetail_20' ) end [2025-01-29 03:35:22] Production.ERROR: pbx prc_insertCDR start [2025-01-29 03:35:22] Production.ERROR: pbx prc_insertCDR end [2025-01-29 03:35:22] Production.INFO: ==15348== Releasing lock... [2025-01-29 03:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 03:35:22] Production.INFO: 29.5 MB #Memory Used# [2025-01-29 03:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 00:36:06 [end_date_ymd] => 2025-01-29 03:36:06 [RateCDR] => 1 ) [2025-01-29 03:36:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 00:36:06' and `end` < '2025-01-29 03:36:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 03:36:18] Production.INFO: count ==286 [2025-01-29 03:36:18] Production.ERROR: pbx CDR StartTime 2025-01-29 00:36:06 - End Time 2025-01-29 03:36:06 [2025-01-29 03:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 03:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353608', 'tblTempUsageDetail_20' ) start [2025-01-29 03:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353608', 'tblTempUsageDetail_20' ) end [2025-01-29 03:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353608', 'tblTempVendorCDR_20' ) start [2025-01-29 03:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353608', 'tblTempVendorCDR_20' ) end [2025-01-29 03:36:18] Production.INFO: ProcessCDR(1,14353608,1,1,2) [2025-01-29 03:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14353608,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 03:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14353608,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 03:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14353608,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 03:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14353608,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 03:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353608', 'tblTempUsageDetail_20' ) start [2025-01-29 03:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353608', 'tblTempUsageDetail_20' ) end [2025-01-29 03:36:22] Production.ERROR: pbx prc_insertCDR start [2025-01-29 03:36:22] Production.ERROR: pbx prc_insertCDR end [2025-01-29 03:36:22] Production.INFO: ==15430== Releasing lock... [2025-01-29 03:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 03:36:22] Production.INFO: 29.5 MB #Memory Used# [2025-01-29 03:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 00:37:05 [end_date_ymd] => 2025-01-29 03:37:05 [RateCDR] => 1 ) [2025-01-29 03:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 00:37:05' and `end` < '2025-01-29 03:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 03:37:19] Production.INFO: count ==285 [2025-01-29 03:37:19] Production.ERROR: pbx CDR StartTime 2025-01-29 00:37:05 - End Time 2025-01-29 03:37:05 [2025-01-29 03:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 03:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353613', 'tblTempUsageDetail_20' ) start [2025-01-29 03:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353613', 'tblTempUsageDetail_20' ) end [2025-01-29 03:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353613', 'tblTempVendorCDR_20' ) start [2025-01-29 03:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353613', 'tblTempVendorCDR_20' ) end [2025-01-29 03:37:19] Production.INFO: ProcessCDR(1,14353613,1,1,2) [2025-01-29 03:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14353613,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 03:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14353613,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 03:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14353613,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 03:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14353613,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 03:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353613', 'tblTempUsageDetail_20' ) start [2025-01-29 03:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353613', 'tblTempUsageDetail_20' ) end [2025-01-29 03:37:22] Production.ERROR: pbx prc_insertCDR start [2025-01-29 03:37:22] Production.ERROR: pbx prc_insertCDR end [2025-01-29 03:37:22] Production.INFO: ==15510== Releasing lock... [2025-01-29 03:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 03:37:22] Production.INFO: 29.5 MB #Memory Used# [2025-01-29 03:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 00:38:05 [end_date_ymd] => 2025-01-29 03:38:05 [RateCDR] => 1 ) [2025-01-29 03:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 00:38:05' and `end` < '2025-01-29 03:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 03:38:18] Production.INFO: count ==286 [2025-01-29 03:38:19] Production.ERROR: pbx CDR StartTime 2025-01-29 00:38:05 - End Time 2025-01-29 03:38:05 [2025-01-29 03:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 03:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353618', 'tblTempUsageDetail_20' ) start [2025-01-29 03:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353618', 'tblTempUsageDetail_20' ) end [2025-01-29 03:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353618', 'tblTempVendorCDR_20' ) start [2025-01-29 03:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353618', 'tblTempVendorCDR_20' ) end [2025-01-29 03:38:19] Production.INFO: ProcessCDR(1,14353618,1,1,2) [2025-01-29 03:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14353618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 03:38:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14353618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 03:38:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14353618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 03:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14353618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 03:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353618', 'tblTempUsageDetail_20' ) start [2025-01-29 03:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353618', 'tblTempUsageDetail_20' ) end [2025-01-29 03:38:23] Production.ERROR: pbx prc_insertCDR start [2025-01-29 03:38:23] Production.ERROR: pbx prc_insertCDR end [2025-01-29 03:38:23] Production.INFO: ==15601== Releasing lock... [2025-01-29 03:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 03:38:23] Production.INFO: 29.5 MB #Memory Used# [2025-01-29 03:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 00:39:05 [end_date_ymd] => 2025-01-29 03:39:05 [RateCDR] => 1 ) [2025-01-29 03:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 00:39:05' and `end` < '2025-01-29 03:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 03:39:19] Production.INFO: count ==285 [2025-01-29 03:39:19] Production.ERROR: pbx CDR StartTime 2025-01-29 00:39:05 - End Time 2025-01-29 03:39:05 [2025-01-29 03:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 03:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353623', 'tblTempUsageDetail_20' ) start [2025-01-29 03:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353623', 'tblTempUsageDetail_20' ) end [2025-01-29 03:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353623', 'tblTempVendorCDR_20' ) start [2025-01-29 03:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353623', 'tblTempVendorCDR_20' ) end [2025-01-29 03:39:19] Production.INFO: ProcessCDR(1,14353623,1,1,2) [2025-01-29 03:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14353623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 03:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14353623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 03:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14353623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 03:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14353623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 03:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353623', 'tblTempUsageDetail_20' ) start [2025-01-29 03:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353623', 'tblTempUsageDetail_20' ) end [2025-01-29 03:39:22] Production.ERROR: pbx prc_insertCDR start [2025-01-29 03:39:22] Production.ERROR: pbx prc_insertCDR end [2025-01-29 03:39:22] Production.INFO: ==15684== Releasing lock... [2025-01-29 03:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 03:39:22] Production.INFO: 29.5 MB #Memory Used# [2025-01-29 03:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 00:40:06 [end_date_ymd] => 2025-01-29 03:40:06 [RateCDR] => 1 ) [2025-01-29 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-01-29 00:40:06' and `end` < '2025-01-29 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-01-29 03:40:19] Production.INFO: count ==285 [2025-01-29 03:40:19] Production.ERROR: pbx CDR StartTime 2025-01-29 00:40:06 - End Time 2025-01-29 03:40:06 [2025-01-29 03:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 03:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353629', 'tblTempUsageDetail_20' ) start [2025-01-29 03:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353629', 'tblTempUsageDetail_20' ) end [2025-01-29 03:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353629', 'tblTempVendorCDR_20' ) start [2025-01-29 03:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353629', 'tblTempVendorCDR_20' ) end [2025-01-29 03:40:19] Production.INFO: ProcessCDR(1,14353629,1,1,2) [2025-01-29 03:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14353629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 03:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14353629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 03:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14353629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 03:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14353629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 03:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353629', 'tblTempUsageDetail_20' ) start [2025-01-29 03:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353629', 'tblTempUsageDetail_20' ) end [2025-01-29 03:40:22] Production.ERROR: pbx prc_insertCDR start [2025-01-29 03:40:22] Production.ERROR: pbx prc_insertCDR end [2025-01-29 03:40:22] Production.INFO: ==15771== Releasing lock... [2025-01-29 03:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 03:40:22] Production.INFO: 29.5 MB #Memory Used# [2025-01-29 03:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 00:41:05 [end_date_ymd] => 2025-01-29 03:41:05 [RateCDR] => 1 ) [2025-01-29 03:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 00:41:05' and `end` < '2025-01-29 03:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 03:41:18] Production.INFO: count ==269 [2025-01-29 03:41:18] Production.ERROR: pbx CDR StartTime 2025-01-29 00:41:05 - End Time 2025-01-29 03:41:05 [2025-01-29 03:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 03:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353634', 'tblTempUsageDetail_20' ) start [2025-01-29 03:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353634', 'tblTempUsageDetail_20' ) end [2025-01-29 03:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353634', 'tblTempVendorCDR_20' ) start [2025-01-29 03:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353634', 'tblTempVendorCDR_20' ) end [2025-01-29 03:41:18] Production.INFO: ProcessCDR(1,14353634,1,1,2) [2025-01-29 03:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14353634,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 03:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14353634,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 03:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14353634,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 03:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14353634,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 03:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353634', 'tblTempUsageDetail_20' ) start [2025-01-29 03:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353634', 'tblTempUsageDetail_20' ) end [2025-01-29 03:41:22] Production.ERROR: pbx prc_insertCDR start [2025-01-29 03:41:22] Production.ERROR: pbx prc_insertCDR end [2025-01-29 03:41:22] Production.INFO: ==15859== Releasing lock... [2025-01-29 03:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 03:41:22] Production.INFO: 29.5 MB #Memory Used# [2025-01-29 03:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 00:42:06 [end_date_ymd] => 2025-01-29 03:42:06 [RateCDR] => 1 ) [2025-01-29 03:42:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 00:42:06' and `end` < '2025-01-29 03:42:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 03:42:20] Production.INFO: count ==269 [2025-01-29 03:42:20] Production.ERROR: pbx CDR StartTime 2025-01-29 00:42:06 - End Time 2025-01-29 03:42:06 [2025-01-29 03:42:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 03:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353639', 'tblTempUsageDetail_20' ) start [2025-01-29 03:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353639', 'tblTempUsageDetail_20' ) end [2025-01-29 03:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353639', 'tblTempVendorCDR_20' ) start [2025-01-29 03:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353639', 'tblTempVendorCDR_20' ) end [2025-01-29 03:42:20] Production.INFO: ProcessCDR(1,14353639,1,1,2) [2025-01-29 03:42:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14353639,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 03:42:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14353639,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 03:42:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14353639,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 03:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14353639,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 03:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353639', 'tblTempUsageDetail_20' ) start [2025-01-29 03:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353639', 'tblTempUsageDetail_20' ) end [2025-01-29 03:42:23] Production.ERROR: pbx prc_insertCDR start [2025-01-29 03:42:23] Production.ERROR: pbx prc_insertCDR end [2025-01-29 03:42:23] Production.INFO: ==15940== Releasing lock... [2025-01-29 03:42:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 03:42:23] Production.INFO: 29.5 MB #Memory Used# [2025-01-29 03:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 00:43:05 [end_date_ymd] => 2025-01-29 03:43:05 [RateCDR] => 1 ) [2025-01-29 03:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 00:43:05' and `end` < '2025-01-29 03:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 03:43:18] Production.INFO: count ==268 [2025-01-29 03:43:18] Production.ERROR: pbx CDR StartTime 2025-01-29 00:43:05 - End Time 2025-01-29 03:43:05 [2025-01-29 03:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 03:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353644', 'tblTempUsageDetail_20' ) start [2025-01-29 03:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353644', 'tblTempUsageDetail_20' ) end [2025-01-29 03:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353644', 'tblTempVendorCDR_20' ) start [2025-01-29 03:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353644', 'tblTempVendorCDR_20' ) end [2025-01-29 03:43:18] Production.INFO: ProcessCDR(1,14353644,1,1,2) [2025-01-29 03:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14353644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 03:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14353644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 03:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14353644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 03:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14353644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 03:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353644', 'tblTempUsageDetail_20' ) start [2025-01-29 03:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353644', 'tblTempUsageDetail_20' ) end [2025-01-29 03:43:22] Production.ERROR: pbx prc_insertCDR start [2025-01-29 03:43:22] Production.ERROR: pbx prc_insertCDR end [2025-01-29 03:43:22] Production.INFO: ==16023== Releasing lock... [2025-01-29 03:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 03:43:22] Production.INFO: 29.5 MB #Memory Used# [2025-01-29 03:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 00:44:06 [end_date_ymd] => 2025-01-29 03:44:06 [RateCDR] => 1 ) [2025-01-29 03:44:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 00:44:06' and `end` < '2025-01-29 03:44:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 03:44:18] Production.INFO: count ==268 [2025-01-29 03:44:18] Production.ERROR: pbx CDR StartTime 2025-01-29 00:44:06 - End Time 2025-01-29 03:44:06 [2025-01-29 03:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 03:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353649', 'tblTempUsageDetail_20' ) start [2025-01-29 03:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353649', 'tblTempUsageDetail_20' ) end [2025-01-29 03:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353649', 'tblTempVendorCDR_20' ) start [2025-01-29 03:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353649', 'tblTempVendorCDR_20' ) end [2025-01-29 03:44:18] Production.INFO: ProcessCDR(1,14353649,1,1,2) [2025-01-29 03:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14353649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 03:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14353649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 03:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14353649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 03:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14353649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 03:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353649', 'tblTempUsageDetail_20' ) start [2025-01-29 03:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353649', 'tblTempUsageDetail_20' ) end [2025-01-29 03:44:21] Production.ERROR: pbx prc_insertCDR start [2025-01-29 03:44:21] Production.ERROR: pbx prc_insertCDR end [2025-01-29 03:44:21] Production.INFO: ==16104== Releasing lock... [2025-01-29 03:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 03:44:21] Production.INFO: 29.5 MB #Memory Used# [2025-01-29 03:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 00:45:05 [end_date_ymd] => 2025-01-29 03:45:05 [RateCDR] => 1 ) [2025-01-29 03:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 00:45:05' and `end` < '2025-01-29 03:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 03:45:18] Production.INFO: count ==268 [2025-01-29 03:45:18] Production.ERROR: pbx CDR StartTime 2025-01-29 00:45:05 - End Time 2025-01-29 03:45:05 [2025-01-29 03:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 03:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353654', 'tblTempUsageDetail_20' ) start [2025-01-29 03:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353654', 'tblTempUsageDetail_20' ) end [2025-01-29 03:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353654', 'tblTempVendorCDR_20' ) start [2025-01-29 03:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353654', 'tblTempVendorCDR_20' ) end [2025-01-29 03:45:18] Production.INFO: ProcessCDR(1,14353654,1,1,2) [2025-01-29 03:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14353654,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 03:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14353654,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 03:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14353654,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 03:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14353654,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 03:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353654', 'tblTempUsageDetail_20' ) start [2025-01-29 03:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353654', 'tblTempUsageDetail_20' ) end [2025-01-29 03:45:21] Production.ERROR: pbx prc_insertCDR start [2025-01-29 03:45:21] Production.ERROR: pbx prc_insertCDR end [2025-01-29 03:45:21] Production.INFO: ==16188== Releasing lock... [2025-01-29 03:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 03:45:21] Production.INFO: 29.5 MB #Memory Used# [2025-01-29 03:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 00:46:05 [end_date_ymd] => 2025-01-29 03:46:05 [RateCDR] => 1 ) [2025-01-29 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-01-29 00:46:05' and `end` < '2025-01-29 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-01-29 03:46:18] Production.INFO: count ==268 [2025-01-29 03:46:18] Production.ERROR: pbx CDR StartTime 2025-01-29 00:46:05 - End Time 2025-01-29 03:46:05 [2025-01-29 03:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 03:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353659', 'tblTempUsageDetail_20' ) start [2025-01-29 03:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353659', 'tblTempUsageDetail_20' ) end [2025-01-29 03:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353659', 'tblTempVendorCDR_20' ) start [2025-01-29 03:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353659', 'tblTempVendorCDR_20' ) end [2025-01-29 03:46:18] Production.INFO: ProcessCDR(1,14353659,1,1,2) [2025-01-29 03:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14353659,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 03:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14353659,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 03:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14353659,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 03:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14353659,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 03:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353659', 'tblTempUsageDetail_20' ) start [2025-01-29 03:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353659', 'tblTempUsageDetail_20' ) end [2025-01-29 03:46:21] Production.ERROR: pbx prc_insertCDR start [2025-01-29 03:46:21] Production.ERROR: pbx prc_insertCDR end [2025-01-29 03:46:21] Production.INFO: ==16266== Releasing lock... [2025-01-29 03:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 03:46:21] Production.INFO: 29.5 MB #Memory Used# [2025-01-29 03:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 00:47:05 [end_date_ymd] => 2025-01-29 03:47:05 [RateCDR] => 1 ) [2025-01-29 03:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 00:47:05' and `end` < '2025-01-29 03:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 03:47:17] Production.INFO: count ==266 [2025-01-29 03:47:18] Production.ERROR: pbx CDR StartTime 2025-01-29 00:47:05 - End Time 2025-01-29 03:47:05 [2025-01-29 03:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 03:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353664', 'tblTempUsageDetail_20' ) start [2025-01-29 03:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353664', 'tblTempUsageDetail_20' ) end [2025-01-29 03:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353664', 'tblTempVendorCDR_20' ) start [2025-01-29 03:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353664', 'tblTempVendorCDR_20' ) end [2025-01-29 03:47:18] Production.INFO: ProcessCDR(1,14353664,1,1,2) [2025-01-29 03:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14353664,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 03:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14353664,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 03:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14353664,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 03:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14353664,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 03:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353664', 'tblTempUsageDetail_20' ) start [2025-01-29 03:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353664', 'tblTempUsageDetail_20' ) end [2025-01-29 03:47:21] Production.ERROR: pbx prc_insertCDR start [2025-01-29 03:47:21] Production.ERROR: pbx prc_insertCDR end [2025-01-29 03:47:21] Production.INFO: ==16345== Releasing lock... [2025-01-29 03:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 03:47:21] Production.INFO: 29.5 MB #Memory Used# [2025-01-29 03:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 00:48:06 [end_date_ymd] => 2025-01-29 03:48:06 [RateCDR] => 1 ) [2025-01-29 03:48:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 00:48:06' and `end` < '2025-01-29 03:48:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 03:48:19] Production.INFO: count ==266 [2025-01-29 03:48:19] Production.ERROR: pbx CDR StartTime 2025-01-29 00:48:06 - End Time 2025-01-29 03:48:06 [2025-01-29 03:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 03:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353669', 'tblTempUsageDetail_20' ) start [2025-01-29 03:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353669', 'tblTempUsageDetail_20' ) end [2025-01-29 03:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353669', 'tblTempVendorCDR_20' ) start [2025-01-29 03:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353669', 'tblTempVendorCDR_20' ) end [2025-01-29 03:48:19] Production.INFO: ProcessCDR(1,14353669,1,1,2) [2025-01-29 03:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14353669,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 03:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14353669,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 03:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14353669,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 03:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14353669,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 03:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353669', 'tblTempUsageDetail_20' ) start [2025-01-29 03:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353669', 'tblTempUsageDetail_20' ) end [2025-01-29 03:48:22] Production.ERROR: pbx prc_insertCDR start [2025-01-29 03:48:22] Production.ERROR: pbx prc_insertCDR end [2025-01-29 03:48:22] Production.INFO: ==16427== Releasing lock... [2025-01-29 03:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 03:48:22] Production.INFO: 29.5 MB #Memory Used# [2025-01-29 03:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 00:49:05 [end_date_ymd] => 2025-01-29 03:49:05 [RateCDR] => 1 ) [2025-01-29 03:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 00:49:05' and `end` < '2025-01-29 03:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 03:49:18] Production.INFO: count ==265 [2025-01-29 03:49:18] Production.ERROR: pbx CDR StartTime 2025-01-29 00:49:05 - End Time 2025-01-29 03:49:05 [2025-01-29 03:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 03:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353674', 'tblTempUsageDetail_20' ) start [2025-01-29 03:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353674', 'tblTempUsageDetail_20' ) end [2025-01-29 03:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353674', 'tblTempVendorCDR_20' ) start [2025-01-29 03:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353674', 'tblTempVendorCDR_20' ) end [2025-01-29 03:49:18] Production.INFO: ProcessCDR(1,14353674,1,1,2) [2025-01-29 03:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14353674,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 03:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14353674,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 03:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14353674,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 03:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14353674,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 03:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353674', 'tblTempUsageDetail_20' ) start [2025-01-29 03:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353674', 'tblTempUsageDetail_20' ) end [2025-01-29 03:49:22] Production.ERROR: pbx prc_insertCDR start [2025-01-29 03:49:22] Production.ERROR: pbx prc_insertCDR end [2025-01-29 03:49:22] Production.INFO: ==16546== Releasing lock... [2025-01-29 03:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 03:49:22] Production.INFO: 29.5 MB #Memory Used# [2025-01-29 03:50:07] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 00:50:07 [end_date_ymd] => 2025-01-29 03:50:07 [RateCDR] => 1 ) [2025-01-29 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-01-29 00:50:07' and `end` < '2025-01-29 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-01-29 03:50:19] Production.INFO: count ==265 [2025-01-29 03:50:19] Production.ERROR: pbx CDR StartTime 2025-01-29 00:50:07 - End Time 2025-01-29 03:50:07 [2025-01-29 03:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 03:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353679', 'tblTempUsageDetail_20' ) start [2025-01-29 03:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353679', 'tblTempUsageDetail_20' ) end [2025-01-29 03:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353679', 'tblTempVendorCDR_20' ) start [2025-01-29 03:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353679', 'tblTempVendorCDR_20' ) end [2025-01-29 03:50:19] Production.INFO: ProcessCDR(1,14353679,1,1,2) [2025-01-29 03:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14353679,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 03:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14353679,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 03:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14353679,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 03:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14353679,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 03:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353679', 'tblTempUsageDetail_20' ) start [2025-01-29 03:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353679', 'tblTempUsageDetail_20' ) end [2025-01-29 03:50:23] Production.ERROR: pbx prc_insertCDR start [2025-01-29 03:50:23] Production.ERROR: pbx prc_insertCDR end [2025-01-29 03:50:23] Production.INFO: ==16622== Releasing lock... [2025-01-29 03:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 03:50:23] Production.INFO: 29.5 MB #Memory Used# [2025-01-29 03:51:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 00:51:04 [end_date_ymd] => 2025-01-29 03:51:04 [RateCDR] => 1 ) [2025-01-29 03:51:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 00:51:04' and `end` < '2025-01-29 03:51:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 03:51:18] Production.INFO: count ==265 [2025-01-29 03:51:18] Production.ERROR: pbx CDR StartTime 2025-01-29 00:51:04 - End Time 2025-01-29 03:51:04 [2025-01-29 03:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 03:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353685', 'tblTempUsageDetail_20' ) start [2025-01-29 03:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353685', 'tblTempUsageDetail_20' ) end [2025-01-29 03:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353685', 'tblTempVendorCDR_20' ) start [2025-01-29 03:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353685', 'tblTempVendorCDR_20' ) end [2025-01-29 03:51:18] Production.INFO: ProcessCDR(1,14353685,1,1,2) [2025-01-29 03:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14353685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 03:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14353685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 03:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14353685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 03:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14353685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 03:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353685', 'tblTempUsageDetail_20' ) start [2025-01-29 03:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353685', 'tblTempUsageDetail_20' ) end [2025-01-29 03:51:21] Production.ERROR: pbx prc_insertCDR start [2025-01-29 03:51:21] Production.ERROR: pbx prc_insertCDR end [2025-01-29 03:51:21] Production.INFO: ==16703== Releasing lock... [2025-01-29 03:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 03:51:21] Production.INFO: 29.5 MB #Memory Used# [2025-01-29 03:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 00:52:06 [end_date_ymd] => 2025-01-29 03:52:06 [RateCDR] => 1 ) [2025-01-29 03:52:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 00:52:06' and `end` < '2025-01-29 03:52:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 03:52:18] Production.INFO: count ==262 [2025-01-29 03:52:19] Production.ERROR: pbx CDR StartTime 2025-01-29 00:52:06 - End Time 2025-01-29 03:52:06 [2025-01-29 03:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 03:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353690', 'tblTempUsageDetail_20' ) start [2025-01-29 03:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353690', 'tblTempUsageDetail_20' ) end [2025-01-29 03:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353690', 'tblTempVendorCDR_20' ) start [2025-01-29 03:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353690', 'tblTempVendorCDR_20' ) end [2025-01-29 03:52:19] Production.INFO: ProcessCDR(1,14353690,1,1,2) [2025-01-29 03:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14353690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 03:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14353690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 03:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14353690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 03:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14353690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 03:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353690', 'tblTempUsageDetail_20' ) start [2025-01-29 03:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353690', 'tblTempUsageDetail_20' ) end [2025-01-29 03:52:22] Production.ERROR: pbx prc_insertCDR start [2025-01-29 03:52:22] Production.ERROR: pbx prc_insertCDR end [2025-01-29 03:52:22] Production.INFO: ==16783== Releasing lock... [2025-01-29 03:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 03:52:22] Production.INFO: 29.5 MB #Memory Used# [2025-01-29 03:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 00:53:05 [end_date_ymd] => 2025-01-29 03:53:05 [RateCDR] => 1 ) [2025-01-29 03:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 00:53:05' and `end` < '2025-01-29 03:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 03:53:17] Production.INFO: count ==262 [2025-01-29 03:53:17] Production.ERROR: pbx CDR StartTime 2025-01-29 00:53:05 - End Time 2025-01-29 03:53:05 [2025-01-29 03:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 03:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353695', 'tblTempUsageDetail_20' ) start [2025-01-29 03:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353695', 'tblTempUsageDetail_20' ) end [2025-01-29 03:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353695', 'tblTempVendorCDR_20' ) start [2025-01-29 03:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353695', 'tblTempVendorCDR_20' ) end [2025-01-29 03:53:17] Production.INFO: ProcessCDR(1,14353695,1,1,2) [2025-01-29 03:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14353695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 03:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14353695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 03:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14353695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 03:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14353695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 03:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353695', 'tblTempUsageDetail_20' ) start [2025-01-29 03:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353695', 'tblTempUsageDetail_20' ) end [2025-01-29 03:53:21] Production.ERROR: pbx prc_insertCDR start [2025-01-29 03:53:21] Production.ERROR: pbx prc_insertCDR end [2025-01-29 03:53:21] Production.INFO: ==16862== Releasing lock... [2025-01-29 03:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 03:53:21] Production.INFO: 29.5 MB #Memory Used# [2025-01-29 03:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 00:54:05 [end_date_ymd] => 2025-01-29 03:54:05 [RateCDR] => 1 ) [2025-01-29 03:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 00:54:05' and `end` < '2025-01-29 03:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 03:54:18] Production.INFO: count ==262 [2025-01-29 03:54:18] Production.ERROR: pbx CDR StartTime 2025-01-29 00:54:05 - End Time 2025-01-29 03:54:05 [2025-01-29 03:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 03:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353700', 'tblTempUsageDetail_20' ) start [2025-01-29 03:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353700', 'tblTempUsageDetail_20' ) end [2025-01-29 03:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353700', 'tblTempVendorCDR_20' ) start [2025-01-29 03:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353700', 'tblTempVendorCDR_20' ) end [2025-01-29 03:54:18] Production.INFO: ProcessCDR(1,14353700,1,1,2) [2025-01-29 03:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14353700,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 03:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14353700,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 03:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14353700,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 03:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14353700,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 03:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353700', 'tblTempUsageDetail_20' ) start [2025-01-29 03:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353700', 'tblTempUsageDetail_20' ) end [2025-01-29 03:54:21] Production.ERROR: pbx prc_insertCDR start [2025-01-29 03:54:21] Production.ERROR: pbx prc_insertCDR end [2025-01-29 03:54:21] Production.INFO: ==16937== Releasing lock... [2025-01-29 03:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 03:54:21] Production.INFO: 29.5 MB #Memory Used# [2025-01-29 03:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 00:55:05 [end_date_ymd] => 2025-01-29 03:55:05 [RateCDR] => 1 ) [2025-01-29 03:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 00:55:05' and `end` < '2025-01-29 03:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 03:55:17] Production.INFO: count ==261 [2025-01-29 03:55:17] Production.ERROR: pbx CDR StartTime 2025-01-29 00:55:05 - End Time 2025-01-29 03:55:05 [2025-01-29 03:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 03:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353705', 'tblTempUsageDetail_20' ) start [2025-01-29 03:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353705', 'tblTempUsageDetail_20' ) end [2025-01-29 03:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353705', 'tblTempVendorCDR_20' ) start [2025-01-29 03:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353705', 'tblTempVendorCDR_20' ) end [2025-01-29 03:55:17] Production.INFO: ProcessCDR(1,14353705,1,1,2) [2025-01-29 03:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14353705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 03:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14353705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 03:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14353705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 03:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14353705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 03:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353705', 'tblTempUsageDetail_20' ) start [2025-01-29 03:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353705', 'tblTempUsageDetail_20' ) end [2025-01-29 03:55:21] Production.ERROR: pbx prc_insertCDR start [2025-01-29 03:55:21] Production.ERROR: pbx prc_insertCDR end [2025-01-29 03:55:21] Production.INFO: ==17013== Releasing lock... [2025-01-29 03:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 03:55:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-29 03:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 00:56:06 [end_date_ymd] => 2025-01-29 03:56:06 [RateCDR] => 1 ) [2025-01-29 03:56:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 00:56:06' and `end` < '2025-01-29 03:56:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 03:56:18] Production.INFO: count ==257 [2025-01-29 03:56:18] Production.ERROR: pbx CDR StartTime 2025-01-29 00:56:06 - End Time 2025-01-29 03:56:06 [2025-01-29 03:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 03:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353710', 'tblTempUsageDetail_20' ) start [2025-01-29 03:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353710', 'tblTempUsageDetail_20' ) end [2025-01-29 03:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353710', 'tblTempVendorCDR_20' ) start [2025-01-29 03:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353710', 'tblTempVendorCDR_20' ) end [2025-01-29 03:56:18] Production.INFO: ProcessCDR(1,14353710,1,1,2) [2025-01-29 03:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14353710,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 03:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14353710,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 03:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14353710,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 03:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14353710,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 03:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353710', 'tblTempUsageDetail_20' ) start [2025-01-29 03:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353710', 'tblTempUsageDetail_20' ) end [2025-01-29 03:56:22] Production.ERROR: pbx prc_insertCDR start [2025-01-29 03:56:22] Production.ERROR: pbx prc_insertCDR end [2025-01-29 03:56:22] Production.INFO: ==17087== Releasing lock... [2025-01-29 03:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 03:56:22] Production.INFO: 29.25 MB #Memory Used# [2025-01-29 03:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 00:57:05 [end_date_ymd] => 2025-01-29 03:57:05 [RateCDR] => 1 ) [2025-01-29 03:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 00:57:05' and `end` < '2025-01-29 03:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 03:57:19] Production.INFO: count ==257 [2025-01-29 03:57:19] Production.ERROR: pbx CDR StartTime 2025-01-29 00:57:05 - End Time 2025-01-29 03:57:05 [2025-01-29 03:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 03:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353715', 'tblTempUsageDetail_20' ) start [2025-01-29 03:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353715', 'tblTempUsageDetail_20' ) end [2025-01-29 03:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353715', 'tblTempVendorCDR_20' ) start [2025-01-29 03:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353715', 'tblTempVendorCDR_20' ) end [2025-01-29 03:57:19] Production.INFO: ProcessCDR(1,14353715,1,1,2) [2025-01-29 03:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14353715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 03:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14353715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 03:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14353715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 03:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14353715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 03:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353715', 'tblTempUsageDetail_20' ) start [2025-01-29 03:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353715', 'tblTempUsageDetail_20' ) end [2025-01-29 03:57:22] Production.ERROR: pbx prc_insertCDR start [2025-01-29 03:57:22] Production.ERROR: pbx prc_insertCDR end [2025-01-29 03:57:22] Production.INFO: ==17162== Releasing lock... [2025-01-29 03:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 03:57:22] Production.INFO: 29.25 MB #Memory Used# [2025-01-29 03:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 00:58:06 [end_date_ymd] => 2025-01-29 03:58:06 [RateCDR] => 1 ) [2025-01-29 03:58:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 00:58:06' and `end` < '2025-01-29 03:58:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 03:58:19] Production.INFO: count ==257 [2025-01-29 03:58:19] Production.ERROR: pbx CDR StartTime 2025-01-29 00:58:06 - End Time 2025-01-29 03:58:06 [2025-01-29 03:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 03:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353720', 'tblTempUsageDetail_20' ) start [2025-01-29 03:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353720', 'tblTempUsageDetail_20' ) end [2025-01-29 03:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353720', 'tblTempVendorCDR_20' ) start [2025-01-29 03:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353720', 'tblTempVendorCDR_20' ) end [2025-01-29 03:58:19] Production.INFO: ProcessCDR(1,14353720,1,1,2) [2025-01-29 03:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14353720,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 03:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14353720,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 03:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14353720,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 03:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14353720,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 03:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353720', 'tblTempUsageDetail_20' ) start [2025-01-29 03:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353720', 'tblTempUsageDetail_20' ) end [2025-01-29 03:58:22] Production.ERROR: pbx prc_insertCDR start [2025-01-29 03:58:22] Production.ERROR: pbx prc_insertCDR end [2025-01-29 03:58:22] Production.INFO: ==17234== Releasing lock... [2025-01-29 03:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 03:58:22] Production.INFO: 29.25 MB #Memory Used# [2025-01-29 03:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 00:59:05 [end_date_ymd] => 2025-01-29 03:59:05 [RateCDR] => 1 ) [2025-01-29 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-01-29 00:59:05' and `end` < '2025-01-29 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-01-29 03:59:18] Production.INFO: count ==257 [2025-01-29 03:59:18] Production.ERROR: pbx CDR StartTime 2025-01-29 00:59:05 - End Time 2025-01-29 03:59:05 [2025-01-29 03:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 03:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353725', 'tblTempUsageDetail_20' ) start [2025-01-29 03:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353725', 'tblTempUsageDetail_20' ) end [2025-01-29 03:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353725', 'tblTempVendorCDR_20' ) start [2025-01-29 03:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353725', 'tblTempVendorCDR_20' ) end [2025-01-29 03:59:18] Production.INFO: ProcessCDR(1,14353725,1,1,2) [2025-01-29 03:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14353725,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 03:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14353725,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 03:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14353725,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 03:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14353725,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 03:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353725', 'tblTempUsageDetail_20' ) start [2025-01-29 03:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353725', 'tblTempUsageDetail_20' ) end [2025-01-29 03:59:21] Production.ERROR: pbx prc_insertCDR start [2025-01-29 03:59:21] Production.ERROR: pbx prc_insertCDR end [2025-01-29 03:59:21] Production.INFO: ==17308== Releasing lock... [2025-01-29 03:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 03:59:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-29 04:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 01:00:06 [end_date_ymd] => 2025-01-29 04:00:06 [RateCDR] => 1 ) [2025-01-29 04:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 01:00:06' and `end` < '2025-01-29 04:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 04:00:19] Production.INFO: count ==253 [2025-01-29 04:00:19] Production.ERROR: pbx CDR StartTime 2025-01-29 01:00:06 - End Time 2025-01-29 04:00:06 [2025-01-29 04:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 04:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353732', 'tblTempUsageDetail_20' ) start [2025-01-29 04:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353732', 'tblTempUsageDetail_20' ) end [2025-01-29 04:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353732', 'tblTempVendorCDR_20' ) start [2025-01-29 04:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353732', 'tblTempVendorCDR_20' ) end [2025-01-29 04:00:19] Production.INFO: ProcessCDR(1,14353732,1,1,2) [2025-01-29 04:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14353732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 04:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14353732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 04:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14353732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 04:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14353732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 04:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353732', 'tblTempUsageDetail_20' ) start [2025-01-29 04:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353732', 'tblTempUsageDetail_20' ) end [2025-01-29 04:00:23] Production.ERROR: pbx prc_insertCDR start [2025-01-29 04:00:23] Production.ERROR: pbx prc_insertCDR end [2025-01-29 04:00:23] Production.INFO: ==17384== Releasing lock... [2025-01-29 04:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 04:00:23] Production.INFO: 29.25 MB #Memory Used# [2025-01-29 04:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 01:01:06 [end_date_ymd] => 2025-01-29 04:01:06 [RateCDR] => 1 ) [2025-01-29 04:01:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 01:01:06' and `end` < '2025-01-29 04:01:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 04:01:19] Production.INFO: count ==233 [2025-01-29 04:01:19] Production.ERROR: pbx CDR StartTime 2025-01-29 01:01:06 - End Time 2025-01-29 04:01:06 [2025-01-29 04:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 04:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353737', 'tblTempUsageDetail_20' ) start [2025-01-29 04:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353737', 'tblTempUsageDetail_20' ) end [2025-01-29 04:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353737', 'tblTempVendorCDR_20' ) start [2025-01-29 04:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353737', 'tblTempVendorCDR_20' ) end [2025-01-29 04:01:19] Production.INFO: ProcessCDR(1,14353737,1,1,2) [2025-01-29 04:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14353737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 04:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14353737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 04:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14353737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 04:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14353737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 04:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353737', 'tblTempUsageDetail_20' ) start [2025-01-29 04:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353737', 'tblTempUsageDetail_20' ) end [2025-01-29 04:01:22] Production.ERROR: pbx prc_insertCDR start [2025-01-29 04:01:22] Production.ERROR: pbx prc_insertCDR end [2025-01-29 04:01:22] Production.INFO: ==17470== Releasing lock... [2025-01-29 04:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 04:01:22] Production.INFO: 29.25 MB #Memory Used# [2025-01-29 04:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 01:02:05 [end_date_ymd] => 2025-01-29 04:02:05 [RateCDR] => 1 ) [2025-01-29 04:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 01:02:05' and `end` < '2025-01-29 04:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 04:02:17] Production.INFO: count ==232 [2025-01-29 04:02:17] Production.ERROR: pbx CDR StartTime 2025-01-29 01:02:05 - End Time 2025-01-29 04:02:05 [2025-01-29 04:02:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 04:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353742', 'tblTempUsageDetail_20' ) start [2025-01-29 04:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353742', 'tblTempUsageDetail_20' ) end [2025-01-29 04:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353742', 'tblTempVendorCDR_20' ) start [2025-01-29 04:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353742', 'tblTempVendorCDR_20' ) end [2025-01-29 04:02:17] Production.INFO: ProcessCDR(1,14353742,1,1,2) [2025-01-29 04:02:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14353742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 04:02:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14353742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 04:02:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14353742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 04:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14353742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 04:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353742', 'tblTempUsageDetail_20' ) start [2025-01-29 04:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353742', 'tblTempUsageDetail_20' ) end [2025-01-29 04:02:21] Production.ERROR: pbx prc_insertCDR start [2025-01-29 04:02:21] Production.ERROR: pbx prc_insertCDR end [2025-01-29 04:02:21] Production.INFO: ==17543== Releasing lock... [2025-01-29 04:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 04:02:21] Production.INFO: 29 MB #Memory Used# [2025-01-29 04:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 01:03:05 [end_date_ymd] => 2025-01-29 04:03:05 [RateCDR] => 1 ) [2025-01-29 04:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 01:03:05' and `end` < '2025-01-29 04:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 04:03:19] Production.INFO: count ==232 [2025-01-29 04:03:19] Production.ERROR: pbx CDR StartTime 2025-01-29 01:03:05 - End Time 2025-01-29 04:03:05 [2025-01-29 04:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 04:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353747', 'tblTempUsageDetail_20' ) start [2025-01-29 04:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353747', 'tblTempUsageDetail_20' ) end [2025-01-29 04:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353747', 'tblTempVendorCDR_20' ) start [2025-01-29 04:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353747', 'tblTempVendorCDR_20' ) end [2025-01-29 04:03:20] Production.INFO: ProcessCDR(1,14353747,1,1,2) [2025-01-29 04:03:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14353747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 04:03:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14353747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 04:03:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14353747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 04:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14353747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 04:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353747', 'tblTempUsageDetail_20' ) start [2025-01-29 04:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353747', 'tblTempUsageDetail_20' ) end [2025-01-29 04:03:23] Production.ERROR: pbx prc_insertCDR start [2025-01-29 04:03:23] Production.ERROR: pbx prc_insertCDR end [2025-01-29 04:03:23] Production.INFO: ==17613== Releasing lock... [2025-01-29 04:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 04:03:23] Production.INFO: 29 MB #Memory Used# [2025-01-29 04:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 01:04:05 [end_date_ymd] => 2025-01-29 04:04:05 [RateCDR] => 1 ) [2025-01-29 04:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 01:04:05' and `end` < '2025-01-29 04:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 04:04:18] Production.INFO: count ==232 [2025-01-29 04:04:19] Production.ERROR: pbx CDR StartTime 2025-01-29 01:04:05 - End Time 2025-01-29 04:04:05 [2025-01-29 04:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 04:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353752', 'tblTempUsageDetail_20' ) start [2025-01-29 04:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353752', 'tblTempUsageDetail_20' ) end [2025-01-29 04:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353752', 'tblTempVendorCDR_20' ) start [2025-01-29 04:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353752', 'tblTempVendorCDR_20' ) end [2025-01-29 04:04:19] Production.INFO: ProcessCDR(1,14353752,1,1,2) [2025-01-29 04:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14353752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 04:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14353752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 04:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14353752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 04:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14353752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 04:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353752', 'tblTempUsageDetail_20' ) start [2025-01-29 04:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353752', 'tblTempUsageDetail_20' ) end [2025-01-29 04:04:22] Production.ERROR: pbx prc_insertCDR start [2025-01-29 04:04:22] Production.ERROR: pbx prc_insertCDR end [2025-01-29 04:04:22] Production.INFO: ==17685== Releasing lock... [2025-01-29 04:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 04:04:22] Production.INFO: 29.25 MB #Memory Used# [2025-01-29 04:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 01:05:06 [end_date_ymd] => 2025-01-29 04:05:06 [RateCDR] => 1 ) [2025-01-29 04:05:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 01:05:06' and `end` < '2025-01-29 04:05:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 04:05:18] Production.INFO: count ==232 [2025-01-29 04:05:18] Production.ERROR: pbx CDR StartTime 2025-01-29 01:05:06 - End Time 2025-01-29 04:05:06 [2025-01-29 04:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 04:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353757', 'tblTempUsageDetail_20' ) start [2025-01-29 04:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353757', 'tblTempUsageDetail_20' ) end [2025-01-29 04:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353757', 'tblTempVendorCDR_20' ) start [2025-01-29 04:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353757', 'tblTempVendorCDR_20' ) end [2025-01-29 04:05:18] Production.INFO: ProcessCDR(1,14353757,1,1,2) [2025-01-29 04:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14353757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 04:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14353757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 04:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14353757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 04:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14353757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 04:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353757', 'tblTempUsageDetail_20' ) start [2025-01-29 04:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353757', 'tblTempUsageDetail_20' ) end [2025-01-29 04:05:21] Production.ERROR: pbx prc_insertCDR start [2025-01-29 04:05:22] Production.ERROR: pbx prc_insertCDR end [2025-01-29 04:05:22] Production.INFO: ==17796== Releasing lock... [2025-01-29 04:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 04:05:22] Production.INFO: 29 MB #Memory Used# [2025-01-29 04:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 01:06:05 [end_date_ymd] => 2025-01-29 04:06:05 [RateCDR] => 1 ) [2025-01-29 04:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 01:06:05' and `end` < '2025-01-29 04:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 04:06:18] Production.INFO: count ==232 [2025-01-29 04:06:18] Production.ERROR: pbx CDR StartTime 2025-01-29 01:06:05 - End Time 2025-01-29 04:06:05 [2025-01-29 04:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 04:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353762', 'tblTempUsageDetail_20' ) start [2025-01-29 04:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353762', 'tblTempUsageDetail_20' ) end [2025-01-29 04:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353762', 'tblTempVendorCDR_20' ) start [2025-01-29 04:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353762', 'tblTempVendorCDR_20' ) end [2025-01-29 04:06:18] Production.INFO: ProcessCDR(1,14353762,1,1,2) [2025-01-29 04:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14353762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 04:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14353762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 04:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14353762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 04:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14353762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 04:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353762', 'tblTempUsageDetail_20' ) start [2025-01-29 04:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353762', 'tblTempUsageDetail_20' ) end [2025-01-29 04:06:21] Production.ERROR: pbx prc_insertCDR start [2025-01-29 04:06:21] Production.ERROR: pbx prc_insertCDR end [2025-01-29 04:06:21] Production.INFO: ==17870== Releasing lock... [2025-01-29 04:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 04:06:21] Production.INFO: 29 MB #Memory Used# [2025-01-29 04:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 01:07:05 [end_date_ymd] => 2025-01-29 04:07:05 [RateCDR] => 1 ) [2025-01-29 04:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 01:07:05' and `end` < '2025-01-29 04:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 04:07:18] Production.INFO: count ==232 [2025-01-29 04:07:18] Production.ERROR: pbx CDR StartTime 2025-01-29 01:07:05 - End Time 2025-01-29 04:07:05 [2025-01-29 04:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 04:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353767', 'tblTempUsageDetail_20' ) start [2025-01-29 04:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353767', 'tblTempUsageDetail_20' ) end [2025-01-29 04:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353767', 'tblTempVendorCDR_20' ) start [2025-01-29 04:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353767', 'tblTempVendorCDR_20' ) end [2025-01-29 04:07:18] Production.INFO: ProcessCDR(1,14353767,1,1,2) [2025-01-29 04:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14353767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 04:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14353767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 04:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14353767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 04:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14353767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 04:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353767', 'tblTempUsageDetail_20' ) start [2025-01-29 04:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353767', 'tblTempUsageDetail_20' ) end [2025-01-29 04:07:21] Production.ERROR: pbx prc_insertCDR start [2025-01-29 04:07:21] Production.ERROR: pbx prc_insertCDR end [2025-01-29 04:07:21] Production.INFO: ==17944== Releasing lock... [2025-01-29 04:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 04:07:21] Production.INFO: 29 MB #Memory Used# [2025-01-29 04:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 01:08:05 [end_date_ymd] => 2025-01-29 04:08:05 [RateCDR] => 1 ) [2025-01-29 04:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 01:08:05' and `end` < '2025-01-29 04:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 04:08:18] Production.INFO: count ==232 [2025-01-29 04:08:19] Production.ERROR: pbx CDR StartTime 2025-01-29 01:08:05 - End Time 2025-01-29 04:08:05 [2025-01-29 04:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 04:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353772', 'tblTempUsageDetail_20' ) start [2025-01-29 04:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353772', 'tblTempUsageDetail_20' ) end [2025-01-29 04:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353772', 'tblTempVendorCDR_20' ) start [2025-01-29 04:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353772', 'tblTempVendorCDR_20' ) end [2025-01-29 04:08:19] Production.INFO: ProcessCDR(1,14353772,1,1,2) [2025-01-29 04:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14353772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 04:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14353772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 04:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14353772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 04:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14353772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 04:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353772', 'tblTempUsageDetail_20' ) start [2025-01-29 04:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353772', 'tblTempUsageDetail_20' ) end [2025-01-29 04:08:22] Production.ERROR: pbx prc_insertCDR start [2025-01-29 04:08:22] Production.ERROR: pbx prc_insertCDR end [2025-01-29 04:08:22] Production.INFO: ==18020== Releasing lock... [2025-01-29 04:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 04:08:22] Production.INFO: 29 MB #Memory Used# [2025-01-29 04:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 01:09:05 [end_date_ymd] => 2025-01-29 04:09:05 [RateCDR] => 1 ) [2025-01-29 04:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 01:09:05' and `end` < '2025-01-29 04:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 04:09:18] Production.INFO: count ==232 [2025-01-29 04:09:18] Production.ERROR: pbx CDR StartTime 2025-01-29 01:09:05 - End Time 2025-01-29 04:09:05 [2025-01-29 04:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 04:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353777', 'tblTempUsageDetail_20' ) start [2025-01-29 04:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353777', 'tblTempUsageDetail_20' ) end [2025-01-29 04:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353777', 'tblTempVendorCDR_20' ) start [2025-01-29 04:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353777', 'tblTempVendorCDR_20' ) end [2025-01-29 04:09:19] Production.INFO: ProcessCDR(1,14353777,1,1,2) [2025-01-29 04:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14353777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 04:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14353777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 04:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14353777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 04:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14353777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 04:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353777', 'tblTempUsageDetail_20' ) start [2025-01-29 04:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353777', 'tblTempUsageDetail_20' ) end [2025-01-29 04:09:22] Production.ERROR: pbx prc_insertCDR start [2025-01-29 04:09:22] Production.ERROR: pbx prc_insertCDR end [2025-01-29 04:09:22] Production.INFO: ==18093== Releasing lock... [2025-01-29 04:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 04:09:22] Production.INFO: 29 MB #Memory Used# [2025-01-29 04:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 01:10:05 [end_date_ymd] => 2025-01-29 04:10:05 [RateCDR] => 1 ) [2025-01-29 04:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 01:10:05' and `end` < '2025-01-29 04:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 04:10:17] Production.INFO: count ==234 [2025-01-29 04:10:17] Production.ERROR: pbx CDR StartTime 2025-01-29 01:10:05 - End Time 2025-01-29 04:10:05 [2025-01-29 04:10:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 04:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353782', 'tblTempUsageDetail_20' ) start [2025-01-29 04:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353782', 'tblTempUsageDetail_20' ) end [2025-01-29 04:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353782', 'tblTempVendorCDR_20' ) start [2025-01-29 04:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353782', 'tblTempVendorCDR_20' ) end [2025-01-29 04:10:17] Production.INFO: ProcessCDR(1,14353782,1,1,2) [2025-01-29 04:10:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14353782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 04:10:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14353782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 04:10:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14353782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 04:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14353782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 04:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353782', 'tblTempUsageDetail_20' ) start [2025-01-29 04:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353782', 'tblTempUsageDetail_20' ) end [2025-01-29 04:10:21] Production.ERROR: pbx prc_insertCDR start [2025-01-29 04:10:21] Production.ERROR: pbx prc_insertCDR end [2025-01-29 04:10:21] Production.INFO: ==18167== Releasing lock... [2025-01-29 04:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 04:10:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-29 04:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 01:11:05 [end_date_ymd] => 2025-01-29 04:11:05 [RateCDR] => 1 ) [2025-01-29 04:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 01:11:05' and `end` < '2025-01-29 04:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 04:11:18] Production.INFO: count ==234 [2025-01-29 04:11:18] Production.ERROR: pbx CDR StartTime 2025-01-29 01:11:05 - End Time 2025-01-29 04:11:05 [2025-01-29 04:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 04:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353788', 'tblTempUsageDetail_20' ) start [2025-01-29 04:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353788', 'tblTempUsageDetail_20' ) end [2025-01-29 04:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353788', 'tblTempVendorCDR_20' ) start [2025-01-29 04:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353788', 'tblTempVendorCDR_20' ) end [2025-01-29 04:11:18] Production.INFO: ProcessCDR(1,14353788,1,1,2) [2025-01-29 04:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14353788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 04:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14353788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 04:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14353788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 04:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14353788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 04:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353788', 'tblTempUsageDetail_20' ) start [2025-01-29 04:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353788', 'tblTempUsageDetail_20' ) end [2025-01-29 04:11:21] Production.ERROR: pbx prc_insertCDR start [2025-01-29 04:11:21] Production.ERROR: pbx prc_insertCDR end [2025-01-29 04:11:21] Production.INFO: ==18246== Releasing lock... [2025-01-29 04:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 04:11:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-29 04:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 01:12:05 [end_date_ymd] => 2025-01-29 04:12:05 [RateCDR] => 1 ) [2025-01-29 04:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 01:12:05' and `end` < '2025-01-29 04:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 04:12:18] Production.INFO: count ==234 [2025-01-29 04:12:18] Production.ERROR: pbx CDR StartTime 2025-01-29 01:12:05 - End Time 2025-01-29 04:12:05 [2025-01-29 04:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 04:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353793', 'tblTempUsageDetail_20' ) start [2025-01-29 04:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353793', 'tblTempUsageDetail_20' ) end [2025-01-29 04:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353793', 'tblTempVendorCDR_20' ) start [2025-01-29 04:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353793', 'tblTempVendorCDR_20' ) end [2025-01-29 04:12:18] Production.INFO: ProcessCDR(1,14353793,1,1,2) [2025-01-29 04:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14353793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 04:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14353793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 04:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14353793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 04:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14353793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 04:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353793', 'tblTempUsageDetail_20' ) start [2025-01-29 04:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353793', 'tblTempUsageDetail_20' ) end [2025-01-29 04:12:21] Production.ERROR: pbx prc_insertCDR start [2025-01-29 04:12:21] Production.ERROR: pbx prc_insertCDR end [2025-01-29 04:12:21] Production.INFO: ==18320== Releasing lock... [2025-01-29 04:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 04:12:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-29 04:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 01:13:05 [end_date_ymd] => 2025-01-29 04:13:05 [RateCDR] => 1 ) [2025-01-29 04:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 01:13:05' and `end` < '2025-01-29 04:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 04:13:18] Production.INFO: count ==234 [2025-01-29 04:13:18] Production.ERROR: pbx CDR StartTime 2025-01-29 01:13:05 - End Time 2025-01-29 04:13:05 [2025-01-29 04:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 04:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353798', 'tblTempUsageDetail_20' ) start [2025-01-29 04:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353798', 'tblTempUsageDetail_20' ) end [2025-01-29 04:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353798', 'tblTempVendorCDR_20' ) start [2025-01-29 04:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353798', 'tblTempVendorCDR_20' ) end [2025-01-29 04:13:18] Production.INFO: ProcessCDR(1,14353798,1,1,2) [2025-01-29 04:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14353798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 04:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14353798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 04:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14353798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 04:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14353798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 04:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353798', 'tblTempUsageDetail_20' ) start [2025-01-29 04:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353798', 'tblTempUsageDetail_20' ) end [2025-01-29 04:13:21] Production.ERROR: pbx prc_insertCDR start [2025-01-29 04:13:21] Production.ERROR: pbx prc_insertCDR end [2025-01-29 04:13:21] Production.INFO: ==18392== Releasing lock... [2025-01-29 04:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 04:13:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-29 04:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 01:14:05 [end_date_ymd] => 2025-01-29 04:14:05 [RateCDR] => 1 ) [2025-01-29 04:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 01:14:05' and `end` < '2025-01-29 04:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 04:14:18] Production.INFO: count ==232 [2025-01-29 04:14:18] Production.ERROR: pbx CDR StartTime 2025-01-29 01:14:05 - End Time 2025-01-29 04:14:05 [2025-01-29 04:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 04:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353803', 'tblTempUsageDetail_20' ) start [2025-01-29 04:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353803', 'tblTempUsageDetail_20' ) end [2025-01-29 04:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353803', 'tblTempVendorCDR_20' ) start [2025-01-29 04:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353803', 'tblTempVendorCDR_20' ) end [2025-01-29 04:14:18] Production.INFO: ProcessCDR(1,14353803,1,1,2) [2025-01-29 04:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14353803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 04:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14353803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 04:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14353803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 04:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14353803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 04:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353803', 'tblTempUsageDetail_20' ) start [2025-01-29 04:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353803', 'tblTempUsageDetail_20' ) end [2025-01-29 04:14:21] Production.ERROR: pbx prc_insertCDR start [2025-01-29 04:14:21] Production.ERROR: pbx prc_insertCDR end [2025-01-29 04:14:21] Production.INFO: ==18464== Releasing lock... [2025-01-29 04:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 04:14:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-29 04:15:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 01:15:04 [end_date_ymd] => 2025-01-29 04:15:04 [RateCDR] => 1 ) [2025-01-29 04:15:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 01:15:04' and `end` < '2025-01-29 04:15:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 04:15:18] Production.INFO: count ==232 [2025-01-29 04:15:18] Production.ERROR: pbx CDR StartTime 2025-01-29 01:15:04 - End Time 2025-01-29 04:15:04 [2025-01-29 04:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 04:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353808', 'tblTempUsageDetail_20' ) start [2025-01-29 04:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353808', 'tblTempUsageDetail_20' ) end [2025-01-29 04:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353808', 'tblTempVendorCDR_20' ) start [2025-01-29 04:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353808', 'tblTempVendorCDR_20' ) end [2025-01-29 04:15:18] Production.INFO: ProcessCDR(1,14353808,1,1,2) [2025-01-29 04:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14353808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 04:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14353808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 04:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14353808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 04:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14353808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 04:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353808', 'tblTempUsageDetail_20' ) start [2025-01-29 04:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353808', 'tblTempUsageDetail_20' ) end [2025-01-29 04:15:21] Production.ERROR: pbx prc_insertCDR start [2025-01-29 04:15:21] Production.ERROR: pbx prc_insertCDR end [2025-01-29 04:15:21] Production.INFO: ==18534== Releasing lock... [2025-01-29 04:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 04:15:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-29 04:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 01:16:05 [end_date_ymd] => 2025-01-29 04:16:05 [RateCDR] => 1 ) [2025-01-29 04:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 01:16:05' and `end` < '2025-01-29 04:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 04:16:18] Production.INFO: count ==231 [2025-01-29 04:16:18] Production.ERROR: pbx CDR StartTime 2025-01-29 01:16:05 - End Time 2025-01-29 04:16:05 [2025-01-29 04:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 04:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353813', 'tblTempUsageDetail_20' ) start [2025-01-29 04:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353813', 'tblTempUsageDetail_20' ) end [2025-01-29 04:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353813', 'tblTempVendorCDR_20' ) start [2025-01-29 04:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353813', 'tblTempVendorCDR_20' ) end [2025-01-29 04:16:18] Production.INFO: ProcessCDR(1,14353813,1,1,2) [2025-01-29 04:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14353813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 04:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14353813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 04:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14353813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 04:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14353813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 04:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353813', 'tblTempUsageDetail_20' ) start [2025-01-29 04:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353813', 'tblTempUsageDetail_20' ) end [2025-01-29 04:16:22] Production.ERROR: pbx prc_insertCDR start [2025-01-29 04:16:22] Production.ERROR: pbx prc_insertCDR end [2025-01-29 04:16:22] Production.INFO: ==18605== Releasing lock... [2025-01-29 04:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 04:16:22] Production.INFO: 29.25 MB #Memory Used# [2025-01-29 04:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 01:17:05 [end_date_ymd] => 2025-01-29 04:17:05 [RateCDR] => 1 ) [2025-01-29 04:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 01:17:05' and `end` < '2025-01-29 04:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 04:17:19] Production.INFO: count ==230 [2025-01-29 04:17:19] Production.ERROR: pbx CDR StartTime 2025-01-29 01:17:05 - End Time 2025-01-29 04:17:05 [2025-01-29 04:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 04:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353818', 'tblTempUsageDetail_20' ) start [2025-01-29 04:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353818', 'tblTempUsageDetail_20' ) end [2025-01-29 04:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353818', 'tblTempVendorCDR_20' ) start [2025-01-29 04:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353818', 'tblTempVendorCDR_20' ) end [2025-01-29 04:17:19] Production.INFO: ProcessCDR(1,14353818,1,1,2) [2025-01-29 04:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14353818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 04:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14353818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 04:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14353818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 04:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14353818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 04:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353818', 'tblTempUsageDetail_20' ) start [2025-01-29 04:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353818', 'tblTempUsageDetail_20' ) end [2025-01-29 04:17:22] Production.ERROR: pbx prc_insertCDR start [2025-01-29 04:17:22] Production.ERROR: pbx prc_insertCDR end [2025-01-29 04:17:22] Production.INFO: ==18676== Releasing lock... [2025-01-29 04:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 04:17:22] Production.INFO: 29 MB #Memory Used# [2025-01-29 04:18:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 01:18:04 [end_date_ymd] => 2025-01-29 04:18:04 [RateCDR] => 1 ) [2025-01-29 04:18:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 01:18:04' and `end` < '2025-01-29 04:18:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 04:18:18] Production.INFO: count ==230 [2025-01-29 04:18:18] Production.ERROR: pbx CDR StartTime 2025-01-29 01:18:04 - End Time 2025-01-29 04:18:04 [2025-01-29 04:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 04:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353823', 'tblTempUsageDetail_20' ) start [2025-01-29 04:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353823', 'tblTempUsageDetail_20' ) end [2025-01-29 04:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353823', 'tblTempVendorCDR_20' ) start [2025-01-29 04:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353823', 'tblTempVendorCDR_20' ) end [2025-01-29 04:18:18] Production.INFO: ProcessCDR(1,14353823,1,1,2) [2025-01-29 04:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14353823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 04:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14353823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 04:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14353823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 04:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14353823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 04:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353823', 'tblTempUsageDetail_20' ) start [2025-01-29 04:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353823', 'tblTempUsageDetail_20' ) end [2025-01-29 04:18:21] Production.ERROR: pbx prc_insertCDR start [2025-01-29 04:18:21] Production.ERROR: pbx prc_insertCDR end [2025-01-29 04:18:21] Production.INFO: ==18756== Releasing lock... [2025-01-29 04:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 04:18:21] Production.INFO: 29 MB #Memory Used# [2025-01-29 04:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 01:19:05 [end_date_ymd] => 2025-01-29 04:19:05 [RateCDR] => 1 ) [2025-01-29 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-01-29 01:19:05' and `end` < '2025-01-29 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-01-29 04:19:18] Production.INFO: count ==230 [2025-01-29 04:19:18] Production.ERROR: pbx CDR StartTime 2025-01-29 01:19:05 - End Time 2025-01-29 04:19:05 [2025-01-29 04:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 04:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353828', 'tblTempUsageDetail_20' ) start [2025-01-29 04:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353828', 'tblTempUsageDetail_20' ) end [2025-01-29 04:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353828', 'tblTempVendorCDR_20' ) start [2025-01-29 04:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353828', 'tblTempVendorCDR_20' ) end [2025-01-29 04:19:18] Production.INFO: ProcessCDR(1,14353828,1,1,2) [2025-01-29 04:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14353828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 04:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14353828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 04:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14353828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 04:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14353828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 04:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353828', 'tblTempUsageDetail_20' ) start [2025-01-29 04:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353828', 'tblTempUsageDetail_20' ) end [2025-01-29 04:19:21] Production.ERROR: pbx prc_insertCDR start [2025-01-29 04:19:21] Production.ERROR: pbx prc_insertCDR end [2025-01-29 04:19:21] Production.INFO: ==18830== Releasing lock... [2025-01-29 04:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 04:19:21] Production.INFO: 29 MB #Memory Used# [2025-01-29 04:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 01:20:06 [end_date_ymd] => 2025-01-29 04:20:06 [RateCDR] => 1 ) [2025-01-29 04:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 01:20:06' and `end` < '2025-01-29 04:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 04:20:19] Production.INFO: count ==224 [2025-01-29 04:20:19] Production.ERROR: pbx CDR StartTime 2025-01-29 01:20:06 - End Time 2025-01-29 04:20:06 [2025-01-29 04:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 04:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353834', 'tblTempUsageDetail_20' ) start [2025-01-29 04:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353834', 'tblTempUsageDetail_20' ) end [2025-01-29 04:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353834', 'tblTempVendorCDR_20' ) start [2025-01-29 04:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353834', 'tblTempVendorCDR_20' ) end [2025-01-29 04:20:19] Production.INFO: ProcessCDR(1,14353834,1,1,2) [2025-01-29 04:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14353834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 04:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14353834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 04:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14353834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 04:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14353834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 04:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353834', 'tblTempUsageDetail_20' ) start [2025-01-29 04:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353834', 'tblTempUsageDetail_20' ) end [2025-01-29 04:20:22] Production.ERROR: pbx prc_insertCDR start [2025-01-29 04:20:22] Production.ERROR: pbx prc_insertCDR end [2025-01-29 04:20:22] Production.INFO: ==18945== Releasing lock... [2025-01-29 04:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 04:20:22] Production.INFO: 29 MB #Memory Used# [2025-01-29 04:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 01:21:05 [end_date_ymd] => 2025-01-29 04:21:05 [RateCDR] => 1 ) [2025-01-29 04:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 01:21:05' and `end` < '2025-01-29 04:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 04:21:18] Production.INFO: count ==211 [2025-01-29 04:21:18] Production.ERROR: pbx CDR StartTime 2025-01-29 01:21:05 - End Time 2025-01-29 04:21:05 [2025-01-29 04:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 04:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353839', 'tblTempUsageDetail_20' ) start [2025-01-29 04:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353839', 'tblTempUsageDetail_20' ) end [2025-01-29 04:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353839', 'tblTempVendorCDR_20' ) start [2025-01-29 04:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353839', 'tblTempVendorCDR_20' ) end [2025-01-29 04:21:18] Production.INFO: ProcessCDR(1,14353839,1,1,2) [2025-01-29 04:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14353839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 04:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14353839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 04:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14353839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 04:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14353839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 04:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353839', 'tblTempUsageDetail_20' ) start [2025-01-29 04:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353839', 'tblTempUsageDetail_20' ) end [2025-01-29 04:21:21] Production.ERROR: pbx prc_insertCDR start [2025-01-29 04:21:21] Production.ERROR: pbx prc_insertCDR end [2025-01-29 04:21:21] Production.INFO: ==19022== Releasing lock... [2025-01-29 04:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 04:21:21] Production.INFO: 29 MB #Memory Used# [2025-01-29 04:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 01:22:05 [end_date_ymd] => 2025-01-29 04:22:05 [RateCDR] => 1 ) [2025-01-29 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-01-29 01:22:05' and `end` < '2025-01-29 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-01-29 04:22:18] Production.INFO: count ==210 [2025-01-29 04:22:18] Production.ERROR: pbx CDR StartTime 2025-01-29 01:22:05 - End Time 2025-01-29 04:22:05 [2025-01-29 04:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 04:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353844', 'tblTempUsageDetail_20' ) start [2025-01-29 04:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353844', 'tblTempUsageDetail_20' ) end [2025-01-29 04:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353844', 'tblTempVendorCDR_20' ) start [2025-01-29 04:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353844', 'tblTempVendorCDR_20' ) end [2025-01-29 04:22:18] Production.INFO: ProcessCDR(1,14353844,1,1,2) [2025-01-29 04:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14353844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 04:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14353844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 04:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14353844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 04:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14353844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 04:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353844', 'tblTempUsageDetail_20' ) start [2025-01-29 04:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353844', 'tblTempUsageDetail_20' ) end [2025-01-29 04:22:21] Production.ERROR: pbx prc_insertCDR start [2025-01-29 04:22:21] Production.ERROR: pbx prc_insertCDR end [2025-01-29 04:22:21] Production.INFO: ==19102== Releasing lock... [2025-01-29 04:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 04:22:21] Production.INFO: 29 MB #Memory Used# [2025-01-29 04:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 01:23:05 [end_date_ymd] => 2025-01-29 04:23:05 [RateCDR] => 1 ) [2025-01-29 04:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 01:23:05' and `end` < '2025-01-29 04:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 04:23:18] Production.INFO: count ==210 [2025-01-29 04:23:18] Production.ERROR: pbx CDR StartTime 2025-01-29 01:23:05 - End Time 2025-01-29 04:23:05 [2025-01-29 04:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 04:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353849', 'tblTempUsageDetail_20' ) start [2025-01-29 04:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353849', 'tblTempUsageDetail_20' ) end [2025-01-29 04:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353849', 'tblTempVendorCDR_20' ) start [2025-01-29 04:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353849', 'tblTempVendorCDR_20' ) end [2025-01-29 04:23:18] Production.INFO: ProcessCDR(1,14353849,1,1,2) [2025-01-29 04:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14353849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 04:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14353849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 04:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14353849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 04:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14353849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 04:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353849', 'tblTempUsageDetail_20' ) start [2025-01-29 04:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353849', 'tblTempUsageDetail_20' ) end [2025-01-29 04:23:21] Production.ERROR: pbx prc_insertCDR start [2025-01-29 04:23:21] Production.ERROR: pbx prc_insertCDR end [2025-01-29 04:23:21] Production.INFO: ==19173== Releasing lock... [2025-01-29 04:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 04:23:21] Production.INFO: 29 MB #Memory Used# [2025-01-29 04:24:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 01:24:04 [end_date_ymd] => 2025-01-29 04:24:04 [RateCDR] => 1 ) [2025-01-29 04:24:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 01:24:04' and `end` < '2025-01-29 04:24:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 04:24:18] Production.INFO: count ==210 [2025-01-29 04:24:18] Production.ERROR: pbx CDR StartTime 2025-01-29 01:24:04 - End Time 2025-01-29 04:24:04 [2025-01-29 04:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 04:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353851', 'tblTempUsageDetail_20' ) start [2025-01-29 04:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353851', 'tblTempUsageDetail_20' ) end [2025-01-29 04:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353851', 'tblTempVendorCDR_20' ) start [2025-01-29 04:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353851', 'tblTempVendorCDR_20' ) end [2025-01-29 04:24:18] Production.INFO: ProcessCDR(1,14353851,1,1,2) [2025-01-29 04:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14353851,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 04:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14353851,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 04:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14353851,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 04:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14353851,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 04:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353851', 'tblTempUsageDetail_20' ) start [2025-01-29 04:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353851', 'tblTempUsageDetail_20' ) end [2025-01-29 04:24:21] Production.ERROR: pbx prc_insertCDR start [2025-01-29 04:24:21] Production.ERROR: pbx prc_insertCDR end [2025-01-29 04:24:21] Production.INFO: ==19242== Releasing lock... [2025-01-29 04:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 04:24:21] Production.INFO: 29 MB #Memory Used# [2025-01-29 04:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 01:25:05 [end_date_ymd] => 2025-01-29 04:25:05 [RateCDR] => 1 ) [2025-01-29 04:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 01:25:05' and `end` < '2025-01-29 04:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 04:25:18] Production.INFO: count ==210 [2025-01-29 04:25:18] Production.ERROR: pbx CDR StartTime 2025-01-29 01:25:05 - End Time 2025-01-29 04:25:05 [2025-01-29 04:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353859', 'tblTempUsageDetail_20' ) start [2025-01-29 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353859', 'tblTempUsageDetail_20' ) end [2025-01-29 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353859', 'tblTempVendorCDR_20' ) start [2025-01-29 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353859', 'tblTempVendorCDR_20' ) end [2025-01-29 04:25:18] Production.INFO: ProcessCDR(1,14353859,1,1,2) [2025-01-29 04:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14353859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 04:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14353859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 04:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14353859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 04:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14353859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 04:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353859', 'tblTempUsageDetail_20' ) start [2025-01-29 04:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353859', 'tblTempUsageDetail_20' ) end [2025-01-29 04:25:21] Production.ERROR: pbx prc_insertCDR start [2025-01-29 04:25:21] Production.ERROR: pbx prc_insertCDR end [2025-01-29 04:25:21] Production.INFO: ==19314== Releasing lock... [2025-01-29 04:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 04:25:21] Production.INFO: 29 MB #Memory Used# [2025-01-29 04:26:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 01:26:04 [end_date_ymd] => 2025-01-29 04:26:04 [RateCDR] => 1 ) [2025-01-29 04:26:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 01:26:04' and `end` < '2025-01-29 04:26:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 04:26:17] Production.INFO: count ==210 [2025-01-29 04:26:17] Production.ERROR: pbx CDR StartTime 2025-01-29 01:26:04 - End Time 2025-01-29 04:26:04 [2025-01-29 04:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 04:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353864', 'tblTempUsageDetail_20' ) start [2025-01-29 04:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353864', 'tblTempUsageDetail_20' ) end [2025-01-29 04:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353864', 'tblTempVendorCDR_20' ) start [2025-01-29 04:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353864', 'tblTempVendorCDR_20' ) end [2025-01-29 04:26:17] Production.INFO: ProcessCDR(1,14353864,1,1,2) [2025-01-29 04:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14353864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 04:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14353864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 04:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14353864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 04:26:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14353864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 04:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353864', 'tblTempUsageDetail_20' ) start [2025-01-29 04:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353864', 'tblTempUsageDetail_20' ) end [2025-01-29 04:26:20] Production.ERROR: pbx prc_insertCDR start [2025-01-29 04:26:20] Production.ERROR: pbx prc_insertCDR end [2025-01-29 04:26:20] Production.INFO: ==19385== Releasing lock... [2025-01-29 04:26:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 04:26:20] Production.INFO: 29 MB #Memory Used# [2025-01-29 04:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 01:27:05 [end_date_ymd] => 2025-01-29 04:27:05 [RateCDR] => 1 ) [2025-01-29 04:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 01:27:05' and `end` < '2025-01-29 04:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 04:27:19] Production.INFO: count ==210 [2025-01-29 04:27:19] Production.ERROR: pbx CDR StartTime 2025-01-29 01:27:05 - End Time 2025-01-29 04:27:05 [2025-01-29 04:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 04:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353869', 'tblTempUsageDetail_20' ) start [2025-01-29 04:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353869', 'tblTempUsageDetail_20' ) end [2025-01-29 04:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353869', 'tblTempVendorCDR_20' ) start [2025-01-29 04:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353869', 'tblTempVendorCDR_20' ) end [2025-01-29 04:27:19] Production.INFO: ProcessCDR(1,14353869,1,1,2) [2025-01-29 04:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14353869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 04:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14353869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 04:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14353869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 04:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14353869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 04:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353869', 'tblTempUsageDetail_20' ) start [2025-01-29 04:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353869', 'tblTempUsageDetail_20' ) end [2025-01-29 04:27:22] Production.ERROR: pbx prc_insertCDR start [2025-01-29 04:27:22] Production.ERROR: pbx prc_insertCDR end [2025-01-29 04:27:22] Production.INFO: ==19456== Releasing lock... [2025-01-29 04:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 04:27:22] Production.INFO: 29 MB #Memory Used# [2025-01-29 04:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 01:28:05 [end_date_ymd] => 2025-01-29 04:28:05 [RateCDR] => 1 ) [2025-01-29 04:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 01:28:05' and `end` < '2025-01-29 04:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 04:28:18] Production.INFO: count ==210 [2025-01-29 04:28:18] Production.ERROR: pbx CDR StartTime 2025-01-29 01:28:05 - End Time 2025-01-29 04:28:05 [2025-01-29 04:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 04:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353874', 'tblTempUsageDetail_20' ) start [2025-01-29 04:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353874', 'tblTempUsageDetail_20' ) end [2025-01-29 04:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353874', 'tblTempVendorCDR_20' ) start [2025-01-29 04:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353874', 'tblTempVendorCDR_20' ) end [2025-01-29 04:28:18] Production.INFO: ProcessCDR(1,14353874,1,1,2) [2025-01-29 04:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14353874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 04:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14353874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 04:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14353874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 04:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14353874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 04:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353874', 'tblTempUsageDetail_20' ) start [2025-01-29 04:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353874', 'tblTempUsageDetail_20' ) end [2025-01-29 04:28:21] Production.ERROR: pbx prc_insertCDR start [2025-01-29 04:28:21] Production.ERROR: pbx prc_insertCDR end [2025-01-29 04:28:21] Production.INFO: ==19529== Releasing lock... [2025-01-29 04:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 04:28:21] Production.INFO: 29 MB #Memory Used# [2025-01-29 04:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 01:29:05 [end_date_ymd] => 2025-01-29 04:29:05 [RateCDR] => 1 ) [2025-01-29 04:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 01:29:05' and `end` < '2025-01-29 04:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 04:29:18] Production.INFO: count ==211 [2025-01-29 04:29:18] Production.ERROR: pbx CDR StartTime 2025-01-29 01:29:05 - End Time 2025-01-29 04:29:05 [2025-01-29 04:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 04:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353879', 'tblTempUsageDetail_20' ) start [2025-01-29 04:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353879', 'tblTempUsageDetail_20' ) end [2025-01-29 04:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353879', 'tblTempVendorCDR_20' ) start [2025-01-29 04:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353879', 'tblTempVendorCDR_20' ) end [2025-01-29 04:29:18] Production.INFO: ProcessCDR(1,14353879,1,1,2) [2025-01-29 04:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14353879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 04:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14353879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 04:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14353879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 04:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14353879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 04:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353879', 'tblTempUsageDetail_20' ) start [2025-01-29 04:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353879', 'tblTempUsageDetail_20' ) end [2025-01-29 04:29:22] Production.ERROR: pbx prc_insertCDR start [2025-01-29 04:29:22] Production.ERROR: pbx prc_insertCDR end [2025-01-29 04:29:22] Production.INFO: ==19601== Releasing lock... [2025-01-29 04:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 04:29:22] Production.INFO: 29 MB #Memory Used# [2025-01-29 04:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 01:30:06 [end_date_ymd] => 2025-01-29 04:30:06 [RateCDR] => 1 ) [2025-01-29 04:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 01:30:06' and `end` < '2025-01-29 04:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 04:30:19] Production.INFO: count ==206 [2025-01-29 04:30:19] Production.ERROR: pbx CDR StartTime 2025-01-29 01:30:06 - End Time 2025-01-29 04:30:06 [2025-01-29 04:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 04:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353885', 'tblTempUsageDetail_20' ) start [2025-01-29 04:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353885', 'tblTempUsageDetail_20' ) end [2025-01-29 04:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353885', 'tblTempVendorCDR_20' ) start [2025-01-29 04:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353885', 'tblTempVendorCDR_20' ) end [2025-01-29 04:30:19] Production.INFO: ProcessCDR(1,14353885,1,1,2) [2025-01-29 04:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14353885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 04:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14353885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 04:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14353885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 04:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14353885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 04:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353885', 'tblTempUsageDetail_20' ) start [2025-01-29 04:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353885', 'tblTempUsageDetail_20' ) end [2025-01-29 04:30:22] Production.ERROR: pbx prc_insertCDR start [2025-01-29 04:30:22] Production.ERROR: pbx prc_insertCDR end [2025-01-29 04:30:22] Production.INFO: ==19680== Releasing lock... [2025-01-29 04:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 04:30:22] Production.INFO: 29 MB #Memory Used# [2025-01-29 04:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 01:31:05 [end_date_ymd] => 2025-01-29 04:31:05 [RateCDR] => 1 ) [2025-01-29 04:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 01:31:05' and `end` < '2025-01-29 04:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 04:31:18] Production.INFO: count ==196 [2025-01-29 04:31:18] Production.ERROR: pbx CDR StartTime 2025-01-29 01:31:05 - End Time 2025-01-29 04:31:05 [2025-01-29 04:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 04:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353891', 'tblTempUsageDetail_20' ) start [2025-01-29 04:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353891', 'tblTempUsageDetail_20' ) end [2025-01-29 04:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353891', 'tblTempVendorCDR_20' ) start [2025-01-29 04:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353891', 'tblTempVendorCDR_20' ) end [2025-01-29 04:31:18] Production.INFO: ProcessCDR(1,14353891,1,1,2) [2025-01-29 04:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14353891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 04:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14353891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 04:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14353891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 04:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14353891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 04:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353891', 'tblTempUsageDetail_20' ) start [2025-01-29 04:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353891', 'tblTempUsageDetail_20' ) end [2025-01-29 04:31:21] Production.ERROR: pbx prc_insertCDR start [2025-01-29 04:31:21] Production.ERROR: pbx prc_insertCDR end [2025-01-29 04:31:21] Production.INFO: ==19754== Releasing lock... [2025-01-29 04:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 04:31:21] Production.INFO: 29 MB #Memory Used# [2025-01-29 04:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 01:32:05 [end_date_ymd] => 2025-01-29 04:32:05 [RateCDR] => 1 ) [2025-01-29 04:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 01:32:05' and `end` < '2025-01-29 04:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 04:32:18] Production.INFO: count ==195 [2025-01-29 04:32:18] Production.ERROR: pbx CDR StartTime 2025-01-29 01:32:05 - End Time 2025-01-29 04:32:05 [2025-01-29 04:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 04:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353896', 'tblTempUsageDetail_20' ) start [2025-01-29 04:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353896', 'tblTempUsageDetail_20' ) end [2025-01-29 04:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353896', 'tblTempVendorCDR_20' ) start [2025-01-29 04:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353896', 'tblTempVendorCDR_20' ) end [2025-01-29 04:32:18] Production.INFO: ProcessCDR(1,14353896,1,1,2) [2025-01-29 04:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14353896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 04:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14353896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 04:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14353896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 04:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14353896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 04:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353896', 'tblTempUsageDetail_20' ) start [2025-01-29 04:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353896', 'tblTempUsageDetail_20' ) end [2025-01-29 04:32:21] Production.ERROR: pbx prc_insertCDR start [2025-01-29 04:32:21] Production.ERROR: pbx prc_insertCDR end [2025-01-29 04:32:21] Production.INFO: ==19876== Releasing lock... [2025-01-29 04:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 04:32:21] Production.INFO: 29 MB #Memory Used# [2025-01-29 04:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 01:33:05 [end_date_ymd] => 2025-01-29 04:33:05 [RateCDR] => 1 ) [2025-01-29 04:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 01:33:05' and `end` < '2025-01-29 04:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 04:33:17] Production.INFO: count ==195 [2025-01-29 04:33:17] Production.ERROR: pbx CDR StartTime 2025-01-29 01:33:05 - End Time 2025-01-29 04:33:05 [2025-01-29 04:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 04:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353901', 'tblTempUsageDetail_20' ) start [2025-01-29 04:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353901', 'tblTempUsageDetail_20' ) end [2025-01-29 04:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353901', 'tblTempVendorCDR_20' ) start [2025-01-29 04:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353901', 'tblTempVendorCDR_20' ) end [2025-01-29 04:33:18] Production.INFO: ProcessCDR(1,14353901,1,1,2) [2025-01-29 04:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14353901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 04:33:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14353901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 04:33:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14353901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 04:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14353901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 04:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353901', 'tblTempUsageDetail_20' ) start [2025-01-29 04:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353901', 'tblTempUsageDetail_20' ) end [2025-01-29 04:33:21] Production.ERROR: pbx prc_insertCDR start [2025-01-29 04:33:21] Production.ERROR: pbx prc_insertCDR end [2025-01-29 04:33:21] Production.INFO: ==19948== Releasing lock... [2025-01-29 04:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 04:33:21] Production.INFO: 29 MB #Memory Used# [2025-01-29 04:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 01:34:05 [end_date_ymd] => 2025-01-29 04:34:05 [RateCDR] => 1 ) [2025-01-29 04:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 01:34:05' and `end` < '2025-01-29 04:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 04:34:18] Production.INFO: count ==194 [2025-01-29 04:34:18] Production.ERROR: pbx CDR StartTime 2025-01-29 01:34:05 - End Time 2025-01-29 04:34:05 [2025-01-29 04:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 04:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353906', 'tblTempUsageDetail_20' ) start [2025-01-29 04:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353906', 'tblTempUsageDetail_20' ) end [2025-01-29 04:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353906', 'tblTempVendorCDR_20' ) start [2025-01-29 04:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353906', 'tblTempVendorCDR_20' ) end [2025-01-29 04:34:18] Production.INFO: ProcessCDR(1,14353906,1,1,2) [2025-01-29 04:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14353906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 04:34:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14353906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 04:34:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14353906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 04:34:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14353906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 04:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353906', 'tblTempUsageDetail_20' ) start [2025-01-29 04:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353906', 'tblTempUsageDetail_20' ) end [2025-01-29 04:34:20] Production.ERROR: pbx prc_insertCDR start [2025-01-29 04:34:21] Production.ERROR: pbx prc_insertCDR end [2025-01-29 04:34:21] Production.INFO: ==20021== Releasing lock... [2025-01-29 04:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 04:34:21] Production.INFO: 29 MB #Memory Used# [2025-01-29 04:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 01:35:05 [end_date_ymd] => 2025-01-29 04:35:05 [RateCDR] => 1 ) [2025-01-29 04:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 01:35:05' and `end` < '2025-01-29 04:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 04:35:18] Production.INFO: count ==194 [2025-01-29 04:35:18] Production.ERROR: pbx CDR StartTime 2025-01-29 01:35:05 - End Time 2025-01-29 04:35:05 [2025-01-29 04:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 04:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353911', 'tblTempUsageDetail_20' ) start [2025-01-29 04:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353911', 'tblTempUsageDetail_20' ) end [2025-01-29 04:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353911', 'tblTempVendorCDR_20' ) start [2025-01-29 04:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353911', 'tblTempVendorCDR_20' ) end [2025-01-29 04:35:18] Production.INFO: ProcessCDR(1,14353911,1,1,2) [2025-01-29 04:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14353911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 04:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14353911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 04:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14353911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 04:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14353911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 04:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353911', 'tblTempUsageDetail_20' ) start [2025-01-29 04:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353911', 'tblTempUsageDetail_20' ) end [2025-01-29 04:35:21] Production.ERROR: pbx prc_insertCDR start [2025-01-29 04:35:21] Production.ERROR: pbx prc_insertCDR end [2025-01-29 04:35:21] Production.INFO: ==20092== Releasing lock... [2025-01-29 04:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 04:35:21] Production.INFO: 29 MB #Memory Used# [2025-01-29 04:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 01:36:05 [end_date_ymd] => 2025-01-29 04:36:05 [RateCDR] => 1 ) [2025-01-29 04:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 01:36:05' and `end` < '2025-01-29 04:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 04:36:18] Production.INFO: count ==194 [2025-01-29 04:36:18] Production.ERROR: pbx CDR StartTime 2025-01-29 01:36:05 - End Time 2025-01-29 04:36:05 [2025-01-29 04:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 04:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353916', 'tblTempUsageDetail_20' ) start [2025-01-29 04:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353916', 'tblTempUsageDetail_20' ) end [2025-01-29 04:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353916', 'tblTempVendorCDR_20' ) start [2025-01-29 04:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353916', 'tblTempVendorCDR_20' ) end [2025-01-29 04:36:18] Production.INFO: ProcessCDR(1,14353916,1,1,2) [2025-01-29 04:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14353916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 04:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14353916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 04:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14353916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 04:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14353916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 04:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353916', 'tblTempUsageDetail_20' ) start [2025-01-29 04:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353916', 'tblTempUsageDetail_20' ) end [2025-01-29 04:36:21] Production.ERROR: pbx prc_insertCDR start [2025-01-29 04:36:21] Production.ERROR: pbx prc_insertCDR end [2025-01-29 04:36:21] Production.INFO: ==20203== Releasing lock... [2025-01-29 04:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 04:36:21] Production.INFO: 29 MB #Memory Used# [2025-01-29 04:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 01:37:06 [end_date_ymd] => 2025-01-29 04:37:06 [RateCDR] => 1 ) [2025-01-29 04:37:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 01:37:06' and `end` < '2025-01-29 04:37:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 04:37:19] Production.INFO: count ==194 [2025-01-29 04:37:19] Production.ERROR: pbx CDR StartTime 2025-01-29 01:37:06 - End Time 2025-01-29 04:37:06 [2025-01-29 04:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 04:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353921', 'tblTempUsageDetail_20' ) start [2025-01-29 04:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353921', 'tblTempUsageDetail_20' ) end [2025-01-29 04:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353921', 'tblTempVendorCDR_20' ) start [2025-01-29 04:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353921', 'tblTempVendorCDR_20' ) end [2025-01-29 04:37:19] Production.INFO: ProcessCDR(1,14353921,1,1,2) [2025-01-29 04:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14353921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 04:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14353921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 04:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14353921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 04:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14353921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 04:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353921', 'tblTempUsageDetail_20' ) start [2025-01-29 04:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353921', 'tblTempUsageDetail_20' ) end [2025-01-29 04:37:22] Production.ERROR: pbx prc_insertCDR start [2025-01-29 04:37:22] Production.ERROR: pbx prc_insertCDR end [2025-01-29 04:37:22] Production.INFO: ==20279== Releasing lock... [2025-01-29 04:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 04:37:22] Production.INFO: 29 MB #Memory Used# [2025-01-29 04:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 01:38:05 [end_date_ymd] => 2025-01-29 04:38:05 [RateCDR] => 1 ) [2025-01-29 04:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 01:38:05' and `end` < '2025-01-29 04:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 04:38:17] Production.INFO: count ==194 [2025-01-29 04:38:17] Production.ERROR: pbx CDR StartTime 2025-01-29 01:38:05 - End Time 2025-01-29 04:38:05 [2025-01-29 04:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 04:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353926', 'tblTempUsageDetail_20' ) start [2025-01-29 04:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353926', 'tblTempUsageDetail_20' ) end [2025-01-29 04:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353926', 'tblTempVendorCDR_20' ) start [2025-01-29 04:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353926', 'tblTempVendorCDR_20' ) end [2025-01-29 04:38:17] Production.INFO: ProcessCDR(1,14353926,1,1,2) [2025-01-29 04:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14353926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 04:38:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14353926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 04:38:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14353926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 04:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14353926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 04:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353926', 'tblTempUsageDetail_20' ) start [2025-01-29 04:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353926', 'tblTempUsageDetail_20' ) end [2025-01-29 04:38:21] Production.ERROR: pbx prc_insertCDR start [2025-01-29 04:38:21] Production.ERROR: pbx prc_insertCDR end [2025-01-29 04:38:21] Production.INFO: ==20349== Releasing lock... [2025-01-29 04:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 04:38:21] Production.INFO: 29 MB #Memory Used# [2025-01-29 04:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 01:39:05 [end_date_ymd] => 2025-01-29 04:39:05 [RateCDR] => 1 ) [2025-01-29 04:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 01:39:05' and `end` < '2025-01-29 04:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 04:39:18] Production.INFO: count ==194 [2025-01-29 04:39:18] Production.ERROR: pbx CDR StartTime 2025-01-29 01:39:05 - End Time 2025-01-29 04:39:05 [2025-01-29 04:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 04:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353930', 'tblTempUsageDetail_20' ) start [2025-01-29 04:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353930', 'tblTempUsageDetail_20' ) end [2025-01-29 04:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353930', 'tblTempVendorCDR_20' ) start [2025-01-29 04:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353930', 'tblTempVendorCDR_20' ) end [2025-01-29 04:39:18] Production.INFO: ProcessCDR(1,14353930,1,1,2) [2025-01-29 04:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14353930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 04:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14353930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 04:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14353930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 04:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14353930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 04:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353930', 'tblTempUsageDetail_20' ) start [2025-01-29 04:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353930', 'tblTempUsageDetail_20' ) end [2025-01-29 04:39:21] Production.ERROR: pbx prc_insertCDR start [2025-01-29 04:39:21] Production.ERROR: pbx prc_insertCDR end [2025-01-29 04:39:21] Production.INFO: ==20422== Releasing lock... [2025-01-29 04:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 04:39:21] Production.INFO: 29 MB #Memory Used# [2025-01-29 04:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 01:40:06 [end_date_ymd] => 2025-01-29 04:40:06 [RateCDR] => 1 ) [2025-01-29 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-01-29 01:40:06' and `end` < '2025-01-29 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-01-29 04:40:18] Production.INFO: count ==194 [2025-01-29 04:40:18] Production.ERROR: pbx CDR StartTime 2025-01-29 01:40:06 - End Time 2025-01-29 04:40:06 [2025-01-29 04:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 04:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353937', 'tblTempUsageDetail_20' ) start [2025-01-29 04:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353937', 'tblTempUsageDetail_20' ) end [2025-01-29 04:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353937', 'tblTempVendorCDR_20' ) start [2025-01-29 04:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353937', 'tblTempVendorCDR_20' ) end [2025-01-29 04:40:18] Production.INFO: ProcessCDR(1,14353937,1,1,2) [2025-01-29 04:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14353937,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 04:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14353937,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 04:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14353937,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 04:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14353937,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 04:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353937', 'tblTempUsageDetail_20' ) start [2025-01-29 04:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353937', 'tblTempUsageDetail_20' ) end [2025-01-29 04:40:22] Production.ERROR: pbx prc_insertCDR start [2025-01-29 04:40:22] Production.ERROR: pbx prc_insertCDR end [2025-01-29 04:40:22] Production.INFO: ==20495== Releasing lock... [2025-01-29 04:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 04:40:22] Production.INFO: 29 MB #Memory Used# [2025-01-29 04:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 01:41:05 [end_date_ymd] => 2025-01-29 04:41:05 [RateCDR] => 1 ) [2025-01-29 04:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 01:41:05' and `end` < '2025-01-29 04:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 04:41:17] Production.INFO: count ==194 [2025-01-29 04:41:17] Production.ERROR: pbx CDR StartTime 2025-01-29 01:41:05 - End Time 2025-01-29 04:41:05 [2025-01-29 04:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 04:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353942', 'tblTempUsageDetail_20' ) start [2025-01-29 04:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353942', 'tblTempUsageDetail_20' ) end [2025-01-29 04:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353942', 'tblTempVendorCDR_20' ) start [2025-01-29 04:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353942', 'tblTempVendorCDR_20' ) end [2025-01-29 04:41:17] Production.INFO: ProcessCDR(1,14353942,1,1,2) [2025-01-29 04:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14353942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 04:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14353942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 04:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14353942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 04:41:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14353942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 04:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353942', 'tblTempUsageDetail_20' ) start [2025-01-29 04:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353942', 'tblTempUsageDetail_20' ) end [2025-01-29 04:41:20] Production.ERROR: pbx prc_insertCDR start [2025-01-29 04:41:20] Production.ERROR: pbx prc_insertCDR end [2025-01-29 04:41:20] Production.INFO: ==20571== Releasing lock... [2025-01-29 04:41:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 04:41:20] Production.INFO: 29 MB #Memory Used# [2025-01-29 04:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 01:42:05 [end_date_ymd] => 2025-01-29 04:42:05 [RateCDR] => 1 ) [2025-01-29 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-01-29 01:42:05' and `end` < '2025-01-29 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-01-29 04:42:19] Production.INFO: count ==194 [2025-01-29 04:42:19] Production.ERROR: pbx CDR StartTime 2025-01-29 01:42:05 - End Time 2025-01-29 04:42:05 [2025-01-29 04:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 04:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353947', 'tblTempUsageDetail_20' ) start [2025-01-29 04:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353947', 'tblTempUsageDetail_20' ) end [2025-01-29 04:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353947', 'tblTempVendorCDR_20' ) start [2025-01-29 04:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353947', 'tblTempVendorCDR_20' ) end [2025-01-29 04:42:19] Production.INFO: ProcessCDR(1,14353947,1,1,2) [2025-01-29 04:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14353947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 04:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14353947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 04:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14353947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 04:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14353947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 04:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353947', 'tblTempUsageDetail_20' ) start [2025-01-29 04:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353947', 'tblTempUsageDetail_20' ) end [2025-01-29 04:42:22] Production.ERROR: pbx prc_insertCDR start [2025-01-29 04:42:22] Production.ERROR: pbx prc_insertCDR end [2025-01-29 04:42:22] Production.INFO: ==20642== Releasing lock... [2025-01-29 04:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 04:42:22] Production.INFO: 29 MB #Memory Used# [2025-01-29 04:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 01:43:06 [end_date_ymd] => 2025-01-29 04:43:06 [RateCDR] => 1 ) [2025-01-29 04:43:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 01:43:06' and `end` < '2025-01-29 04:43:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 04:43:18] Production.INFO: count ==194 [2025-01-29 04:43:18] Production.ERROR: pbx CDR StartTime 2025-01-29 01:43:06 - End Time 2025-01-29 04:43:06 [2025-01-29 04:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 04:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353952', 'tblTempUsageDetail_20' ) start [2025-01-29 04:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353952', 'tblTempUsageDetail_20' ) end [2025-01-29 04:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353952', 'tblTempVendorCDR_20' ) start [2025-01-29 04:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353952', 'tblTempVendorCDR_20' ) end [2025-01-29 04:43:18] Production.INFO: ProcessCDR(1,14353952,1,1,2) [2025-01-29 04:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14353952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 04:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14353952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 04:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14353952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 04:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14353952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 04:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353952', 'tblTempUsageDetail_20' ) start [2025-01-29 04:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353952', 'tblTempUsageDetail_20' ) end [2025-01-29 04:43:21] Production.ERROR: pbx prc_insertCDR start [2025-01-29 04:43:21] Production.ERROR: pbx prc_insertCDR end [2025-01-29 04:43:21] Production.INFO: ==20715== Releasing lock... [2025-01-29 04:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 04:43:21] Production.INFO: 29 MB #Memory Used# [2025-01-29 04:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 01:44:05 [end_date_ymd] => 2025-01-29 04:44:05 [RateCDR] => 1 ) [2025-01-29 04:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 01:44:05' and `end` < '2025-01-29 04:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 04:44:18] Production.INFO: count ==194 [2025-01-29 04:44:18] Production.ERROR: pbx CDR StartTime 2025-01-29 01:44:05 - End Time 2025-01-29 04:44:05 [2025-01-29 04:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 04:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353957', 'tblTempUsageDetail_20' ) start [2025-01-29 04:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353957', 'tblTempUsageDetail_20' ) end [2025-01-29 04:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353957', 'tblTempVendorCDR_20' ) start [2025-01-29 04:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353957', 'tblTempVendorCDR_20' ) end [2025-01-29 04:44:18] Production.INFO: ProcessCDR(1,14353957,1,1,2) [2025-01-29 04:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14353957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 04:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14353957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 04:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14353957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 04:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14353957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 04:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353957', 'tblTempUsageDetail_20' ) start [2025-01-29 04:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353957', 'tblTempUsageDetail_20' ) end [2025-01-29 04:44:21] Production.ERROR: pbx prc_insertCDR start [2025-01-29 04:44:21] Production.ERROR: pbx prc_insertCDR end [2025-01-29 04:44:21] Production.INFO: ==20786== Releasing lock... [2025-01-29 04:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 04:44:21] Production.INFO: 29 MB #Memory Used# [2025-01-29 04:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 01:45:06 [end_date_ymd] => 2025-01-29 04:45:06 [RateCDR] => 1 ) [2025-01-29 04:45:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 01:45:06' and `end` < '2025-01-29 04:45:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 04:45:19] Production.INFO: count ==194 [2025-01-29 04:45:19] Production.ERROR: pbx CDR StartTime 2025-01-29 01:45:06 - End Time 2025-01-29 04:45:06 [2025-01-29 04:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 04:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353962', 'tblTempUsageDetail_20' ) start [2025-01-29 04:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353962', 'tblTempUsageDetail_20' ) end [2025-01-29 04:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353962', 'tblTempVendorCDR_20' ) start [2025-01-29 04:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353962', 'tblTempVendorCDR_20' ) end [2025-01-29 04:45:19] Production.INFO: ProcessCDR(1,14353962,1,1,2) [2025-01-29 04:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14353962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 04:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14353962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 04:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14353962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 04:45:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14353962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 04:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353962', 'tblTempUsageDetail_20' ) start [2025-01-29 04:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353962', 'tblTempUsageDetail_20' ) end [2025-01-29 04:45:23] Production.ERROR: pbx prc_insertCDR start [2025-01-29 04:45:23] Production.ERROR: pbx prc_insertCDR end [2025-01-29 04:45:23] Production.INFO: ==20863== Releasing lock... [2025-01-29 04:45:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 04:45:23] Production.INFO: 29 MB #Memory Used# [2025-01-29 04:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 01:46:05 [end_date_ymd] => 2025-01-29 04:46:05 [RateCDR] => 1 ) [2025-01-29 04:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 01:46:05' and `end` < '2025-01-29 04:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 04:46:19] Production.INFO: count ==194 [2025-01-29 04:46:19] Production.ERROR: pbx CDR StartTime 2025-01-29 01:46:05 - End Time 2025-01-29 04:46:05 [2025-01-29 04:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 04:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353967', 'tblTempUsageDetail_20' ) start [2025-01-29 04:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353967', 'tblTempUsageDetail_20' ) end [2025-01-29 04:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353967', 'tblTempVendorCDR_20' ) start [2025-01-29 04:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353967', 'tblTempVendorCDR_20' ) end [2025-01-29 04:46:19] Production.INFO: ProcessCDR(1,14353967,1,1,2) [2025-01-29 04:46:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14353967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 04:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14353967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 04:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14353967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 04:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14353967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 04:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353967', 'tblTempUsageDetail_20' ) start [2025-01-29 04:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353967', 'tblTempUsageDetail_20' ) end [2025-01-29 04:46:22] Production.ERROR: pbx prc_insertCDR start [2025-01-29 04:46:22] Production.ERROR: pbx prc_insertCDR end [2025-01-29 04:46:22] Production.INFO: ==20934== Releasing lock... [2025-01-29 04:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 04:46:22] Production.INFO: 29 MB #Memory Used# [2025-01-29 04:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 01:47:06 [end_date_ymd] => 2025-01-29 04:47:06 [RateCDR] => 1 ) [2025-01-29 04:47:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 01:47:06' and `end` < '2025-01-29 04:47:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 04:47:19] Production.INFO: count ==192 [2025-01-29 04:47:19] Production.ERROR: pbx CDR StartTime 2025-01-29 01:47:06 - End Time 2025-01-29 04:47:06 [2025-01-29 04:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 04:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353972', 'tblTempUsageDetail_20' ) start [2025-01-29 04:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353972', 'tblTempUsageDetail_20' ) end [2025-01-29 04:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353972', 'tblTempVendorCDR_20' ) start [2025-01-29 04:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353972', 'tblTempVendorCDR_20' ) end [2025-01-29 04:47:19] Production.INFO: ProcessCDR(1,14353972,1,1,2) [2025-01-29 04:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14353972,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 04:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14353972,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 04:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14353972,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 04:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14353972,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 04:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353972', 'tblTempUsageDetail_20' ) start [2025-01-29 04:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353972', 'tblTempUsageDetail_20' ) end [2025-01-29 04:47:22] Production.ERROR: pbx prc_insertCDR start [2025-01-29 04:47:22] Production.ERROR: pbx prc_insertCDR end [2025-01-29 04:47:22] Production.INFO: ==21008== Releasing lock... [2025-01-29 04:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 04:47:22] Production.INFO: 28.75 MB #Memory Used# [2025-01-29 04:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 01:48:05 [end_date_ymd] => 2025-01-29 04:48:05 [RateCDR] => 1 ) [2025-01-29 04:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 01:48:05' and `end` < '2025-01-29 04:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 04:48:19] Production.INFO: count ==192 [2025-01-29 04:48:19] Production.ERROR: pbx CDR StartTime 2025-01-29 01:48:05 - End Time 2025-01-29 04:48:05 [2025-01-29 04:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 04:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353977', 'tblTempUsageDetail_20' ) start [2025-01-29 04:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353977', 'tblTempUsageDetail_20' ) end [2025-01-29 04:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353977', 'tblTempVendorCDR_20' ) start [2025-01-29 04:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353977', 'tblTempVendorCDR_20' ) end [2025-01-29 04:48:19] Production.INFO: ProcessCDR(1,14353977,1,1,2) [2025-01-29 04:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14353977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 04:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14353977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 04:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14353977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 04:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14353977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 04:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353977', 'tblTempUsageDetail_20' ) start [2025-01-29 04:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353977', 'tblTempUsageDetail_20' ) end [2025-01-29 04:48:22] Production.ERROR: pbx prc_insertCDR start [2025-01-29 04:48:22] Production.ERROR: pbx prc_insertCDR end [2025-01-29 04:48:22] Production.INFO: ==21078== Releasing lock... [2025-01-29 04:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 04:48:22] Production.INFO: 28.75 MB #Memory Used# [2025-01-29 04:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 01:49:06 [end_date_ymd] => 2025-01-29 04:49:06 [RateCDR] => 1 ) [2025-01-29 04:49:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 01:49:06' and `end` < '2025-01-29 04:49:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 04:49:21] Production.INFO: count ==192 [2025-01-29 04:49:21] Production.ERROR: pbx CDR StartTime 2025-01-29 01:49:06 - End Time 2025-01-29 04:49:06 [2025-01-29 04:49:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 04:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353982', 'tblTempUsageDetail_20' ) start [2025-01-29 04:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353982', 'tblTempUsageDetail_20' ) end [2025-01-29 04:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353982', 'tblTempVendorCDR_20' ) start [2025-01-29 04:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353982', 'tblTempVendorCDR_20' ) end [2025-01-29 04:49:21] Production.INFO: ProcessCDR(1,14353982,1,1,2) [2025-01-29 04:49:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14353982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 04:49:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14353982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 04:49:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14353982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 04:49:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14353982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 04:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353982', 'tblTempUsageDetail_20' ) start [2025-01-29 04:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353982', 'tblTempUsageDetail_20' ) end [2025-01-29 04:49:24] Production.ERROR: pbx prc_insertCDR start [2025-01-29 04:49:24] Production.ERROR: pbx prc_insertCDR end [2025-01-29 04:49:24] Production.INFO: ==21159== Releasing lock... [2025-01-29 04:49:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 04:49:24] Production.INFO: 28.75 MB #Memory Used# [2025-01-29 04:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 01:50:06 [end_date_ymd] => 2025-01-29 04:50:06 [RateCDR] => 1 ) [2025-01-29 04:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 01:50:06' and `end` < '2025-01-29 04:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 04:50:19] Production.INFO: count ==190 [2025-01-29 04:50:19] Production.ERROR: pbx CDR StartTime 2025-01-29 01:50:06 - End Time 2025-01-29 04:50:06 [2025-01-29 04:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 04:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353988', 'tblTempUsageDetail_20' ) start [2025-01-29 04:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353988', 'tblTempUsageDetail_20' ) end [2025-01-29 04:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353988', 'tblTempVendorCDR_20' ) start [2025-01-29 04:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353988', 'tblTempVendorCDR_20' ) end [2025-01-29 04:50:19] Production.INFO: ProcessCDR(1,14353988,1,1,2) [2025-01-29 04:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14353988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 04:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14353988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 04:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14353988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 04:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14353988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 04:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353988', 'tblTempUsageDetail_20' ) start [2025-01-29 04:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353988', 'tblTempUsageDetail_20' ) end [2025-01-29 04:50:22] Production.ERROR: pbx prc_insertCDR start [2025-01-29 04:50:22] Production.ERROR: pbx prc_insertCDR end [2025-01-29 04:50:22] Production.INFO: ==21233== Releasing lock... [2025-01-29 04:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 04:50:22] Production.INFO: 28.75 MB #Memory Used# [2025-01-29 04:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 01:51:05 [end_date_ymd] => 2025-01-29 04:51:05 [RateCDR] => 1 ) [2025-01-29 04:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 01:51:05' and `end` < '2025-01-29 04:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 04:51:19] Production.INFO: count ==190 [2025-01-29 04:51:19] Production.ERROR: pbx CDR StartTime 2025-01-29 01:51:05 - End Time 2025-01-29 04:51:05 [2025-01-29 04:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 04:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353993', 'tblTempUsageDetail_20' ) start [2025-01-29 04:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353993', 'tblTempUsageDetail_20' ) end [2025-01-29 04:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353993', 'tblTempVendorCDR_20' ) start [2025-01-29 04:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353993', 'tblTempVendorCDR_20' ) end [2025-01-29 04:51:19] Production.INFO: ProcessCDR(1,14353993,1,1,2) [2025-01-29 04:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14353993,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 04:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14353993,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 04:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14353993,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 04:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14353993,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 04:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353993', 'tblTempUsageDetail_20' ) start [2025-01-29 04:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353993', 'tblTempUsageDetail_20' ) end [2025-01-29 04:51:22] Production.ERROR: pbx prc_insertCDR start [2025-01-29 04:51:22] Production.ERROR: pbx prc_insertCDR end [2025-01-29 04:51:22] Production.INFO: ==21348== Releasing lock... [2025-01-29 04:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 04:51:22] Production.INFO: 28.75 MB #Memory Used# [2025-01-29 04:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 01:52:05 [end_date_ymd] => 2025-01-29 04:52:05 [RateCDR] => 1 ) [2025-01-29 04:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 01:52:05' and `end` < '2025-01-29 04:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 04:52:18] Production.INFO: count ==190 [2025-01-29 04:52:18] Production.ERROR: pbx CDR StartTime 2025-01-29 01:52:05 - End Time 2025-01-29 04:52:05 [2025-01-29 04:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 04:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353998', 'tblTempUsageDetail_20' ) start [2025-01-29 04:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14353998', 'tblTempUsageDetail_20' ) end [2025-01-29 04:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353998', 'tblTempVendorCDR_20' ) start [2025-01-29 04:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14353998', 'tblTempVendorCDR_20' ) end [2025-01-29 04:52:18] Production.INFO: ProcessCDR(1,14353998,1,1,2) [2025-01-29 04:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14353998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 04:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14353998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 04:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14353998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 04:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14353998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 04:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353998', 'tblTempUsageDetail_20' ) start [2025-01-29 04:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14353998', 'tblTempUsageDetail_20' ) end [2025-01-29 04:52:21] Production.ERROR: pbx prc_insertCDR start [2025-01-29 04:52:21] Production.ERROR: pbx prc_insertCDR end [2025-01-29 04:52:21] Production.INFO: ==21426== Releasing lock... [2025-01-29 04:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 04:52:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-29 04:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 01:53:05 [end_date_ymd] => 2025-01-29 04:53:05 [RateCDR] => 1 ) [2025-01-29 04:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 01:53:05' and `end` < '2025-01-29 04:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 04:53:18] Production.INFO: count ==190 [2025-01-29 04:53:18] Production.ERROR: pbx CDR StartTime 2025-01-29 01:53:05 - End Time 2025-01-29 04:53:05 [2025-01-29 04:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 04:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354003', 'tblTempUsageDetail_20' ) start [2025-01-29 04:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354003', 'tblTempUsageDetail_20' ) end [2025-01-29 04:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354003', 'tblTempVendorCDR_20' ) start [2025-01-29 04:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354003', 'tblTempVendorCDR_20' ) end [2025-01-29 04:53:18] Production.INFO: ProcessCDR(1,14354003,1,1,2) [2025-01-29 04:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14354003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 04:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14354003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 04:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14354003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 04:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14354003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 04:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354003', 'tblTempUsageDetail_20' ) start [2025-01-29 04:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354003', 'tblTempUsageDetail_20' ) end [2025-01-29 04:53:21] Production.ERROR: pbx prc_insertCDR start [2025-01-29 04:53:21] Production.ERROR: pbx prc_insertCDR end [2025-01-29 04:53:21] Production.INFO: ==21502== Releasing lock... [2025-01-29 04:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 04:53:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-29 04:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 01:54:05 [end_date_ymd] => 2025-01-29 04:54:05 [RateCDR] => 1 ) [2025-01-29 04:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 01:54:05' and `end` < '2025-01-29 04:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 04:54:19] Production.INFO: count ==190 [2025-01-29 04:54:19] Production.ERROR: pbx CDR StartTime 2025-01-29 01:54:05 - End Time 2025-01-29 04:54:05 [2025-01-29 04:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 04:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354008', 'tblTempUsageDetail_20' ) start [2025-01-29 04:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354008', 'tblTempUsageDetail_20' ) end [2025-01-29 04:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354008', 'tblTempVendorCDR_20' ) start [2025-01-29 04:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354008', 'tblTempVendorCDR_20' ) end [2025-01-29 04:54:20] Production.INFO: ProcessCDR(1,14354008,1,1,2) [2025-01-29 04:54:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14354008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 04:54:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14354008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 04:54:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14354008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 04:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14354008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 04:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354008', 'tblTempUsageDetail_20' ) start [2025-01-29 04:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354008', 'tblTempUsageDetail_20' ) end [2025-01-29 04:54:23] Production.ERROR: pbx prc_insertCDR start [2025-01-29 04:54:23] Production.ERROR: pbx prc_insertCDR end [2025-01-29 04:54:23] Production.INFO: ==21574== Releasing lock... [2025-01-29 04:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 04:54:23] Production.INFO: 28.75 MB #Memory Used# [2025-01-29 04:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 01:55:05 [end_date_ymd] => 2025-01-29 04:55:05 [RateCDR] => 1 ) [2025-01-29 04:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 01:55:05' and `end` < '2025-01-29 04:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 04:55:19] Production.INFO: count ==190 [2025-01-29 04:55:19] Production.ERROR: pbx CDR StartTime 2025-01-29 01:55:05 - End Time 2025-01-29 04:55:05 [2025-01-29 04:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 04:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354013', 'tblTempUsageDetail_20' ) start [2025-01-29 04:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354013', 'tblTempUsageDetail_20' ) end [2025-01-29 04:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354013', 'tblTempVendorCDR_20' ) start [2025-01-29 04:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354013', 'tblTempVendorCDR_20' ) end [2025-01-29 04:55:19] Production.INFO: ProcessCDR(1,14354013,1,1,2) [2025-01-29 04:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14354013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 04:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14354013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 04:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14354013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 04:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14354013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 04:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354013', 'tblTempUsageDetail_20' ) start [2025-01-29 04:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354013', 'tblTempUsageDetail_20' ) end [2025-01-29 04:55:22] Production.ERROR: pbx prc_insertCDR start [2025-01-29 04:55:22] Production.ERROR: pbx prc_insertCDR end [2025-01-29 04:55:22] Production.INFO: ==21645== Releasing lock... [2025-01-29 04:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 04:55:22] Production.INFO: 28.75 MB #Memory Used# [2025-01-29 04:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 01:56:05 [end_date_ymd] => 2025-01-29 04:56:05 [RateCDR] => 1 ) [2025-01-29 04:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 01:56:05' and `end` < '2025-01-29 04:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 04:56:18] Production.INFO: count ==190 [2025-01-29 04:56:18] Production.ERROR: pbx CDR StartTime 2025-01-29 01:56:05 - End Time 2025-01-29 04:56:05 [2025-01-29 04:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 04:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354018', 'tblTempUsageDetail_20' ) start [2025-01-29 04:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354018', 'tblTempUsageDetail_20' ) end [2025-01-29 04:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354018', 'tblTempVendorCDR_20' ) start [2025-01-29 04:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354018', 'tblTempVendorCDR_20' ) end [2025-01-29 04:56:18] Production.INFO: ProcessCDR(1,14354018,1,1,2) [2025-01-29 04:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14354018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 04:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14354018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 04:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14354018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 04:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14354018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 04:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354018', 'tblTempUsageDetail_20' ) start [2025-01-29 04:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354018', 'tblTempUsageDetail_20' ) end [2025-01-29 04:56:21] Production.ERROR: pbx prc_insertCDR start [2025-01-29 04:56:21] Production.ERROR: pbx prc_insertCDR end [2025-01-29 04:56:21] Production.INFO: ==21722== Releasing lock... [2025-01-29 04:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 04:56:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-29 04:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 01:57:05 [end_date_ymd] => 2025-01-29 04:57:05 [RateCDR] => 1 ) [2025-01-29 04:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 01:57:05' and `end` < '2025-01-29 04:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 04:57:19] Production.INFO: count ==187 [2025-01-29 04:57:19] Production.ERROR: pbx CDR StartTime 2025-01-29 01:57:05 - End Time 2025-01-29 04:57:05 [2025-01-29 04:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 04:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354023', 'tblTempUsageDetail_20' ) start [2025-01-29 04:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354023', 'tblTempUsageDetail_20' ) end [2025-01-29 04:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354023', 'tblTempVendorCDR_20' ) start [2025-01-29 04:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354023', 'tblTempVendorCDR_20' ) end [2025-01-29 04:57:19] Production.INFO: ProcessCDR(1,14354023,1,1,2) [2025-01-29 04:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14354023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 04:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14354023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 04:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14354023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 04:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14354023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 04:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354023', 'tblTempUsageDetail_20' ) start [2025-01-29 04:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354023', 'tblTempUsageDetail_20' ) end [2025-01-29 04:57:22] Production.ERROR: pbx prc_insertCDR start [2025-01-29 04:57:22] Production.ERROR: pbx prc_insertCDR end [2025-01-29 04:57:22] Production.INFO: ==21799== Releasing lock... [2025-01-29 04:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 04:57:22] Production.INFO: 28.75 MB #Memory Used# [2025-01-29 04:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 01:58:05 [end_date_ymd] => 2025-01-29 04:58:05 [RateCDR] => 1 ) [2025-01-29 04:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 01:58:05' and `end` < '2025-01-29 04:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 04:58:19] Production.INFO: count ==187 [2025-01-29 04:58:19] Production.ERROR: pbx CDR StartTime 2025-01-29 01:58:05 - End Time 2025-01-29 04:58:05 [2025-01-29 04:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 04:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354028', 'tblTempUsageDetail_20' ) start [2025-01-29 04:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354028', 'tblTempUsageDetail_20' ) end [2025-01-29 04:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354028', 'tblTempVendorCDR_20' ) start [2025-01-29 04:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354028', 'tblTempVendorCDR_20' ) end [2025-01-29 04:58:19] Production.INFO: ProcessCDR(1,14354028,1,1,2) [2025-01-29 04:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14354028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 04:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14354028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 04:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14354028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 04:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14354028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 04:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354028', 'tblTempUsageDetail_20' ) start [2025-01-29 04:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354028', 'tblTempUsageDetail_20' ) end [2025-01-29 04:58:22] Production.ERROR: pbx prc_insertCDR start [2025-01-29 04:58:22] Production.ERROR: pbx prc_insertCDR end [2025-01-29 04:58:22] Production.INFO: ==21884== Releasing lock... [2025-01-29 04:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 04:58:22] Production.INFO: 28.75 MB #Memory Used# [2025-01-29 04:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 01:59:05 [end_date_ymd] => 2025-01-29 04:59:05 [RateCDR] => 1 ) [2025-01-29 04:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 01:59:05' and `end` < '2025-01-29 04:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 04:59:19] Production.INFO: count ==185 [2025-01-29 04:59:19] Production.ERROR: pbx CDR StartTime 2025-01-29 01:59:05 - End Time 2025-01-29 04:59:05 [2025-01-29 04:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 04:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354033', 'tblTempUsageDetail_20' ) start [2025-01-29 04:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354033', 'tblTempUsageDetail_20' ) end [2025-01-29 04:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354033', 'tblTempVendorCDR_20' ) start [2025-01-29 04:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354033', 'tblTempVendorCDR_20' ) end [2025-01-29 04:59:19] Production.INFO: ProcessCDR(1,14354033,1,1,2) [2025-01-29 04:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14354033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 04:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14354033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 04:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14354033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 04:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14354033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 04:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354033', 'tblTempUsageDetail_20' ) start [2025-01-29 04:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354033', 'tblTempUsageDetail_20' ) end [2025-01-29 04:59:22] Production.ERROR: pbx prc_insertCDR start [2025-01-29 04:59:22] Production.ERROR: pbx prc_insertCDR end [2025-01-29 04:59:22] Production.INFO: ==21965== Releasing lock... [2025-01-29 04:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 04:59:22] Production.INFO: 28.75 MB #Memory Used# [2025-01-29 05:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 02:00:06 [end_date_ymd] => 2025-01-29 05:00:06 [RateCDR] => 1 ) [2025-01-29 05:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 02:00:06' and `end` < '2025-01-29 05:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 05:00:20] Production.INFO: count ==181 [2025-01-29 05:00:20] Production.ERROR: pbx CDR StartTime 2025-01-29 02:00:06 - End Time 2025-01-29 05:00:06 [2025-01-29 05:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 05:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354038', 'tblTempUsageDetail_20' ) start [2025-01-29 05:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354038', 'tblTempUsageDetail_20' ) end [2025-01-29 05:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354038', 'tblTempVendorCDR_20' ) start [2025-01-29 05:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354038', 'tblTempVendorCDR_20' ) end [2025-01-29 05:00:20] Production.INFO: ProcessCDR(1,14354038,1,1,2) [2025-01-29 05:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14354038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 05:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14354038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 05:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14354038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 05:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14354038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 05:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354038', 'tblTempUsageDetail_20' ) start [2025-01-29 05:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354038', 'tblTempUsageDetail_20' ) end [2025-01-29 05:00:23] Production.ERROR: pbx prc_insertCDR start [2025-01-29 05:00:23] Production.ERROR: pbx prc_insertCDR end [2025-01-29 05:00:23] Production.INFO: ==22051== Releasing lock... [2025-01-29 05:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 05:00:23] Production.INFO: 28.75 MB #Memory Used# [2025-01-29 05:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 02:01:05 [end_date_ymd] => 2025-01-29 05:01:05 [RateCDR] => 1 ) [2025-01-29 05:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 02:01:05' and `end` < '2025-01-29 05:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 05:01:18] Production.INFO: count ==180 [2025-01-29 05:01:18] Production.ERROR: pbx CDR StartTime 2025-01-29 02:01:05 - End Time 2025-01-29 05:01:05 [2025-01-29 05:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 05:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354044', 'tblTempUsageDetail_20' ) start [2025-01-29 05:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354044', 'tblTempUsageDetail_20' ) end [2025-01-29 05:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354044', 'tblTempVendorCDR_20' ) start [2025-01-29 05:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354044', 'tblTempVendorCDR_20' ) end [2025-01-29 05:01:18] Production.INFO: ProcessCDR(1,14354044,1,1,2) [2025-01-29 05:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14354044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 05:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14354044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 05:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14354044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 05:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14354044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 05:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354044', 'tblTempUsageDetail_20' ) start [2025-01-29 05:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354044', 'tblTempUsageDetail_20' ) end [2025-01-29 05:01:21] Production.ERROR: pbx prc_insertCDR start [2025-01-29 05:01:21] Production.ERROR: pbx prc_insertCDR end [2025-01-29 05:01:21] Production.INFO: ==22147== Releasing lock... [2025-01-29 05:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 05:01:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-29 05:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 02:02:05 [end_date_ymd] => 2025-01-29 05:02:05 [RateCDR] => 1 ) [2025-01-29 05:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 02:02:05' and `end` < '2025-01-29 05:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 05:02:19] Production.INFO: count ==179 [2025-01-29 05:02:19] Production.ERROR: pbx CDR StartTime 2025-01-29 02:02:05 - End Time 2025-01-29 05:02:05 [2025-01-29 05:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 05:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354049', 'tblTempUsageDetail_20' ) start [2025-01-29 05:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354049', 'tblTempUsageDetail_20' ) end [2025-01-29 05:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354049', 'tblTempVendorCDR_20' ) start [2025-01-29 05:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354049', 'tblTempVendorCDR_20' ) end [2025-01-29 05:02:19] Production.INFO: ProcessCDR(1,14354049,1,1,2) [2025-01-29 05:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14354049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 05:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14354049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 05:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14354049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 05:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14354049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 05:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354049', 'tblTempUsageDetail_20' ) start [2025-01-29 05:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354049', 'tblTempUsageDetail_20' ) end [2025-01-29 05:02:22] Production.ERROR: pbx prc_insertCDR start [2025-01-29 05:02:22] Production.ERROR: pbx prc_insertCDR end [2025-01-29 05:02:22] Production.INFO: ==22230== Releasing lock... [2025-01-29 05:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 05:02:22] Production.INFO: 28.75 MB #Memory Used# [2025-01-29 05:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 02:03:05 [end_date_ymd] => 2025-01-29 05:03:05 [RateCDR] => 1 ) [2025-01-29 05:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 02:03:05' and `end` < '2025-01-29 05:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 05:03:18] Production.INFO: count ==179 [2025-01-29 05:03:19] Production.ERROR: pbx CDR StartTime 2025-01-29 02:03:05 - End Time 2025-01-29 05:03:05 [2025-01-29 05:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 05:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354054', 'tblTempUsageDetail_20' ) start [2025-01-29 05:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354054', 'tblTempUsageDetail_20' ) end [2025-01-29 05:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354054', 'tblTempVendorCDR_20' ) start [2025-01-29 05:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354054', 'tblTempVendorCDR_20' ) end [2025-01-29 05:03:19] Production.INFO: ProcessCDR(1,14354054,1,1,2) [2025-01-29 05:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14354054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 05:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14354054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 05:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14354054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 05:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14354054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 05:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354054', 'tblTempUsageDetail_20' ) start [2025-01-29 05:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354054', 'tblTempUsageDetail_20' ) end [2025-01-29 05:03:22] Production.ERROR: pbx prc_insertCDR start [2025-01-29 05:03:22] Production.ERROR: pbx prc_insertCDR end [2025-01-29 05:03:22] Production.INFO: ==22316== Releasing lock... [2025-01-29 05:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 05:03:22] Production.INFO: 28.75 MB #Memory Used# [2025-01-29 05:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 02:04:06 [end_date_ymd] => 2025-01-29 05:04:06 [RateCDR] => 1 ) [2025-01-29 05:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 02:04:06' and `end` < '2025-01-29 05:04:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 05:04:19] Production.INFO: count ==179 [2025-01-29 05:04:19] Production.ERROR: pbx CDR StartTime 2025-01-29 02:04:06 - End Time 2025-01-29 05:04:06 [2025-01-29 05:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 05:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354059', 'tblTempUsageDetail_20' ) start [2025-01-29 05:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354059', 'tblTempUsageDetail_20' ) end [2025-01-29 05:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354059', 'tblTempVendorCDR_20' ) start [2025-01-29 05:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354059', 'tblTempVendorCDR_20' ) end [2025-01-29 05:04:19] Production.INFO: ProcessCDR(1,14354059,1,1,2) [2025-01-29 05:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14354059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 05:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14354059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 05:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14354059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 05:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14354059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 05:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354059', 'tblTempUsageDetail_20' ) start [2025-01-29 05:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354059', 'tblTempUsageDetail_20' ) end [2025-01-29 05:04:22] Production.ERROR: pbx prc_insertCDR start [2025-01-29 05:04:22] Production.ERROR: pbx prc_insertCDR end [2025-01-29 05:04:22] Production.INFO: ==22391== Releasing lock... [2025-01-29 05:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 05:04:22] Production.INFO: 29 MB #Memory Used# [2025-01-29 05:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 02:05:05 [end_date_ymd] => 2025-01-29 05:05:05 [RateCDR] => 1 ) [2025-01-29 05:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 02:05:05' and `end` < '2025-01-29 05:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 05:05:17] Production.INFO: count ==179 [2025-01-29 05:05:17] Production.ERROR: pbx CDR StartTime 2025-01-29 02:05:05 - End Time 2025-01-29 05:05:05 [2025-01-29 05:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 05:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354064', 'tblTempUsageDetail_20' ) start [2025-01-29 05:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354064', 'tblTempUsageDetail_20' ) end [2025-01-29 05:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354064', 'tblTempVendorCDR_20' ) start [2025-01-29 05:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354064', 'tblTempVendorCDR_20' ) end [2025-01-29 05:05:17] Production.INFO: ProcessCDR(1,14354064,1,1,2) [2025-01-29 05:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14354064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 05:05:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14354064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 05:05:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14354064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 05:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14354064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 05:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354064', 'tblTempUsageDetail_20' ) start [2025-01-29 05:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354064', 'tblTempUsageDetail_20' ) end [2025-01-29 05:05:21] Production.ERROR: pbx prc_insertCDR start [2025-01-29 05:05:21] Production.ERROR: pbx prc_insertCDR end [2025-01-29 05:05:21] Production.INFO: ==22462== Releasing lock... [2025-01-29 05:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 05:05:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-29 05:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 02:06:05 [end_date_ymd] => 2025-01-29 05:06:05 [RateCDR] => 1 ) [2025-01-29 05:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 02:06:05' and `end` < '2025-01-29 05:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 05:06:18] Production.INFO: count ==179 [2025-01-29 05:06:18] Production.ERROR: pbx CDR StartTime 2025-01-29 02:06:05 - End Time 2025-01-29 05:06:05 [2025-01-29 05:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 05:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354069', 'tblTempUsageDetail_20' ) start [2025-01-29 05:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354069', 'tblTempUsageDetail_20' ) end [2025-01-29 05:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354069', 'tblTempVendorCDR_20' ) start [2025-01-29 05:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354069', 'tblTempVendorCDR_20' ) end [2025-01-29 05:06:18] Production.INFO: ProcessCDR(1,14354069,1,1,2) [2025-01-29 05:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14354069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 05:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14354069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 05:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14354069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 05:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14354069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 05:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354069', 'tblTempUsageDetail_20' ) start [2025-01-29 05:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354069', 'tblTempUsageDetail_20' ) end [2025-01-29 05:06:21] Production.ERROR: pbx prc_insertCDR start [2025-01-29 05:06:21] Production.ERROR: pbx prc_insertCDR end [2025-01-29 05:06:21] Production.INFO: ==22541== Releasing lock... [2025-01-29 05:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 05:06:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-29 05:07:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 02:07:04 [end_date_ymd] => 2025-01-29 05:07:04 [RateCDR] => 1 ) [2025-01-29 05:07:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 02:07:04' and `end` < '2025-01-29 05:07:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 05:07:17] Production.INFO: count ==179 [2025-01-29 05:07:17] Production.ERROR: pbx CDR StartTime 2025-01-29 02:07:04 - End Time 2025-01-29 05:07:04 [2025-01-29 05:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 05:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354074', 'tblTempUsageDetail_20' ) start [2025-01-29 05:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354074', 'tblTempUsageDetail_20' ) end [2025-01-29 05:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354074', 'tblTempVendorCDR_20' ) start [2025-01-29 05:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354074', 'tblTempVendorCDR_20' ) end [2025-01-29 05:07:17] Production.INFO: ProcessCDR(1,14354074,1,1,2) [2025-01-29 05:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14354074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 05:07:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14354074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 05:07:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14354074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 05:07:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14354074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 05:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354074', 'tblTempUsageDetail_20' ) start [2025-01-29 05:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354074', 'tblTempUsageDetail_20' ) end [2025-01-29 05:07:20] Production.ERROR: pbx prc_insertCDR start [2025-01-29 05:07:20] Production.ERROR: pbx prc_insertCDR end [2025-01-29 05:07:20] Production.INFO: ==22654== Releasing lock... [2025-01-29 05:07:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 05:07:20] Production.INFO: 28.75 MB #Memory Used# [2025-01-29 05:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 02:08:05 [end_date_ymd] => 2025-01-29 05:08:05 [RateCDR] => 1 ) [2025-01-29 05:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 02:08:05' and `end` < '2025-01-29 05:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 05:08:17] Production.INFO: count ==179 [2025-01-29 05:08:17] Production.ERROR: pbx CDR StartTime 2025-01-29 02:08:05 - End Time 2025-01-29 05:08:05 [2025-01-29 05:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 05:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354079', 'tblTempUsageDetail_20' ) start [2025-01-29 05:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354079', 'tblTempUsageDetail_20' ) end [2025-01-29 05:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354079', 'tblTempVendorCDR_20' ) start [2025-01-29 05:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354079', 'tblTempVendorCDR_20' ) end [2025-01-29 05:08:17] Production.INFO: ProcessCDR(1,14354079,1,1,2) [2025-01-29 05:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14354079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 05:08:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14354079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 05:08:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14354079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 05:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14354079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 05:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354079', 'tblTempUsageDetail_20' ) start [2025-01-29 05:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354079', 'tblTempUsageDetail_20' ) end [2025-01-29 05:08:21] Production.ERROR: pbx prc_insertCDR start [2025-01-29 05:08:21] Production.ERROR: pbx prc_insertCDR end [2025-01-29 05:08:21] Production.INFO: ==22728== Releasing lock... [2025-01-29 05:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 05:08:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-29 05:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 02:09:06 [end_date_ymd] => 2025-01-29 05:09:06 [RateCDR] => 1 ) [2025-01-29 05:09:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 02:09:06' and `end` < '2025-01-29 05:09:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 05:09:19] Production.INFO: count ==179 [2025-01-29 05:09:19] Production.ERROR: pbx CDR StartTime 2025-01-29 02:09:06 - End Time 2025-01-29 05:09:06 [2025-01-29 05:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 05:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354084', 'tblTempUsageDetail_20' ) start [2025-01-29 05:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354084', 'tblTempUsageDetail_20' ) end [2025-01-29 05:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354084', 'tblTempVendorCDR_20' ) start [2025-01-29 05:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354084', 'tblTempVendorCDR_20' ) end [2025-01-29 05:09:19] Production.INFO: ProcessCDR(1,14354084,1,1,2) [2025-01-29 05:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14354084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 05:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14354084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 05:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14354084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 05:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14354084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 05:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354084', 'tblTempUsageDetail_20' ) start [2025-01-29 05:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354084', 'tblTempUsageDetail_20' ) end [2025-01-29 05:09:22] Production.ERROR: pbx prc_insertCDR start [2025-01-29 05:09:22] Production.ERROR: pbx prc_insertCDR end [2025-01-29 05:09:22] Production.INFO: ==22813== Releasing lock... [2025-01-29 05:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 05:09:22] Production.INFO: 28.75 MB #Memory Used# [2025-01-29 05:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 02:10:06 [end_date_ymd] => 2025-01-29 05:10:06 [RateCDR] => 1 ) [2025-01-29 05:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 02:10:06' and `end` < '2025-01-29 05:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 05:10:19] Production.INFO: count ==178 [2025-01-29 05:10:19] Production.ERROR: pbx CDR StartTime 2025-01-29 02:10:06 - End Time 2025-01-29 05:10:06 [2025-01-29 05:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 05:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354090', 'tblTempUsageDetail_20' ) start [2025-01-29 05:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354090', 'tblTempUsageDetail_20' ) end [2025-01-29 05:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354090', 'tblTempVendorCDR_20' ) start [2025-01-29 05:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354090', 'tblTempVendorCDR_20' ) end [2025-01-29 05:10:19] Production.INFO: ProcessCDR(1,14354090,1,1,2) [2025-01-29 05:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14354090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 05:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14354090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 05:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14354090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 05:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14354090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 05:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354090', 'tblTempUsageDetail_20' ) start [2025-01-29 05:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354090', 'tblTempUsageDetail_20' ) end [2025-01-29 05:10:22] Production.ERROR: pbx prc_insertCDR start [2025-01-29 05:10:22] Production.ERROR: pbx prc_insertCDR end [2025-01-29 05:10:22] Production.INFO: ==22887== Releasing lock... [2025-01-29 05:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 05:10:22] Production.INFO: 28.75 MB #Memory Used# [2025-01-29 05:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 02:11:05 [end_date_ymd] => 2025-01-29 05:11:05 [RateCDR] => 1 ) [2025-01-29 05:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 02:11:05' and `end` < '2025-01-29 05:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 05:11:18] Production.INFO: count ==178 [2025-01-29 05:11:18] Production.ERROR: pbx CDR StartTime 2025-01-29 02:11:05 - End Time 2025-01-29 05:11:05 [2025-01-29 05:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 05:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354095', 'tblTempUsageDetail_20' ) start [2025-01-29 05:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354095', 'tblTempUsageDetail_20' ) end [2025-01-29 05:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354095', 'tblTempVendorCDR_20' ) start [2025-01-29 05:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354095', 'tblTempVendorCDR_20' ) end [2025-01-29 05:11:18] Production.INFO: ProcessCDR(1,14354095,1,1,2) [2025-01-29 05:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14354095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 05:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14354095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 05:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14354095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 05:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14354095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 05:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354095', 'tblTempUsageDetail_20' ) start [2025-01-29 05:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354095', 'tblTempUsageDetail_20' ) end [2025-01-29 05:11:21] Production.ERROR: pbx prc_insertCDR start [2025-01-29 05:11:21] Production.ERROR: pbx prc_insertCDR end [2025-01-29 05:11:21] Production.INFO: ==22962== Releasing lock... [2025-01-29 05:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 05:11:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-29 05:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 02:12:05 [end_date_ymd] => 2025-01-29 05:12:05 [RateCDR] => 1 ) [2025-01-29 05:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 02:12:05' and `end` < '2025-01-29 05:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 05:12:17] Production.INFO: count ==178 [2025-01-29 05:12:17] Production.ERROR: pbx CDR StartTime 2025-01-29 02:12:05 - End Time 2025-01-29 05:12:05 [2025-01-29 05:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 05:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354100', 'tblTempUsageDetail_20' ) start [2025-01-29 05:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354100', 'tblTempUsageDetail_20' ) end [2025-01-29 05:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354100', 'tblTempVendorCDR_20' ) start [2025-01-29 05:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354100', 'tblTempVendorCDR_20' ) end [2025-01-29 05:12:17] Production.INFO: ProcessCDR(1,14354100,1,1,2) [2025-01-29 05:12:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14354100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 05:12:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14354100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 05:12:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14354100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 05:12:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14354100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 05:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354100', 'tblTempUsageDetail_20' ) start [2025-01-29 05:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354100', 'tblTempUsageDetail_20' ) end [2025-01-29 05:12:20] Production.ERROR: pbx prc_insertCDR start [2025-01-29 05:12:20] Production.ERROR: pbx prc_insertCDR end [2025-01-29 05:12:20] Production.INFO: ==23034== Releasing lock... [2025-01-29 05:12:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 05:12:20] Production.INFO: 28.75 MB #Memory Used# [2025-01-29 05:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 02:13:05 [end_date_ymd] => 2025-01-29 05:13:05 [RateCDR] => 1 ) [2025-01-29 05:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 02:13:05' and `end` < '2025-01-29 05:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 05:13:17] Production.INFO: count ==178 [2025-01-29 05:13:17] Production.ERROR: pbx CDR StartTime 2025-01-29 02:13:05 - End Time 2025-01-29 05:13:05 [2025-01-29 05:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 05:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354105', 'tblTempUsageDetail_20' ) start [2025-01-29 05:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354105', 'tblTempUsageDetail_20' ) end [2025-01-29 05:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354105', 'tblTempVendorCDR_20' ) start [2025-01-29 05:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354105', 'tblTempVendorCDR_20' ) end [2025-01-29 05:13:18] Production.INFO: ProcessCDR(1,14354105,1,1,2) [2025-01-29 05:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14354105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 05:13:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14354105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 05:13:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14354105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 05:13:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14354105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 05:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354105', 'tblTempUsageDetail_20' ) start [2025-01-29 05:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354105', 'tblTempUsageDetail_20' ) end [2025-01-29 05:13:20] Production.ERROR: pbx prc_insertCDR start [2025-01-29 05:13:20] Production.ERROR: pbx prc_insertCDR end [2025-01-29 05:13:20] Production.INFO: ==23110== Releasing lock... [2025-01-29 05:13:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 05:13:20] Production.INFO: 28.75 MB #Memory Used# [2025-01-29 05:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 02:14:05 [end_date_ymd] => 2025-01-29 05:14:05 [RateCDR] => 1 ) [2025-01-29 05:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 02:14:05' and `end` < '2025-01-29 05:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 05:14:18] Production.INFO: count ==178 [2025-01-29 05:14:18] Production.ERROR: pbx CDR StartTime 2025-01-29 02:14:05 - End Time 2025-01-29 05:14:05 [2025-01-29 05:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 05:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354110', 'tblTempUsageDetail_20' ) start [2025-01-29 05:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354110', 'tblTempUsageDetail_20' ) end [2025-01-29 05:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354110', 'tblTempVendorCDR_20' ) start [2025-01-29 05:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354110', 'tblTempVendorCDR_20' ) end [2025-01-29 05:14:18] Production.INFO: ProcessCDR(1,14354110,1,1,2) [2025-01-29 05:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14354110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 05:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14354110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 05:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14354110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 05:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14354110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 05:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354110', 'tblTempUsageDetail_20' ) start [2025-01-29 05:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354110', 'tblTempUsageDetail_20' ) end [2025-01-29 05:14:21] Production.ERROR: pbx prc_insertCDR start [2025-01-29 05:14:21] Production.ERROR: pbx prc_insertCDR end [2025-01-29 05:14:21] Production.INFO: ==23183== Releasing lock... [2025-01-29 05:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 05:14:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-29 05:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 02:15:05 [end_date_ymd] => 2025-01-29 05:15:05 [RateCDR] => 1 ) [2025-01-29 05:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 02:15:05' and `end` < '2025-01-29 05:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 05:15:18] Production.INFO: count ==178 [2025-01-29 05:15:18] Production.ERROR: pbx CDR StartTime 2025-01-29 02:15:05 - End Time 2025-01-29 05:15:05 [2025-01-29 05:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 05:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354115', 'tblTempUsageDetail_20' ) start [2025-01-29 05:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354115', 'tblTempUsageDetail_20' ) end [2025-01-29 05:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354115', 'tblTempVendorCDR_20' ) start [2025-01-29 05:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354115', 'tblTempVendorCDR_20' ) end [2025-01-29 05:15:18] Production.INFO: ProcessCDR(1,14354115,1,1,2) [2025-01-29 05:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14354115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 05:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14354115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 05:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14354115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 05:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14354115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 05:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354115', 'tblTempUsageDetail_20' ) start [2025-01-29 05:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354115', 'tblTempUsageDetail_20' ) end [2025-01-29 05:15:21] Production.ERROR: pbx prc_insertCDR start [2025-01-29 05:15:21] Production.ERROR: pbx prc_insertCDR end [2025-01-29 05:15:21] Production.INFO: ==23256== Releasing lock... [2025-01-29 05:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 05:15:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-29 05:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 02:16:05 [end_date_ymd] => 2025-01-29 05:16:05 [RateCDR] => 1 ) [2025-01-29 05:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 02:16:05' and `end` < '2025-01-29 05:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 05:16:17] Production.INFO: count ==178 [2025-01-29 05:16:17] Production.ERROR: pbx CDR StartTime 2025-01-29 02:16:05 - End Time 2025-01-29 05:16:05 [2025-01-29 05:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 05:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354120', 'tblTempUsageDetail_20' ) start [2025-01-29 05:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354120', 'tblTempUsageDetail_20' ) end [2025-01-29 05:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354120', 'tblTempVendorCDR_20' ) start [2025-01-29 05:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354120', 'tblTempVendorCDR_20' ) end [2025-01-29 05:16:17] Production.INFO: ProcessCDR(1,14354120,1,1,2) [2025-01-29 05:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14354120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 05:16:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14354120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 05:16:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14354120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 05:16:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14354120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 05:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354120', 'tblTempUsageDetail_20' ) start [2025-01-29 05:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354120', 'tblTempUsageDetail_20' ) end [2025-01-29 05:16:20] Production.ERROR: pbx prc_insertCDR start [2025-01-29 05:16:20] Production.ERROR: pbx prc_insertCDR end [2025-01-29 05:16:20] Production.INFO: ==23327== Releasing lock... [2025-01-29 05:16:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 05:16:20] Production.INFO: 28.75 MB #Memory Used# [2025-01-29 05:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 02:17:05 [end_date_ymd] => 2025-01-29 05:17:05 [RateCDR] => 1 ) [2025-01-29 05:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 02:17:05' and `end` < '2025-01-29 05:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 05:17:17] Production.INFO: count ==168 [2025-01-29 05:17:17] Production.ERROR: pbx CDR StartTime 2025-01-29 02:17:05 - End Time 2025-01-29 05:17:05 [2025-01-29 05:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 05:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354125', 'tblTempUsageDetail_20' ) start [2025-01-29 05:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354125', 'tblTempUsageDetail_20' ) end [2025-01-29 05:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354125', 'tblTempVendorCDR_20' ) start [2025-01-29 05:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354125', 'tblTempVendorCDR_20' ) end [2025-01-29 05:17:17] Production.INFO: ProcessCDR(1,14354125,1,1,2) [2025-01-29 05:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14354125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 05:17:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14354125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 05:17:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14354125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 05:17:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14354125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 05:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354125', 'tblTempUsageDetail_20' ) start [2025-01-29 05:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354125', 'tblTempUsageDetail_20' ) end [2025-01-29 05:17:20] Production.ERROR: pbx prc_insertCDR start [2025-01-29 05:17:20] Production.ERROR: pbx prc_insertCDR end [2025-01-29 05:17:20] Production.INFO: ==23402== Releasing lock... [2025-01-29 05:17:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 05:17:20] Production.INFO: 28.5 MB #Memory Used# [2025-01-29 05:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 02:18:05 [end_date_ymd] => 2025-01-29 05:18:05 [RateCDR] => 1 ) [2025-01-29 05:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 02:18:05' and `end` < '2025-01-29 05:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 05:18:18] Production.INFO: count ==168 [2025-01-29 05:18:18] Production.ERROR: pbx CDR StartTime 2025-01-29 02:18:05 - End Time 2025-01-29 05:18:05 [2025-01-29 05:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 05:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354130', 'tblTempUsageDetail_20' ) start [2025-01-29 05:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354130', 'tblTempUsageDetail_20' ) end [2025-01-29 05:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354130', 'tblTempVendorCDR_20' ) start [2025-01-29 05:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354130', 'tblTempVendorCDR_20' ) end [2025-01-29 05:18:18] Production.INFO: ProcessCDR(1,14354130,1,1,2) [2025-01-29 05:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14354130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 05:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14354130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 05:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14354130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 05:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14354130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 05:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354130', 'tblTempUsageDetail_20' ) start [2025-01-29 05:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354130', 'tblTempUsageDetail_20' ) end [2025-01-29 05:18:21] Production.ERROR: pbx prc_insertCDR start [2025-01-29 05:18:21] Production.ERROR: pbx prc_insertCDR end [2025-01-29 05:18:21] Production.INFO: ==23473== Releasing lock... [2025-01-29 05:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 05:18:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-29 05:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 02:19:05 [end_date_ymd] => 2025-01-29 05:19:05 [RateCDR] => 1 ) [2025-01-29 05:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 02:19:05' and `end` < '2025-01-29 05:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 05:19:18] Production.INFO: count ==167 [2025-01-29 05:19:18] Production.ERROR: pbx CDR StartTime 2025-01-29 02:19:05 - End Time 2025-01-29 05:19:05 [2025-01-29 05:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 05:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354135', 'tblTempUsageDetail_20' ) start [2025-01-29 05:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354135', 'tblTempUsageDetail_20' ) end [2025-01-29 05:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354135', 'tblTempVendorCDR_20' ) start [2025-01-29 05:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354135', 'tblTempVendorCDR_20' ) end [2025-01-29 05:19:18] Production.INFO: ProcessCDR(1,14354135,1,1,2) [2025-01-29 05:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14354135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 05:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14354135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 05:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14354135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 05:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14354135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 05:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354135', 'tblTempUsageDetail_20' ) start [2025-01-29 05:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354135', 'tblTempUsageDetail_20' ) end [2025-01-29 05:19:21] Production.ERROR: pbx prc_insertCDR start [2025-01-29 05:19:21] Production.ERROR: pbx prc_insertCDR end [2025-01-29 05:19:21] Production.INFO: ==23546== Releasing lock... [2025-01-29 05:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 05:19:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-29 05:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 02:20:06 [end_date_ymd] => 2025-01-29 05:20:06 [RateCDR] => 1 ) [2025-01-29 05:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 02:20:06' and `end` < '2025-01-29 05:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 05:20:18] Production.INFO: count ==161 [2025-01-29 05:20:19] Production.ERROR: pbx CDR StartTime 2025-01-29 02:20:06 - End Time 2025-01-29 05:20:06 [2025-01-29 05:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 05:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354140', 'tblTempUsageDetail_20' ) start [2025-01-29 05:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354140', 'tblTempUsageDetail_20' ) end [2025-01-29 05:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354140', 'tblTempVendorCDR_20' ) start [2025-01-29 05:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354140', 'tblTempVendorCDR_20' ) end [2025-01-29 05:20:19] Production.INFO: ProcessCDR(1,14354140,1,1,2) [2025-01-29 05:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14354140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 05:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14354140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 05:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14354140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 05:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14354140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 05:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354140', 'tblTempUsageDetail_20' ) start [2025-01-29 05:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354140', 'tblTempUsageDetail_20' ) end [2025-01-29 05:20:22] Production.ERROR: pbx prc_insertCDR start [2025-01-29 05:20:22] Production.ERROR: pbx prc_insertCDR end [2025-01-29 05:20:22] Production.INFO: ==23621== Releasing lock... [2025-01-29 05:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 05:20:22] Production.INFO: 28.5 MB #Memory Used# [2025-01-29 05:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 02:21:05 [end_date_ymd] => 2025-01-29 05:21:05 [RateCDR] => 1 ) [2025-01-29 05:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 02:21:05' and `end` < '2025-01-29 05:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 05:21:17] Production.INFO: count ==151 [2025-01-29 05:21:17] Production.ERROR: pbx CDR StartTime 2025-01-29 02:21:05 - End Time 2025-01-29 05:21:05 [2025-01-29 05:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 05:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354146', 'tblTempUsageDetail_20' ) start [2025-01-29 05:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354146', 'tblTempUsageDetail_20' ) end [2025-01-29 05:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354146', 'tblTempVendorCDR_20' ) start [2025-01-29 05:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354146', 'tblTempVendorCDR_20' ) end [2025-01-29 05:21:17] Production.INFO: ProcessCDR(1,14354146,1,1,2) [2025-01-29 05:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14354146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 05:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14354146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 05:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14354146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 05:21:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14354146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 05:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354146', 'tblTempUsageDetail_20' ) start [2025-01-29 05:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354146', 'tblTempUsageDetail_20' ) end [2025-01-29 05:21:20] Production.ERROR: pbx prc_insertCDR start [2025-01-29 05:21:20] Production.ERROR: pbx prc_insertCDR end [2025-01-29 05:21:20] Production.INFO: ==23703== Releasing lock... [2025-01-29 05:21:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 05:21:20] Production.INFO: 28.5 MB #Memory Used# [2025-01-29 05:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 02:22:06 [end_date_ymd] => 2025-01-29 05:22:06 [RateCDR] => 1 ) [2025-01-29 05:22:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 02:22:06' and `end` < '2025-01-29 05:22:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 05:22:19] Production.INFO: count ==151 [2025-01-29 05:22:19] Production.ERROR: pbx CDR StartTime 2025-01-29 02:22:06 - End Time 2025-01-29 05:22:06 [2025-01-29 05:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 05:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354151', 'tblTempUsageDetail_20' ) start [2025-01-29 05:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354151', 'tblTempUsageDetail_20' ) end [2025-01-29 05:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354151', 'tblTempVendorCDR_20' ) start [2025-01-29 05:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354151', 'tblTempVendorCDR_20' ) end [2025-01-29 05:22:19] Production.INFO: ProcessCDR(1,14354151,1,1,2) [2025-01-29 05:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14354151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 05:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14354151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 05:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14354151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 05:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14354151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 05:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354151', 'tblTempUsageDetail_20' ) start [2025-01-29 05:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354151', 'tblTempUsageDetail_20' ) end [2025-01-29 05:22:22] Production.ERROR: pbx prc_insertCDR start [2025-01-29 05:22:22] Production.ERROR: pbx prc_insertCDR end [2025-01-29 05:22:22] Production.INFO: ==23818== Releasing lock... [2025-01-29 05:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 05:22:22] Production.INFO: 28.5 MB #Memory Used# [2025-01-29 05:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 02:23:05 [end_date_ymd] => 2025-01-29 05:23:05 [RateCDR] => 1 ) [2025-01-29 05:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 02:23:05' and `end` < '2025-01-29 05:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 05:23:17] Production.INFO: count ==147 [2025-01-29 05:23:17] Production.ERROR: pbx CDR StartTime 2025-01-29 02:23:05 - End Time 2025-01-29 05:23:05 [2025-01-29 05:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 05:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354156', 'tblTempUsageDetail_20' ) start [2025-01-29 05:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354156', 'tblTempUsageDetail_20' ) end [2025-01-29 05:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354156', 'tblTempVendorCDR_20' ) start [2025-01-29 05:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354156', 'tblTempVendorCDR_20' ) end [2025-01-29 05:23:17] Production.INFO: ProcessCDR(1,14354156,1,1,2) [2025-01-29 05:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14354156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 05:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14354156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 05:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14354156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 05:23:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14354156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 05:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354156', 'tblTempUsageDetail_20' ) start [2025-01-29 05:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354156', 'tblTempUsageDetail_20' ) end [2025-01-29 05:23:20] Production.ERROR: pbx prc_insertCDR start [2025-01-29 05:23:20] Production.ERROR: pbx prc_insertCDR end [2025-01-29 05:23:20] Production.INFO: ==23890== Releasing lock... [2025-01-29 05:23:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 05:23:20] Production.INFO: 28.5 MB #Memory Used# [2025-01-29 05:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 02:24:05 [end_date_ymd] => 2025-01-29 05:24:05 [RateCDR] => 1 ) [2025-01-29 05:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 02:24:05' and `end` < '2025-01-29 05:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 05:24:19] Production.INFO: count ==147 [2025-01-29 05:24:19] Production.ERROR: pbx CDR StartTime 2025-01-29 02:24:05 - End Time 2025-01-29 05:24:05 [2025-01-29 05:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 05:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354161', 'tblTempUsageDetail_20' ) start [2025-01-29 05:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354161', 'tblTempUsageDetail_20' ) end [2025-01-29 05:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354161', 'tblTempVendorCDR_20' ) start [2025-01-29 05:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354161', 'tblTempVendorCDR_20' ) end [2025-01-29 05:24:19] Production.INFO: ProcessCDR(1,14354161,1,1,2) [2025-01-29 05:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14354161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 05:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14354161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 05:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14354161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 05:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14354161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 05:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354161', 'tblTempUsageDetail_20' ) start [2025-01-29 05:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354161', 'tblTempUsageDetail_20' ) end [2025-01-29 05:24:22] Production.ERROR: pbx prc_insertCDR start [2025-01-29 05:24:22] Production.ERROR: pbx prc_insertCDR end [2025-01-29 05:24:22] Production.INFO: ==23963== Releasing lock... [2025-01-29 05:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 05:24:22] Production.INFO: 28.5 MB #Memory Used# [2025-01-29 05:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 02:25:05 [end_date_ymd] => 2025-01-29 05:25:05 [RateCDR] => 1 ) [2025-01-29 05:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 02:25:05' and `end` < '2025-01-29 05:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 05:25:17] Production.INFO: count ==147 [2025-01-29 05:25:17] Production.ERROR: pbx CDR StartTime 2025-01-29 02:25:05 - End Time 2025-01-29 05:25:05 [2025-01-29 05:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354166', 'tblTempUsageDetail_20' ) start [2025-01-29 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354166', 'tblTempUsageDetail_20' ) end [2025-01-29 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354166', 'tblTempVendorCDR_20' ) start [2025-01-29 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354166', 'tblTempVendorCDR_20' ) end [2025-01-29 05:25:17] Production.INFO: ProcessCDR(1,14354166,1,1,2) [2025-01-29 05:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14354166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 05:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14354166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 05:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14354166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 05:25:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14354166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 05:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354166', 'tblTempUsageDetail_20' ) start [2025-01-29 05:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354166', 'tblTempUsageDetail_20' ) end [2025-01-29 05:25:20] Production.ERROR: pbx prc_insertCDR start [2025-01-29 05:25:20] Production.ERROR: pbx prc_insertCDR end [2025-01-29 05:25:20] Production.INFO: ==24034== Releasing lock... [2025-01-29 05:25:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 05:25:20] Production.INFO: 28.5 MB #Memory Used# [2025-01-29 05:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 02:26:05 [end_date_ymd] => 2025-01-29 05:26:05 [RateCDR] => 1 ) [2025-01-29 05:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 02:26:05' and `end` < '2025-01-29 05:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 05:26:17] Production.INFO: count ==147 [2025-01-29 05:26:17] Production.ERROR: pbx CDR StartTime 2025-01-29 02:26:05 - End Time 2025-01-29 05:26:05 [2025-01-29 05:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 05:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354171', 'tblTempUsageDetail_20' ) start [2025-01-29 05:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354171', 'tblTempUsageDetail_20' ) end [2025-01-29 05:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354171', 'tblTempVendorCDR_20' ) start [2025-01-29 05:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354171', 'tblTempVendorCDR_20' ) end [2025-01-29 05:26:18] Production.INFO: ProcessCDR(1,14354171,1,1,2) [2025-01-29 05:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14354171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 05:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14354171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 05:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14354171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 05:26:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14354171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 05:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354171', 'tblTempUsageDetail_20' ) start [2025-01-29 05:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354171', 'tblTempUsageDetail_20' ) end [2025-01-29 05:26:20] Production.ERROR: pbx prc_insertCDR start [2025-01-29 05:26:20] Production.ERROR: pbx prc_insertCDR end [2025-01-29 05:26:20] Production.INFO: ==24109== Releasing lock... [2025-01-29 05:26:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 05:26:20] Production.INFO: 28.5 MB #Memory Used# [2025-01-29 05:27:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 02:27:04 [end_date_ymd] => 2025-01-29 05:27:04 [RateCDR] => 1 ) [2025-01-29 05:27:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 02:27:04' and `end` < '2025-01-29 05:27:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 05:27:17] Production.INFO: count ==147 [2025-01-29 05:27:17] Production.ERROR: pbx CDR StartTime 2025-01-29 02:27:04 - End Time 2025-01-29 05:27:04 [2025-01-29 05:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 05:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354176', 'tblTempUsageDetail_20' ) start [2025-01-29 05:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354176', 'tblTempUsageDetail_20' ) end [2025-01-29 05:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354176', 'tblTempVendorCDR_20' ) start [2025-01-29 05:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354176', 'tblTempVendorCDR_20' ) end [2025-01-29 05:27:17] Production.INFO: ProcessCDR(1,14354176,1,1,2) [2025-01-29 05:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14354176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 05:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14354176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 05:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14354176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 05:27:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14354176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 05:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354176', 'tblTempUsageDetail_20' ) start [2025-01-29 05:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354176', 'tblTempUsageDetail_20' ) end [2025-01-29 05:27:20] Production.ERROR: pbx prc_insertCDR start [2025-01-29 05:27:20] Production.ERROR: pbx prc_insertCDR end [2025-01-29 05:27:20] Production.INFO: ==24179== Releasing lock... [2025-01-29 05:27:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 05:27:20] Production.INFO: 28.5 MB #Memory Used# [2025-01-29 05:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 02:28:05 [end_date_ymd] => 2025-01-29 05:28:05 [RateCDR] => 1 ) [2025-01-29 05:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 02:28:05' and `end` < '2025-01-29 05:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 05:28:18] Production.INFO: count ==147 [2025-01-29 05:28:18] Production.ERROR: pbx CDR StartTime 2025-01-29 02:28:05 - End Time 2025-01-29 05:28:05 [2025-01-29 05:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 05:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354181', 'tblTempUsageDetail_20' ) start [2025-01-29 05:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354181', 'tblTempUsageDetail_20' ) end [2025-01-29 05:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354181', 'tblTempVendorCDR_20' ) start [2025-01-29 05:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354181', 'tblTempVendorCDR_20' ) end [2025-01-29 05:28:18] Production.INFO: ProcessCDR(1,14354181,1,1,2) [2025-01-29 05:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14354181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 05:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14354181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 05:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14354181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 05:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14354181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 05:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354181', 'tblTempUsageDetail_20' ) start [2025-01-29 05:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354181', 'tblTempUsageDetail_20' ) end [2025-01-29 05:28:21] Production.ERROR: pbx prc_insertCDR start [2025-01-29 05:28:21] Production.ERROR: pbx prc_insertCDR end [2025-01-29 05:28:21] Production.INFO: ==24255== Releasing lock... [2025-01-29 05:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 05:28:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-29 05:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 02:29:05 [end_date_ymd] => 2025-01-29 05:29:05 [RateCDR] => 1 ) [2025-01-29 05:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 02:29:05' and `end` < '2025-01-29 05:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 05:29:18] Production.INFO: count ==147 [2025-01-29 05:29:18] Production.ERROR: pbx CDR StartTime 2025-01-29 02:29:05 - End Time 2025-01-29 05:29:05 [2025-01-29 05:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 05:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354186', 'tblTempUsageDetail_20' ) start [2025-01-29 05:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354186', 'tblTempUsageDetail_20' ) end [2025-01-29 05:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354186', 'tblTempVendorCDR_20' ) start [2025-01-29 05:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354186', 'tblTempVendorCDR_20' ) end [2025-01-29 05:29:18] Production.INFO: ProcessCDR(1,14354186,1,1,2) [2025-01-29 05:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14354186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 05:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14354186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 05:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14354186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 05:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14354186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 05:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354186', 'tblTempUsageDetail_20' ) start [2025-01-29 05:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354186', 'tblTempUsageDetail_20' ) end [2025-01-29 05:29:21] Production.ERROR: pbx prc_insertCDR start [2025-01-29 05:29:21] Production.ERROR: pbx prc_insertCDR end [2025-01-29 05:29:21] Production.INFO: ==24327== Releasing lock... [2025-01-29 05:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 05:29:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-29 05:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 02:30:06 [end_date_ymd] => 2025-01-29 05:30:06 [RateCDR] => 1 ) [2025-01-29 05:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 02:30:06' and `end` < '2025-01-29 05:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 05:30:20] Production.INFO: count ==142 [2025-01-29 05:30:20] Production.ERROR: pbx CDR StartTime 2025-01-29 02:30:06 - End Time 2025-01-29 05:30:06 [2025-01-29 05:30:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 05:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354192', 'tblTempUsageDetail_20' ) start [2025-01-29 05:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354192', 'tblTempUsageDetail_20' ) end [2025-01-29 05:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354192', 'tblTempVendorCDR_20' ) start [2025-01-29 05:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354192', 'tblTempVendorCDR_20' ) end [2025-01-29 05:30:20] Production.INFO: ProcessCDR(1,14354192,1,1,2) [2025-01-29 05:30:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14354192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 05:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14354192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 05:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14354192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 05:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14354192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 05:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354192', 'tblTempUsageDetail_20' ) start [2025-01-29 05:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354192', 'tblTempUsageDetail_20' ) end [2025-01-29 05:30:23] Production.ERROR: pbx prc_insertCDR start [2025-01-29 05:30:23] Production.ERROR: pbx prc_insertCDR end [2025-01-29 05:30:23] Production.INFO: ==24400== Releasing lock... [2025-01-29 05:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 05:30:23] Production.INFO: 28.5 MB #Memory Used# [2025-01-29 05:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 02:31:05 [end_date_ymd] => 2025-01-29 05:31:05 [RateCDR] => 1 ) [2025-01-29 05:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 02:31:05' and `end` < '2025-01-29 05:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 05:31:18] Production.INFO: count ==130 [2025-01-29 05:31:18] Production.ERROR: pbx CDR StartTime 2025-01-29 02:31:05 - End Time 2025-01-29 05:31:05 [2025-01-29 05:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 05:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354197', 'tblTempUsageDetail_20' ) start [2025-01-29 05:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354197', 'tblTempUsageDetail_20' ) end [2025-01-29 05:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354197', 'tblTempVendorCDR_20' ) start [2025-01-29 05:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354197', 'tblTempVendorCDR_20' ) end [2025-01-29 05:31:18] Production.INFO: ProcessCDR(1,14354197,1,1,2) [2025-01-29 05:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14354197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 05:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14354197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 05:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14354197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 05:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14354197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 05:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354197', 'tblTempUsageDetail_20' ) start [2025-01-29 05:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354197', 'tblTempUsageDetail_20' ) end [2025-01-29 05:31:21] Production.ERROR: pbx prc_insertCDR start [2025-01-29 05:31:21] Production.ERROR: pbx prc_insertCDR end [2025-01-29 05:31:21] Production.INFO: ==24472== Releasing lock... [2025-01-29 05:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 05:31:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-29 05:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 02:32:05 [end_date_ymd] => 2025-01-29 05:32:05 [RateCDR] => 1 ) [2025-01-29 05:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 02:32:05' and `end` < '2025-01-29 05:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 05:32:18] Production.INFO: count ==130 [2025-01-29 05:32:18] Production.ERROR: pbx CDR StartTime 2025-01-29 02:32:05 - End Time 2025-01-29 05:32:05 [2025-01-29 05:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 05:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354202', 'tblTempUsageDetail_20' ) start [2025-01-29 05:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354202', 'tblTempUsageDetail_20' ) end [2025-01-29 05:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354202', 'tblTempVendorCDR_20' ) start [2025-01-29 05:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354202', 'tblTempVendorCDR_20' ) end [2025-01-29 05:32:18] Production.INFO: ProcessCDR(1,14354202,1,1,2) [2025-01-29 05:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14354202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 05:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14354202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 05:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14354202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 05:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14354202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 05:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354202', 'tblTempUsageDetail_20' ) start [2025-01-29 05:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354202', 'tblTempUsageDetail_20' ) end [2025-01-29 05:32:21] Production.ERROR: pbx prc_insertCDR start [2025-01-29 05:32:21] Production.ERROR: pbx prc_insertCDR end [2025-01-29 05:32:21] Production.INFO: ==24545== Releasing lock... [2025-01-29 05:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 05:32:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-29 05:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 02:33:06 [end_date_ymd] => 2025-01-29 05:33:06 [RateCDR] => 1 ) [2025-01-29 05:33:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 02:33:06' and `end` < '2025-01-29 05:33:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 05:33:18] Production.INFO: count ==130 [2025-01-29 05:33:18] Production.ERROR: pbx CDR StartTime 2025-01-29 02:33:06 - End Time 2025-01-29 05:33:06 [2025-01-29 05:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 05:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354207', 'tblTempUsageDetail_20' ) start [2025-01-29 05:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354207', 'tblTempUsageDetail_20' ) end [2025-01-29 05:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354207', 'tblTempVendorCDR_20' ) start [2025-01-29 05:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354207', 'tblTempVendorCDR_20' ) end [2025-01-29 05:33:18] Production.INFO: ProcessCDR(1,14354207,1,1,2) [2025-01-29 05:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14354207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 05:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14354207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 05:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14354207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 05:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14354207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 05:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354207', 'tblTempUsageDetail_20' ) start [2025-01-29 05:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354207', 'tblTempUsageDetail_20' ) end [2025-01-29 05:33:21] Production.ERROR: pbx prc_insertCDR start [2025-01-29 05:33:21] Production.ERROR: pbx prc_insertCDR end [2025-01-29 05:33:21] Production.INFO: ==24621== Releasing lock... [2025-01-29 05:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 05:33:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-29 05:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 02:34:05 [end_date_ymd] => 2025-01-29 05:34:05 [RateCDR] => 1 ) [2025-01-29 05:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 02:34:05' and `end` < '2025-01-29 05:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 05:34:18] Production.INFO: count ==130 [2025-01-29 05:34:18] Production.ERROR: pbx CDR StartTime 2025-01-29 02:34:05 - End Time 2025-01-29 05:34:05 [2025-01-29 05:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 05:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354212', 'tblTempUsageDetail_20' ) start [2025-01-29 05:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354212', 'tblTempUsageDetail_20' ) end [2025-01-29 05:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354212', 'tblTempVendorCDR_20' ) start [2025-01-29 05:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354212', 'tblTempVendorCDR_20' ) end [2025-01-29 05:34:18] Production.INFO: ProcessCDR(1,14354212,1,1,2) [2025-01-29 05:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14354212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 05:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14354212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 05:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14354212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 05:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14354212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 05:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354212', 'tblTempUsageDetail_20' ) start [2025-01-29 05:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354212', 'tblTempUsageDetail_20' ) end [2025-01-29 05:34:21] Production.ERROR: pbx prc_insertCDR start [2025-01-29 05:34:21] Production.ERROR: pbx prc_insertCDR end [2025-01-29 05:34:21] Production.INFO: ==24692== Releasing lock... [2025-01-29 05:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 05:34:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-29 05:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 02:35:05 [end_date_ymd] => 2025-01-29 05:35:05 [RateCDR] => 1 ) [2025-01-29 05:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 02:35:05' and `end` < '2025-01-29 05:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 05:35:18] Production.INFO: count ==130 [2025-01-29 05:35:18] Production.ERROR: pbx CDR StartTime 2025-01-29 02:35:05 - End Time 2025-01-29 05:35:05 [2025-01-29 05:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 05:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354217', 'tblTempUsageDetail_20' ) start [2025-01-29 05:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354217', 'tblTempUsageDetail_20' ) end [2025-01-29 05:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354217', 'tblTempVendorCDR_20' ) start [2025-01-29 05:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354217', 'tblTempVendorCDR_20' ) end [2025-01-29 05:35:18] Production.INFO: ProcessCDR(1,14354217,1,1,2) [2025-01-29 05:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14354217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 05:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14354217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 05:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14354217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 05:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14354217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 05:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354217', 'tblTempUsageDetail_20' ) start [2025-01-29 05:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354217', 'tblTempUsageDetail_20' ) end [2025-01-29 05:35:21] Production.ERROR: pbx prc_insertCDR start [2025-01-29 05:35:21] Production.ERROR: pbx prc_insertCDR end [2025-01-29 05:35:21] Production.INFO: ==24764== Releasing lock... [2025-01-29 05:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 05:35:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-29 05:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 02:36:05 [end_date_ymd] => 2025-01-29 05:36:05 [RateCDR] => 1 ) [2025-01-29 05:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 02:36:05' and `end` < '2025-01-29 05:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 05:36:19] Production.INFO: count ==130 [2025-01-29 05:36:19] Production.ERROR: pbx CDR StartTime 2025-01-29 02:36:05 - End Time 2025-01-29 05:36:05 [2025-01-29 05:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 05:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354222', 'tblTempUsageDetail_20' ) start [2025-01-29 05:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354222', 'tblTempUsageDetail_20' ) end [2025-01-29 05:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354222', 'tblTempVendorCDR_20' ) start [2025-01-29 05:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354222', 'tblTempVendorCDR_20' ) end [2025-01-29 05:36:19] Production.INFO: ProcessCDR(1,14354222,1,1,2) [2025-01-29 05:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14354222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 05:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14354222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 05:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14354222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 05:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14354222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 05:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354222', 'tblTempUsageDetail_20' ) start [2025-01-29 05:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354222', 'tblTempUsageDetail_20' ) end [2025-01-29 05:36:22] Production.ERROR: pbx prc_insertCDR start [2025-01-29 05:36:22] Production.ERROR: pbx prc_insertCDR end [2025-01-29 05:36:22] Production.INFO: ==24838== Releasing lock... [2025-01-29 05:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 05:36:22] Production.INFO: 28.5 MB #Memory Used# [2025-01-29 05:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 02:37:05 [end_date_ymd] => 2025-01-29 05:37:05 [RateCDR] => 1 ) [2025-01-29 05:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 02:37:05' and `end` < '2025-01-29 05:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 05:37:18] Production.INFO: count ==129 [2025-01-29 05:37:18] Production.ERROR: pbx CDR StartTime 2025-01-29 02:37:05 - End Time 2025-01-29 05:37:05 [2025-01-29 05:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 05:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354227', 'tblTempUsageDetail_20' ) start [2025-01-29 05:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354227', 'tblTempUsageDetail_20' ) end [2025-01-29 05:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354227', 'tblTempVendorCDR_20' ) start [2025-01-29 05:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354227', 'tblTempVendorCDR_20' ) end [2025-01-29 05:37:18] Production.INFO: ProcessCDR(1,14354227,1,1,2) [2025-01-29 05:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14354227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 05:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14354227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 05:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14354227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 05:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14354227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 05:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354227', 'tblTempUsageDetail_20' ) start [2025-01-29 05:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354227', 'tblTempUsageDetail_20' ) end [2025-01-29 05:37:22] Production.ERROR: pbx prc_insertCDR start [2025-01-29 05:37:22] Production.ERROR: pbx prc_insertCDR end [2025-01-29 05:37:22] Production.INFO: ==24928== Releasing lock... [2025-01-29 05:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 05:37:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-29 05:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 02:38:05 [end_date_ymd] => 2025-01-29 05:38:05 [RateCDR] => 1 ) [2025-01-29 05:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 02:38:05' and `end` < '2025-01-29 05:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 05:38:17] Production.INFO: count ==129 [2025-01-29 05:38:17] Production.ERROR: pbx CDR StartTime 2025-01-29 02:38:05 - End Time 2025-01-29 05:38:05 [2025-01-29 05:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 05:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354232', 'tblTempUsageDetail_20' ) start [2025-01-29 05:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354232', 'tblTempUsageDetail_20' ) end [2025-01-29 05:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354232', 'tblTempVendorCDR_20' ) start [2025-01-29 05:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354232', 'tblTempVendorCDR_20' ) end [2025-01-29 05:38:17] Production.INFO: ProcessCDR(1,14354232,1,1,2) [2025-01-29 05:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14354232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 05:38:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14354232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 05:38:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14354232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 05:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14354232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 05:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354232', 'tblTempUsageDetail_20' ) start [2025-01-29 05:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354232', 'tblTempUsageDetail_20' ) end [2025-01-29 05:38:21] Production.ERROR: pbx prc_insertCDR start [2025-01-29 05:38:21] Production.ERROR: pbx prc_insertCDR end [2025-01-29 05:38:21] Production.INFO: ==25023== Releasing lock... [2025-01-29 05:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 05:38:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-29 05:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 02:39:05 [end_date_ymd] => 2025-01-29 05:39:05 [RateCDR] => 1 ) [2025-01-29 05:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 02:39:05' and `end` < '2025-01-29 05:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 05:39:19] Production.INFO: count ==129 [2025-01-29 05:39:19] Production.ERROR: pbx CDR StartTime 2025-01-29 02:39:05 - End Time 2025-01-29 05:39:05 [2025-01-29 05:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 05:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354237', 'tblTempUsageDetail_20' ) start [2025-01-29 05:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354237', 'tblTempUsageDetail_20' ) end [2025-01-29 05:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354237', 'tblTempVendorCDR_20' ) start [2025-01-29 05:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354237', 'tblTempVendorCDR_20' ) end [2025-01-29 05:39:19] Production.INFO: ProcessCDR(1,14354237,1,1,2) [2025-01-29 05:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14354237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 05:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14354237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 05:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14354237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 05:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14354237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 05:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354237', 'tblTempUsageDetail_20' ) start [2025-01-29 05:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354237', 'tblTempUsageDetail_20' ) end [2025-01-29 05:39:22] Production.ERROR: pbx prc_insertCDR start [2025-01-29 05:39:22] Production.ERROR: pbx prc_insertCDR end [2025-01-29 05:39:22] Production.INFO: ==25095== Releasing lock... [2025-01-29 05:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 05:39:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-29 05:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 02:40:06 [end_date_ymd] => 2025-01-29 05:40:06 [RateCDR] => 1 ) [2025-01-29 05:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 02:40:06' and `end` < '2025-01-29 05:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 05:40:18] Production.INFO: count ==124 [2025-01-29 05:40:18] Production.ERROR: pbx CDR StartTime 2025-01-29 02:40:06 - End Time 2025-01-29 05:40:06 [2025-01-29 05:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 05:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354243', 'tblTempUsageDetail_20' ) start [2025-01-29 05:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354243', 'tblTempUsageDetail_20' ) end [2025-01-29 05:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354243', 'tblTempVendorCDR_20' ) start [2025-01-29 05:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354243', 'tblTempVendorCDR_20' ) end [2025-01-29 05:40:18] Production.INFO: ProcessCDR(1,14354243,1,1,2) [2025-01-29 05:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14354243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 05:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14354243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 05:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14354243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 05:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14354243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 05:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354243', 'tblTempUsageDetail_20' ) start [2025-01-29 05:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354243', 'tblTempUsageDetail_20' ) end [2025-01-29 05:40:21] Production.ERROR: pbx prc_insertCDR start [2025-01-29 05:40:21] Production.ERROR: pbx prc_insertCDR end [2025-01-29 05:40:21] Production.INFO: ==25167== Releasing lock... [2025-01-29 05:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 05:40:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-29 05:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 02:41:05 [end_date_ymd] => 2025-01-29 05:41:05 [RateCDR] => 1 ) [2025-01-29 05:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 02:41:05' and `end` < '2025-01-29 05:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 05:41:17] Production.INFO: count ==124 [2025-01-29 05:41:17] Production.ERROR: pbx CDR StartTime 2025-01-29 02:41:05 - End Time 2025-01-29 05:41:05 [2025-01-29 05:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 05:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354248', 'tblTempUsageDetail_20' ) start [2025-01-29 05:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354248', 'tblTempUsageDetail_20' ) end [2025-01-29 05:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354248', 'tblTempVendorCDR_20' ) start [2025-01-29 05:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354248', 'tblTempVendorCDR_20' ) end [2025-01-29 05:41:17] Production.INFO: ProcessCDR(1,14354248,1,1,2) [2025-01-29 05:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14354248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 05:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14354248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 05:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14354248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 05:41:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14354248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 05:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354248', 'tblTempUsageDetail_20' ) start [2025-01-29 05:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354248', 'tblTempUsageDetail_20' ) end [2025-01-29 05:41:20] Production.ERROR: pbx prc_insertCDR start [2025-01-29 05:41:20] Production.ERROR: pbx prc_insertCDR end [2025-01-29 05:41:20] Production.INFO: ==25241== Releasing lock... [2025-01-29 05:41:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 05:41:20] Production.INFO: 28.25 MB #Memory Used# [2025-01-29 05:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 02:42:05 [end_date_ymd] => 2025-01-29 05:42:05 [RateCDR] => 1 ) [2025-01-29 05:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 02:42:05' and `end` < '2025-01-29 05:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 05:42:19] Production.INFO: count ==124 [2025-01-29 05:42:19] Production.ERROR: pbx CDR StartTime 2025-01-29 02:42:05 - End Time 2025-01-29 05:42:05 [2025-01-29 05:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 05:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354253', 'tblTempUsageDetail_20' ) start [2025-01-29 05:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354253', 'tblTempUsageDetail_20' ) end [2025-01-29 05:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354253', 'tblTempVendorCDR_20' ) start [2025-01-29 05:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354253', 'tblTempVendorCDR_20' ) end [2025-01-29 05:42:19] Production.INFO: ProcessCDR(1,14354253,1,1,2) [2025-01-29 05:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14354253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 05:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14354253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 05:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14354253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 05:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14354253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 05:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354253', 'tblTempUsageDetail_20' ) start [2025-01-29 05:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354253', 'tblTempUsageDetail_20' ) end [2025-01-29 05:42:22] Production.ERROR: pbx prc_insertCDR start [2025-01-29 05:42:22] Production.ERROR: pbx prc_insertCDR end [2025-01-29 05:42:22] Production.INFO: ==25312== Releasing lock... [2025-01-29 05:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 05:42:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-29 05:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 02:43:05 [end_date_ymd] => 2025-01-29 05:43:05 [RateCDR] => 1 ) [2025-01-29 05:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 02:43:05' and `end` < '2025-01-29 05:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 05:43:17] Production.INFO: count ==124 [2025-01-29 05:43:17] Production.ERROR: pbx CDR StartTime 2025-01-29 02:43:05 - End Time 2025-01-29 05:43:05 [2025-01-29 05:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 05:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354258', 'tblTempUsageDetail_20' ) start [2025-01-29 05:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354258', 'tblTempUsageDetail_20' ) end [2025-01-29 05:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354258', 'tblTempVendorCDR_20' ) start [2025-01-29 05:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354258', 'tblTempVendorCDR_20' ) end [2025-01-29 05:43:18] Production.INFO: ProcessCDR(1,14354258,1,1,2) [2025-01-29 05:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14354258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 05:43:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14354258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 05:43:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14354258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 05:43:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14354258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 05:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354258', 'tblTempUsageDetail_20' ) start [2025-01-29 05:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354258', 'tblTempUsageDetail_20' ) end [2025-01-29 05:43:20] Production.ERROR: pbx prc_insertCDR start [2025-01-29 05:43:20] Production.ERROR: pbx prc_insertCDR end [2025-01-29 05:43:20] Production.INFO: ==25382== Releasing lock... [2025-01-29 05:43:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 05:43:20] Production.INFO: 28.25 MB #Memory Used# [2025-01-29 05:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 02:44:05 [end_date_ymd] => 2025-01-29 05:44:05 [RateCDR] => 1 ) [2025-01-29 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-01-29 02:44:05' and `end` < '2025-01-29 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-01-29 05:44:17] Production.INFO: count ==124 [2025-01-29 05:44:17] Production.ERROR: pbx CDR StartTime 2025-01-29 02:44:05 - End Time 2025-01-29 05:44:05 [2025-01-29 05:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 05:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354263', 'tblTempUsageDetail_20' ) start [2025-01-29 05:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354263', 'tblTempUsageDetail_20' ) end [2025-01-29 05:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354263', 'tblTempVendorCDR_20' ) start [2025-01-29 05:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354263', 'tblTempVendorCDR_20' ) end [2025-01-29 05:44:17] Production.INFO: ProcessCDR(1,14354263,1,1,2) [2025-01-29 05:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14354263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 05:44:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14354263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 05:44:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14354263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 05:44:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14354263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 05:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354263', 'tblTempUsageDetail_20' ) start [2025-01-29 05:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354263', 'tblTempUsageDetail_20' ) end [2025-01-29 05:44:20] Production.ERROR: pbx prc_insertCDR start [2025-01-29 05:44:20] Production.ERROR: pbx prc_insertCDR end [2025-01-29 05:44:20] Production.INFO: ==25454== Releasing lock... [2025-01-29 05:44:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 05:44:20] Production.INFO: 28.25 MB #Memory Used# [2025-01-29 05:45:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 02:45:04 [end_date_ymd] => 2025-01-29 05:45:04 [RateCDR] => 1 ) [2025-01-29 05:45:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 02:45:04' and `end` < '2025-01-29 05:45:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 05:45:17] Production.INFO: count ==124 [2025-01-29 05:45:17] Production.ERROR: pbx CDR StartTime 2025-01-29 02:45:04 - End Time 2025-01-29 05:45:04 [2025-01-29 05:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 05:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354268', 'tblTempUsageDetail_20' ) start [2025-01-29 05:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354268', 'tblTempUsageDetail_20' ) end [2025-01-29 05:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354268', 'tblTempVendorCDR_20' ) start [2025-01-29 05:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354268', 'tblTempVendorCDR_20' ) end [2025-01-29 05:45:17] Production.INFO: ProcessCDR(1,14354268,1,1,2) [2025-01-29 05:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14354268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 05:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14354268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 05:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14354268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 05:45:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14354268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 05:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354268', 'tblTempUsageDetail_20' ) start [2025-01-29 05:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354268', 'tblTempUsageDetail_20' ) end [2025-01-29 05:45:20] Production.ERROR: pbx prc_insertCDR start [2025-01-29 05:45:20] Production.ERROR: pbx prc_insertCDR end [2025-01-29 05:45:20] Production.INFO: ==25527== Releasing lock... [2025-01-29 05:45:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 05:45:20] Production.INFO: 28.25 MB #Memory Used# [2025-01-29 05:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 02:46:05 [end_date_ymd] => 2025-01-29 05:46:05 [RateCDR] => 1 ) [2025-01-29 05:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 02:46:05' and `end` < '2025-01-29 05:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 05:46:17] Production.INFO: count ==124 [2025-01-29 05:46:17] Production.ERROR: pbx CDR StartTime 2025-01-29 02:46:05 - End Time 2025-01-29 05:46:05 [2025-01-29 05:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 05:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354273', 'tblTempUsageDetail_20' ) start [2025-01-29 05:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354273', 'tblTempUsageDetail_20' ) end [2025-01-29 05:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354273', 'tblTempVendorCDR_20' ) start [2025-01-29 05:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354273', 'tblTempVendorCDR_20' ) end [2025-01-29 05:46:17] Production.INFO: ProcessCDR(1,14354273,1,1,2) [2025-01-29 05:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14354273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 05:46:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14354273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 05:46:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14354273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 05:46:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14354273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 05:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354273', 'tblTempUsageDetail_20' ) start [2025-01-29 05:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354273', 'tblTempUsageDetail_20' ) end [2025-01-29 05:46:20] Production.ERROR: pbx prc_insertCDR start [2025-01-29 05:46:20] Production.ERROR: pbx prc_insertCDR end [2025-01-29 05:46:20] Production.INFO: ==25600== Releasing lock... [2025-01-29 05:46:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 05:46:20] Production.INFO: 28.25 MB #Memory Used# [2025-01-29 05:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 02:47:05 [end_date_ymd] => 2025-01-29 05:47:05 [RateCDR] => 1 ) [2025-01-29 05:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 02:47:05' and `end` < '2025-01-29 05:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 05:47:17] Production.INFO: count ==124 [2025-01-29 05:47:17] Production.ERROR: pbx CDR StartTime 2025-01-29 02:47:05 - End Time 2025-01-29 05:47:05 [2025-01-29 05:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 05:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354278', 'tblTempUsageDetail_20' ) start [2025-01-29 05:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354278', 'tblTempUsageDetail_20' ) end [2025-01-29 05:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354278', 'tblTempVendorCDR_20' ) start [2025-01-29 05:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354278', 'tblTempVendorCDR_20' ) end [2025-01-29 05:47:17] Production.INFO: ProcessCDR(1,14354278,1,1,2) [2025-01-29 05:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14354278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 05:47:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14354278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 05:47:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14354278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 05:47:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14354278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 05:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354278', 'tblTempUsageDetail_20' ) start [2025-01-29 05:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354278', 'tblTempUsageDetail_20' ) end [2025-01-29 05:47:20] Production.ERROR: pbx prc_insertCDR start [2025-01-29 05:47:20] Production.ERROR: pbx prc_insertCDR end [2025-01-29 05:47:20] Production.INFO: ==25675== Releasing lock... [2025-01-29 05:47:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 05:47:20] Production.INFO: 28.25 MB #Memory Used# [2025-01-29 05:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 02:48:05 [end_date_ymd] => 2025-01-29 05:48:05 [RateCDR] => 1 ) [2025-01-29 05:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 02:48:05' and `end` < '2025-01-29 05:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 05:48:18] Production.INFO: count ==124 [2025-01-29 05:48:18] Production.ERROR: pbx CDR StartTime 2025-01-29 02:48:05 - End Time 2025-01-29 05:48:05 [2025-01-29 05:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 05:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354283', 'tblTempUsageDetail_20' ) start [2025-01-29 05:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354283', 'tblTempUsageDetail_20' ) end [2025-01-29 05:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354283', 'tblTempVendorCDR_20' ) start [2025-01-29 05:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354283', 'tblTempVendorCDR_20' ) end [2025-01-29 05:48:18] Production.INFO: ProcessCDR(1,14354283,1,1,2) [2025-01-29 05:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14354283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 05:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14354283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 05:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14354283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 05:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14354283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 05:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354283', 'tblTempUsageDetail_20' ) start [2025-01-29 05:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354283', 'tblTempUsageDetail_20' ) end [2025-01-29 05:48:21] Production.ERROR: pbx prc_insertCDR start [2025-01-29 05:48:21] Production.ERROR: pbx prc_insertCDR end [2025-01-29 05:48:21] Production.INFO: ==25748== Releasing lock... [2025-01-29 05:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 05:48:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-29 05:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 02:49:05 [end_date_ymd] => 2025-01-29 05:49:05 [RateCDR] => 1 ) [2025-01-29 05:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 02:49:05' and `end` < '2025-01-29 05:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 05:49:18] Production.INFO: count ==120 [2025-01-29 05:49:18] Production.ERROR: pbx CDR StartTime 2025-01-29 02:49:05 - End Time 2025-01-29 05:49:05 [2025-01-29 05:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 05:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354288', 'tblTempUsageDetail_20' ) start [2025-01-29 05:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354288', 'tblTempUsageDetail_20' ) end [2025-01-29 05:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354288', 'tblTempVendorCDR_20' ) start [2025-01-29 05:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354288', 'tblTempVendorCDR_20' ) end [2025-01-29 05:49:18] Production.INFO: ProcessCDR(1,14354288,1,1,2) [2025-01-29 05:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14354288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 05:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14354288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 05:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14354288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 05:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14354288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 05:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354288', 'tblTempUsageDetail_20' ) start [2025-01-29 05:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354288', 'tblTempUsageDetail_20' ) end [2025-01-29 05:49:21] Production.ERROR: pbx prc_insertCDR start [2025-01-29 05:49:21] Production.ERROR: pbx prc_insertCDR end [2025-01-29 05:49:21] Production.INFO: ==25823== Releasing lock... [2025-01-29 05:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 05:49:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-29 05:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 02:50:06 [end_date_ymd] => 2025-01-29 05:50:06 [RateCDR] => 1 ) [2025-01-29 05:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 02:50:06' and `end` < '2025-01-29 05:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 05:50:18] Production.INFO: count ==101 [2025-01-29 05:50:18] Production.ERROR: pbx CDR StartTime 2025-01-29 02:50:06 - End Time 2025-01-29 05:50:06 [2025-01-29 05:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 05:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354294', 'tblTempUsageDetail_20' ) start [2025-01-29 05:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354294', 'tblTempUsageDetail_20' ) end [2025-01-29 05:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354294', 'tblTempVendorCDR_20' ) start [2025-01-29 05:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354294', 'tblTempVendorCDR_20' ) end [2025-01-29 05:50:18] Production.INFO: ProcessCDR(1,14354294,1,1,2) [2025-01-29 05:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14354294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 05:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14354294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 05:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14354294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 05:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14354294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 05:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354294', 'tblTempUsageDetail_20' ) start [2025-01-29 05:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354294', 'tblTempUsageDetail_20' ) end [2025-01-29 05:50:21] Production.ERROR: pbx prc_insertCDR start [2025-01-29 05:50:21] Production.ERROR: pbx prc_insertCDR end [2025-01-29 05:50:21] Production.INFO: ==25897== Releasing lock... [2025-01-29 05:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 05:50:21] Production.INFO: 28 MB #Memory Used# [2025-01-29 05:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 02:51:06 [end_date_ymd] => 2025-01-29 05:51:06 [RateCDR] => 1 ) [2025-01-29 05:51:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 02:51:06' and `end` < '2025-01-29 05:51:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 05:51:18] Production.INFO: count ==99 [2025-01-29 05:51:18] Production.ERROR: pbx CDR StartTime 2025-01-29 02:51:06 - End Time 2025-01-29 05:51:06 [2025-01-29 05:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 05:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354299', 'tblTempUsageDetail_20' ) start [2025-01-29 05:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354299', 'tblTempUsageDetail_20' ) end [2025-01-29 05:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354299', 'tblTempVendorCDR_20' ) start [2025-01-29 05:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354299', 'tblTempVendorCDR_20' ) end [2025-01-29 05:51:18] Production.INFO: ProcessCDR(1,14354299,1,1,2) [2025-01-29 05:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14354299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 05:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14354299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 05:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14354299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 05:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14354299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 05:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354299', 'tblTempUsageDetail_20' ) start [2025-01-29 05:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354299', 'tblTempUsageDetail_20' ) end [2025-01-29 05:51:21] Production.ERROR: pbx prc_insertCDR start [2025-01-29 05:51:21] Production.ERROR: pbx prc_insertCDR end [2025-01-29 05:51:21] Production.INFO: ==25975== Releasing lock... [2025-01-29 05:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 05:51:21] Production.INFO: 28 MB #Memory Used# [2025-01-29 05:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 02:52:05 [end_date_ymd] => 2025-01-29 05:52:05 [RateCDR] => 1 ) [2025-01-29 05:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 02:52:05' and `end` < '2025-01-29 05:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 05:52:18] Production.INFO: count ==99 [2025-01-29 05:52:18] Production.ERROR: pbx CDR StartTime 2025-01-29 02:52:05 - End Time 2025-01-29 05:52:05 [2025-01-29 05:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 05:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354304', 'tblTempUsageDetail_20' ) start [2025-01-29 05:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354304', 'tblTempUsageDetail_20' ) end [2025-01-29 05:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354304', 'tblTempVendorCDR_20' ) start [2025-01-29 05:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354304', 'tblTempVendorCDR_20' ) end [2025-01-29 05:52:18] Production.INFO: ProcessCDR(1,14354304,1,1,2) [2025-01-29 05:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14354304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 05:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14354304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 05:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14354304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 05:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14354304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 05:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354304', 'tblTempUsageDetail_20' ) start [2025-01-29 05:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354304', 'tblTempUsageDetail_20' ) end [2025-01-29 05:52:21] Production.ERROR: pbx prc_insertCDR start [2025-01-29 05:52:21] Production.ERROR: pbx prc_insertCDR end [2025-01-29 05:52:21] Production.INFO: ==26048== Releasing lock... [2025-01-29 05:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 05:52:21] Production.INFO: 28 MB #Memory Used# [2025-01-29 05:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 02:53:05 [end_date_ymd] => 2025-01-29 05:53:05 [RateCDR] => 1 ) [2025-01-29 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-01-29 02:53:05' and `end` < '2025-01-29 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-01-29 05:53:18] Production.INFO: count ==96 [2025-01-29 05:53:18] Production.ERROR: pbx CDR StartTime 2025-01-29 02:53:05 - End Time 2025-01-29 05:53:05 [2025-01-29 05:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 05:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354309', 'tblTempUsageDetail_20' ) start [2025-01-29 05:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354309', 'tblTempUsageDetail_20' ) end [2025-01-29 05:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354309', 'tblTempVendorCDR_20' ) start [2025-01-29 05:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354309', 'tblTempVendorCDR_20' ) end [2025-01-29 05:53:18] Production.INFO: ProcessCDR(1,14354309,1,1,2) [2025-01-29 05:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14354309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 05:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14354309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 05:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14354309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 05:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14354309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 05:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354309', 'tblTempUsageDetail_20' ) start [2025-01-29 05:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354309', 'tblTempUsageDetail_20' ) end [2025-01-29 05:53:22] Production.ERROR: pbx prc_insertCDR start [2025-01-29 05:53:22] Production.ERROR: pbx prc_insertCDR end [2025-01-29 05:53:22] Production.INFO: ==26159== Releasing lock... [2025-01-29 05:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 05:53:22] Production.INFO: 28 MB #Memory Used# [2025-01-29 05:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 02:54:05 [end_date_ymd] => 2025-01-29 05:54:05 [RateCDR] => 1 ) [2025-01-29 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-01-29 02:54:05' and `end` < '2025-01-29 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-01-29 05:54:17] Production.INFO: count ==96 [2025-01-29 05:54:17] Production.ERROR: pbx CDR StartTime 2025-01-29 02:54:05 - End Time 2025-01-29 05:54:05 [2025-01-29 05:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 05:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354314', 'tblTempUsageDetail_20' ) start [2025-01-29 05:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354314', 'tblTempUsageDetail_20' ) end [2025-01-29 05:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354314', 'tblTempVendorCDR_20' ) start [2025-01-29 05:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354314', 'tblTempVendorCDR_20' ) end [2025-01-29 05:54:17] Production.INFO: ProcessCDR(1,14354314,1,1,2) [2025-01-29 05:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14354314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 05:54:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14354314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 05:54:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14354314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 05:54:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14354314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 05:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354314', 'tblTempUsageDetail_20' ) start [2025-01-29 05:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354314', 'tblTempUsageDetail_20' ) end [2025-01-29 05:54:20] Production.ERROR: pbx prc_insertCDR start [2025-01-29 05:54:20] Production.ERROR: pbx prc_insertCDR end [2025-01-29 05:54:20] Production.INFO: ==26231== Releasing lock... [2025-01-29 05:54:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 05:54:20] Production.INFO: 28 MB #Memory Used# [2025-01-29 05:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 02:55:05 [end_date_ymd] => 2025-01-29 05:55:05 [RateCDR] => 1 ) [2025-01-29 05:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 02:55:05' and `end` < '2025-01-29 05:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 05:55:17] Production.INFO: count ==96 [2025-01-29 05:55:17] Production.ERROR: pbx CDR StartTime 2025-01-29 02:55:05 - End Time 2025-01-29 05:55:05 [2025-01-29 05:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 05:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354319', 'tblTempUsageDetail_20' ) start [2025-01-29 05:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354319', 'tblTempUsageDetail_20' ) end [2025-01-29 05:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354319', 'tblTempVendorCDR_20' ) start [2025-01-29 05:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354319', 'tblTempVendorCDR_20' ) end [2025-01-29 05:55:17] Production.INFO: ProcessCDR(1,14354319,1,1,2) [2025-01-29 05:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14354319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 05:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14354319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 05:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14354319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 05:55:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14354319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 05:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354319', 'tblTempUsageDetail_20' ) start [2025-01-29 05:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354319', 'tblTempUsageDetail_20' ) end [2025-01-29 05:55:20] Production.ERROR: pbx prc_insertCDR start [2025-01-29 05:55:20] Production.ERROR: pbx prc_insertCDR end [2025-01-29 05:55:20] Production.INFO: ==26301== Releasing lock... [2025-01-29 05:55:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 05:55:20] Production.INFO: 28 MB #Memory Used# [2025-01-29 05:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 02:56:05 [end_date_ymd] => 2025-01-29 05:56:05 [RateCDR] => 1 ) [2025-01-29 05:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 02:56:05' and `end` < '2025-01-29 05:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 05:56:18] Production.INFO: count ==96 [2025-01-29 05:56:18] Production.ERROR: pbx CDR StartTime 2025-01-29 02:56:05 - End Time 2025-01-29 05:56:05 [2025-01-29 05:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 05:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354324', 'tblTempUsageDetail_20' ) start [2025-01-29 05:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354324', 'tblTempUsageDetail_20' ) end [2025-01-29 05:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354324', 'tblTempVendorCDR_20' ) start [2025-01-29 05:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354324', 'tblTempVendorCDR_20' ) end [2025-01-29 05:56:18] Production.INFO: ProcessCDR(1,14354324,1,1,2) [2025-01-29 05:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14354324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 05:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14354324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 05:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14354324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 05:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14354324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 05:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354324', 'tblTempUsageDetail_20' ) start [2025-01-29 05:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354324', 'tblTempUsageDetail_20' ) end [2025-01-29 05:56:21] Production.ERROR: pbx prc_insertCDR start [2025-01-29 05:56:21] Production.ERROR: pbx prc_insertCDR end [2025-01-29 05:56:21] Production.INFO: ==26376== Releasing lock... [2025-01-29 05:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 05:56:21] Production.INFO: 28 MB #Memory Used# [2025-01-29 05:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 02:57:05 [end_date_ymd] => 2025-01-29 05:57:05 [RateCDR] => 1 ) [2025-01-29 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-01-29 02:57:05' and `end` < '2025-01-29 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-01-29 05:57:17] Production.INFO: count ==96 [2025-01-29 05:57:17] Production.ERROR: pbx CDR StartTime 2025-01-29 02:57:05 - End Time 2025-01-29 05:57:05 [2025-01-29 05:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 05:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354329', 'tblTempUsageDetail_20' ) start [2025-01-29 05:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354329', 'tblTempUsageDetail_20' ) end [2025-01-29 05:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354329', 'tblTempVendorCDR_20' ) start [2025-01-29 05:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354329', 'tblTempVendorCDR_20' ) end [2025-01-29 05:57:17] Production.INFO: ProcessCDR(1,14354329,1,1,2) [2025-01-29 05:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14354329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 05:57:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14354329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 05:57:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14354329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 05:57:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14354329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 05:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354329', 'tblTempUsageDetail_20' ) start [2025-01-29 05:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354329', 'tblTempUsageDetail_20' ) end [2025-01-29 05:57:20] Production.ERROR: pbx prc_insertCDR start [2025-01-29 05:57:20] Production.ERROR: pbx prc_insertCDR end [2025-01-29 05:57:20] Production.INFO: ==26449== Releasing lock... [2025-01-29 05:57:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 05:57:20] Production.INFO: 28 MB #Memory Used# [2025-01-29 05:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 02:58:05 [end_date_ymd] => 2025-01-29 05:58:05 [RateCDR] => 1 ) [2025-01-29 05:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 02:58:05' and `end` < '2025-01-29 05:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 05:58:19] Production.INFO: count ==96 [2025-01-29 05:58:19] Production.ERROR: pbx CDR StartTime 2025-01-29 02:58:05 - End Time 2025-01-29 05:58:05 [2025-01-29 05:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 05:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354334', 'tblTempUsageDetail_20' ) start [2025-01-29 05:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354334', 'tblTempUsageDetail_20' ) end [2025-01-29 05:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354334', 'tblTempVendorCDR_20' ) start [2025-01-29 05:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354334', 'tblTempVendorCDR_20' ) end [2025-01-29 05:58:19] Production.INFO: ProcessCDR(1,14354334,1,1,2) [2025-01-29 05:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14354334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 05:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14354334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 05:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14354334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 05:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14354334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 05:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354334', 'tblTempUsageDetail_20' ) start [2025-01-29 05:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354334', 'tblTempUsageDetail_20' ) end [2025-01-29 05:58:22] Production.ERROR: pbx prc_insertCDR start [2025-01-29 05:58:22] Production.ERROR: pbx prc_insertCDR end [2025-01-29 05:58:22] Production.INFO: ==26519== Releasing lock... [2025-01-29 05:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 05:58:22] Production.INFO: 28 MB #Memory Used# [2025-01-29 05:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 02:59:05 [end_date_ymd] => 2025-01-29 05:59:05 [RateCDR] => 1 ) [2025-01-29 05:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 02:59:05' and `end` < '2025-01-29 05:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 05:59:18] Production.INFO: count ==96 [2025-01-29 05:59:18] Production.ERROR: pbx CDR StartTime 2025-01-29 02:59:05 - End Time 2025-01-29 05:59:05 [2025-01-29 05:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 05:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354339', 'tblTempUsageDetail_20' ) start [2025-01-29 05:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354339', 'tblTempUsageDetail_20' ) end [2025-01-29 05:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354339', 'tblTempVendorCDR_20' ) start [2025-01-29 05:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354339', 'tblTempVendorCDR_20' ) end [2025-01-29 05:59:18] Production.INFO: ProcessCDR(1,14354339,1,1,2) [2025-01-29 05:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14354339,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 05:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14354339,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 05:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14354339,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 05:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14354339,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 05:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354339', 'tblTempUsageDetail_20' ) start [2025-01-29 05:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354339', 'tblTempUsageDetail_20' ) end [2025-01-29 05:59:21] Production.ERROR: pbx prc_insertCDR start [2025-01-29 05:59:21] Production.ERROR: pbx prc_insertCDR end [2025-01-29 05:59:21] Production.INFO: ==26589== Releasing lock... [2025-01-29 05:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 05:59:21] Production.INFO: 28 MB #Memory Used# [2025-01-29 06:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 03:00:06 [end_date_ymd] => 2025-01-29 06:00:06 [RateCDR] => 1 ) [2025-01-29 06:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 03:00:06' and `end` < '2025-01-29 06:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 06:00:19] Production.INFO: count ==96 [2025-01-29 06:00:19] Production.ERROR: pbx CDR StartTime 2025-01-29 03:00:06 - End Time 2025-01-29 06:00:06 [2025-01-29 06:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 06:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354344', 'tblTempUsageDetail_20' ) start [2025-01-29 06:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354344', 'tblTempUsageDetail_20' ) end [2025-01-29 06:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354344', 'tblTempVendorCDR_20' ) start [2025-01-29 06:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354344', 'tblTempVendorCDR_20' ) end [2025-01-29 06:00:19] Production.INFO: ProcessCDR(1,14354344,1,1,2) [2025-01-29 06:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14354344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 06:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14354344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 06:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14354344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 06:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14354344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 06:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354344', 'tblTempUsageDetail_20' ) start [2025-01-29 06:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354344', 'tblTempUsageDetail_20' ) end [2025-01-29 06:00:22] Production.ERROR: pbx prc_insertCDR start [2025-01-29 06:00:22] Production.ERROR: pbx prc_insertCDR end [2025-01-29 06:00:22] Production.INFO: ==26667== Releasing lock... [2025-01-29 06:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 06:00:22] Production.INFO: 28 MB #Memory Used# [2025-01-29 06:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 03:01:05 [end_date_ymd] => 2025-01-29 06:01:05 [RateCDR] => 1 ) [2025-01-29 06:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 03:01:05' and `end` < '2025-01-29 06:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 06:01:18] Production.INFO: count ==96 [2025-01-29 06:01:18] Production.ERROR: pbx CDR StartTime 2025-01-29 03:01:05 - End Time 2025-01-29 06:01:05 [2025-01-29 06:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 06:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354350', 'tblTempUsageDetail_20' ) start [2025-01-29 06:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354350', 'tblTempUsageDetail_20' ) end [2025-01-29 06:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354350', 'tblTempVendorCDR_20' ) start [2025-01-29 06:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354350', 'tblTempVendorCDR_20' ) end [2025-01-29 06:01:18] Production.INFO: ProcessCDR(1,14354350,1,1,2) [2025-01-29 06:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14354350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 06:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14354350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 06:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14354350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 06:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14354350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 06:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354350', 'tblTempUsageDetail_20' ) start [2025-01-29 06:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354350', 'tblTempUsageDetail_20' ) end [2025-01-29 06:01:21] Production.ERROR: pbx prc_insertCDR start [2025-01-29 06:01:21] Production.ERROR: pbx prc_insertCDR end [2025-01-29 06:01:21] Production.INFO: ==26754== Releasing lock... [2025-01-29 06:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 06:01:21] Production.INFO: 28 MB #Memory Used# [2025-01-29 06:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 03:02:06 [end_date_ymd] => 2025-01-29 06:02:06 [RateCDR] => 1 ) [2025-01-29 06:02:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 03:02:06' and `end` < '2025-01-29 06:02:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 06:02:19] Production.INFO: count ==96 [2025-01-29 06:02:19] Production.ERROR: pbx CDR StartTime 2025-01-29 03:02:06 - End Time 2025-01-29 06:02:06 [2025-01-29 06:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 06:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354355', 'tblTempUsageDetail_20' ) start [2025-01-29 06:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354355', 'tblTempUsageDetail_20' ) end [2025-01-29 06:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354355', 'tblTempVendorCDR_20' ) start [2025-01-29 06:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354355', 'tblTempVendorCDR_20' ) end [2025-01-29 06:02:19] Production.INFO: ProcessCDR(1,14354355,1,1,2) [2025-01-29 06:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14354355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 06:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14354355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 06:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14354355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 06:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14354355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 06:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354355', 'tblTempUsageDetail_20' ) start [2025-01-29 06:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354355', 'tblTempUsageDetail_20' ) end [2025-01-29 06:02:22] Production.ERROR: pbx prc_insertCDR start [2025-01-29 06:02:22] Production.ERROR: pbx prc_insertCDR end [2025-01-29 06:02:22] Production.INFO: ==26825== Releasing lock... [2025-01-29 06:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 06:02:22] Production.INFO: 28 MB #Memory Used# [2025-01-29 06:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 03:03:05 [end_date_ymd] => 2025-01-29 06:03:05 [RateCDR] => 1 ) [2025-01-29 06:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 03:03:05' and `end` < '2025-01-29 06:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 06:03:18] Production.INFO: count ==96 [2025-01-29 06:03:18] Production.ERROR: pbx CDR StartTime 2025-01-29 03:03:05 - End Time 2025-01-29 06:03:05 [2025-01-29 06:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 06:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354360', 'tblTempUsageDetail_20' ) start [2025-01-29 06:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354360', 'tblTempUsageDetail_20' ) end [2025-01-29 06:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354360', 'tblTempVendorCDR_20' ) start [2025-01-29 06:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354360', 'tblTempVendorCDR_20' ) end [2025-01-29 06:03:18] Production.INFO: ProcessCDR(1,14354360,1,1,2) [2025-01-29 06:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14354360,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 06:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14354360,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 06:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14354360,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 06:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14354360,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 06:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354360', 'tblTempUsageDetail_20' ) start [2025-01-29 06:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354360', 'tblTempUsageDetail_20' ) end [2025-01-29 06:03:22] Production.ERROR: pbx prc_insertCDR start [2025-01-29 06:03:22] Production.ERROR: pbx prc_insertCDR end [2025-01-29 06:03:22] Production.INFO: ==26894== Releasing lock... [2025-01-29 06:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 06:03:22] Production.INFO: 28 MB #Memory Used# [2025-01-29 06:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 03:04:06 [end_date_ymd] => 2025-01-29 06:04:06 [RateCDR] => 1 ) [2025-01-29 06:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 03:04:06' and `end` < '2025-01-29 06:04:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 06:04:20] Production.INFO: count ==96 [2025-01-29 06:04:20] Production.ERROR: pbx CDR StartTime 2025-01-29 03:04:06 - End Time 2025-01-29 06:04:06 [2025-01-29 06:04:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 06:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354365', 'tblTempUsageDetail_20' ) start [2025-01-29 06:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354365', 'tblTempUsageDetail_20' ) end [2025-01-29 06:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354365', 'tblTempVendorCDR_20' ) start [2025-01-29 06:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354365', 'tblTempVendorCDR_20' ) end [2025-01-29 06:04:20] Production.INFO: ProcessCDR(1,14354365,1,1,2) [2025-01-29 06:04:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14354365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 06:04:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14354365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 06:04:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14354365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 06:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14354365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 06:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354365', 'tblTempUsageDetail_20' ) start [2025-01-29 06:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354365', 'tblTempUsageDetail_20' ) end [2025-01-29 06:04:23] Production.ERROR: pbx prc_insertCDR start [2025-01-29 06:04:23] Production.ERROR: pbx prc_insertCDR end [2025-01-29 06:04:23] Production.INFO: ==26967== Releasing lock... [2025-01-29 06:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 06:04:23] Production.INFO: 28.25 MB #Memory Used# [2025-01-29 06:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 03:05:05 [end_date_ymd] => 2025-01-29 06:05:05 [RateCDR] => 1 ) [2025-01-29 06:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 03:05:05' and `end` < '2025-01-29 06:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 06:05:18] Production.INFO: count ==96 [2025-01-29 06:05:18] Production.ERROR: pbx CDR StartTime 2025-01-29 03:05:05 - End Time 2025-01-29 06:05:05 [2025-01-29 06:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 06:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354370', 'tblTempUsageDetail_20' ) start [2025-01-29 06:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354370', 'tblTempUsageDetail_20' ) end [2025-01-29 06:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354370', 'tblTempVendorCDR_20' ) start [2025-01-29 06:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354370', 'tblTempVendorCDR_20' ) end [2025-01-29 06:05:18] Production.INFO: ProcessCDR(1,14354370,1,1,2) [2025-01-29 06:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14354370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 06:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14354370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 06:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14354370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 06:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14354370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 06:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354370', 'tblTempUsageDetail_20' ) start [2025-01-29 06:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354370', 'tblTempUsageDetail_20' ) end [2025-01-29 06:05:21] Production.ERROR: pbx prc_insertCDR start [2025-01-29 06:05:21] Production.ERROR: pbx prc_insertCDR end [2025-01-29 06:05:21] Production.INFO: ==27037== Releasing lock... [2025-01-29 06:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 06:05:21] Production.INFO: 28 MB #Memory Used# [2025-01-29 06:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 03:06:06 [end_date_ymd] => 2025-01-29 06:06:06 [RateCDR] => 1 ) [2025-01-29 06:06:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 03:06:06' and `end` < '2025-01-29 06:06:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 06:06:19] Production.INFO: count ==96 [2025-01-29 06:06:19] Production.ERROR: pbx CDR StartTime 2025-01-29 03:06:06 - End Time 2025-01-29 06:06:06 [2025-01-29 06:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 06:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354375', 'tblTempUsageDetail_20' ) start [2025-01-29 06:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354375', 'tblTempUsageDetail_20' ) end [2025-01-29 06:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354375', 'tblTempVendorCDR_20' ) start [2025-01-29 06:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354375', 'tblTempVendorCDR_20' ) end [2025-01-29 06:06:19] Production.INFO: ProcessCDR(1,14354375,1,1,2) [2025-01-29 06:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14354375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 06:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14354375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 06:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14354375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 06:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14354375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 06:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354375', 'tblTempUsageDetail_20' ) start [2025-01-29 06:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354375', 'tblTempUsageDetail_20' ) end [2025-01-29 06:06:22] Production.ERROR: pbx prc_insertCDR start [2025-01-29 06:06:22] Production.ERROR: pbx prc_insertCDR end [2025-01-29 06:06:22] Production.INFO: ==27110== Releasing lock... [2025-01-29 06:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 06:06:22] Production.INFO: 28 MB #Memory Used# [2025-01-29 06:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 03:07:05 [end_date_ymd] => 2025-01-29 06:07:05 [RateCDR] => 1 ) [2025-01-29 06:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 03:07:05' and `end` < '2025-01-29 06:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 06:07:18] Production.INFO: count ==96 [2025-01-29 06:07:18] Production.ERROR: pbx CDR StartTime 2025-01-29 03:07:05 - End Time 2025-01-29 06:07:05 [2025-01-29 06:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 06:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354380', 'tblTempUsageDetail_20' ) start [2025-01-29 06:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354380', 'tblTempUsageDetail_20' ) end [2025-01-29 06:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354380', 'tblTempVendorCDR_20' ) start [2025-01-29 06:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354380', 'tblTempVendorCDR_20' ) end [2025-01-29 06:07:18] Production.INFO: ProcessCDR(1,14354380,1,1,2) [2025-01-29 06:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14354380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 06:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14354380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 06:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14354380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 06:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14354380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 06:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354380', 'tblTempUsageDetail_20' ) start [2025-01-29 06:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354380', 'tblTempUsageDetail_20' ) end [2025-01-29 06:07:21] Production.ERROR: pbx prc_insertCDR start [2025-01-29 06:07:21] Production.ERROR: pbx prc_insertCDR end [2025-01-29 06:07:21] Production.INFO: ==27187== Releasing lock... [2025-01-29 06:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 06:07:21] Production.INFO: 28 MB #Memory Used# [2025-01-29 06:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 03:08:06 [end_date_ymd] => 2025-01-29 06:08:06 [RateCDR] => 1 ) [2025-01-29 06:08:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 03:08:06' and `end` < '2025-01-29 06:08:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 06:08:18] Production.INFO: count ==96 [2025-01-29 06:08:18] Production.ERROR: pbx CDR StartTime 2025-01-29 03:08:06 - End Time 2025-01-29 06:08:06 [2025-01-29 06:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 06:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354385', 'tblTempUsageDetail_20' ) start [2025-01-29 06:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354385', 'tblTempUsageDetail_20' ) end [2025-01-29 06:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354385', 'tblTempVendorCDR_20' ) start [2025-01-29 06:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354385', 'tblTempVendorCDR_20' ) end [2025-01-29 06:08:18] Production.INFO: ProcessCDR(1,14354385,1,1,2) [2025-01-29 06:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14354385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 06:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14354385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 06:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14354385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 06:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14354385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 06:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354385', 'tblTempUsageDetail_20' ) start [2025-01-29 06:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354385', 'tblTempUsageDetail_20' ) end [2025-01-29 06:08:22] Production.ERROR: pbx prc_insertCDR start [2025-01-29 06:08:22] Production.ERROR: pbx prc_insertCDR end [2025-01-29 06:08:22] Production.INFO: ==27298== Releasing lock... [2025-01-29 06:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 06:08:22] Production.INFO: 28 MB #Memory Used# [2025-01-29 06:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 03:09:05 [end_date_ymd] => 2025-01-29 06:09:05 [RateCDR] => 1 ) [2025-01-29 06:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 03:09:05' and `end` < '2025-01-29 06:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 06:09:18] Production.INFO: count ==96 [2025-01-29 06:09:18] Production.ERROR: pbx CDR StartTime 2025-01-29 03:09:05 - End Time 2025-01-29 06:09:05 [2025-01-29 06:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 06:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354390', 'tblTempUsageDetail_20' ) start [2025-01-29 06:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354390', 'tblTempUsageDetail_20' ) end [2025-01-29 06:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354390', 'tblTempVendorCDR_20' ) start [2025-01-29 06:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354390', 'tblTempVendorCDR_20' ) end [2025-01-29 06:09:18] Production.INFO: ProcessCDR(1,14354390,1,1,2) [2025-01-29 06:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14354390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 06:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14354390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 06:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14354390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 06:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14354390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 06:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354390', 'tblTempUsageDetail_20' ) start [2025-01-29 06:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354390', 'tblTempUsageDetail_20' ) end [2025-01-29 06:09:21] Production.ERROR: pbx prc_insertCDR start [2025-01-29 06:09:21] Production.ERROR: pbx prc_insertCDR end [2025-01-29 06:09:21] Production.INFO: ==27372== Releasing lock... [2025-01-29 06:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 06:09:21] Production.INFO: 28 MB #Memory Used# [2025-01-29 06:10:07] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 03:10:07 [end_date_ymd] => 2025-01-29 06:10:07 [RateCDR] => 1 ) [2025-01-29 06:10:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 03:10:07' and `end` < '2025-01-29 06:10:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 06:10:19] Production.INFO: count ==94 [2025-01-29 06:10:19] Production.ERROR: pbx CDR StartTime 2025-01-29 03:10:07 - End Time 2025-01-29 06:10:07 [2025-01-29 06:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 06:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354396', 'tblTempUsageDetail_20' ) start [2025-01-29 06:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354396', 'tblTempUsageDetail_20' ) end [2025-01-29 06:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354396', 'tblTempVendorCDR_20' ) start [2025-01-29 06:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354396', 'tblTempVendorCDR_20' ) end [2025-01-29 06:10:19] Production.INFO: ProcessCDR(1,14354396,1,1,2) [2025-01-29 06:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14354396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 06:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14354396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 06:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14354396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 06:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14354396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 06:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354396', 'tblTempUsageDetail_20' ) start [2025-01-29 06:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354396', 'tblTempUsageDetail_20' ) end [2025-01-29 06:10:23] Production.ERROR: pbx prc_insertCDR start [2025-01-29 06:10:23] Production.ERROR: pbx prc_insertCDR end [2025-01-29 06:10:23] Production.INFO: ==27447== Releasing lock... [2025-01-29 06:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 06:10:23] Production.INFO: 28 MB #Memory Used# [2025-01-29 06:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 03:11:05 [end_date_ymd] => 2025-01-29 06:11:05 [RateCDR] => 1 ) [2025-01-29 06:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 03:11:05' and `end` < '2025-01-29 06:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 06:11:18] Production.INFO: count ==94 [2025-01-29 06:11:18] Production.ERROR: pbx CDR StartTime 2025-01-29 03:11:05 - End Time 2025-01-29 06:11:05 [2025-01-29 06:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 06:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354401', 'tblTempUsageDetail_20' ) start [2025-01-29 06:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354401', 'tblTempUsageDetail_20' ) end [2025-01-29 06:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354401', 'tblTempVendorCDR_20' ) start [2025-01-29 06:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354401', 'tblTempVendorCDR_20' ) end [2025-01-29 06:11:18] Production.INFO: ProcessCDR(1,14354401,1,1,2) [2025-01-29 06:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14354401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 06:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14354401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 06:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14354401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 06:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14354401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 06:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354401', 'tblTempUsageDetail_20' ) start [2025-01-29 06:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354401', 'tblTempUsageDetail_20' ) end [2025-01-29 06:11:21] Production.ERROR: pbx prc_insertCDR start [2025-01-29 06:11:21] Production.ERROR: pbx prc_insertCDR end [2025-01-29 06:11:21] Production.INFO: ==27542== Releasing lock... [2025-01-29 06:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 06:11:21] Production.INFO: 28 MB #Memory Used# [2025-01-29 06:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 03:12:06 [end_date_ymd] => 2025-01-29 06:12:06 [RateCDR] => 1 ) [2025-01-29 06:12:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 03:12:06' and `end` < '2025-01-29 06:12:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 06:12:19] Production.INFO: count ==94 [2025-01-29 06:12:19] Production.ERROR: pbx CDR StartTime 2025-01-29 03:12:06 - End Time 2025-01-29 06:12:06 [2025-01-29 06:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 06:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354406', 'tblTempUsageDetail_20' ) start [2025-01-29 06:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354406', 'tblTempUsageDetail_20' ) end [2025-01-29 06:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354406', 'tblTempVendorCDR_20' ) start [2025-01-29 06:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354406', 'tblTempVendorCDR_20' ) end [2025-01-29 06:12:19] Production.INFO: ProcessCDR(1,14354406,1,1,2) [2025-01-29 06:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14354406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 06:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14354406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 06:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14354406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 06:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14354406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 06:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354406', 'tblTempUsageDetail_20' ) start [2025-01-29 06:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354406', 'tblTempUsageDetail_20' ) end [2025-01-29 06:12:22] Production.ERROR: pbx prc_insertCDR start [2025-01-29 06:12:22] Production.ERROR: pbx prc_insertCDR end [2025-01-29 06:12:22] Production.INFO: ==27616== Releasing lock... [2025-01-29 06:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 06:12:22] Production.INFO: 28 MB #Memory Used# [2025-01-29 06:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 03:13:05 [end_date_ymd] => 2025-01-29 06:13:05 [RateCDR] => 1 ) [2025-01-29 06:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 03:13:05' and `end` < '2025-01-29 06:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 06:13:18] Production.INFO: count ==96 [2025-01-29 06:13:18] Production.ERROR: pbx CDR StartTime 2025-01-29 03:13:05 - End Time 2025-01-29 06:13:05 [2025-01-29 06:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 06:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354411', 'tblTempUsageDetail_20' ) start [2025-01-29 06:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354411', 'tblTempUsageDetail_20' ) end [2025-01-29 06:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354411', 'tblTempVendorCDR_20' ) start [2025-01-29 06:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354411', 'tblTempVendorCDR_20' ) end [2025-01-29 06:13:18] Production.INFO: ProcessCDR(1,14354411,1,1,2) [2025-01-29 06:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14354411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 06:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14354411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 06:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14354411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 06:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14354411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 06:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354411', 'tblTempUsageDetail_20' ) start [2025-01-29 06:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354411', 'tblTempUsageDetail_20' ) end [2025-01-29 06:13:22] Production.ERROR: pbx prc_insertCDR start [2025-01-29 06:13:22] Production.ERROR: pbx prc_insertCDR end [2025-01-29 06:13:22] Production.INFO: ==27686== Releasing lock... [2025-01-29 06:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 06:13:22] Production.INFO: 28 MB #Memory Used# [2025-01-29 06:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 03:14:06 [end_date_ymd] => 2025-01-29 06:14:06 [RateCDR] => 1 ) [2025-01-29 06:14:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 03:14:06' and `end` < '2025-01-29 06:14:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 06:14:18] Production.INFO: count ==96 [2025-01-29 06:14:18] Production.ERROR: pbx CDR StartTime 2025-01-29 03:14:06 - End Time 2025-01-29 06:14:06 [2025-01-29 06:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 06:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354416', 'tblTempUsageDetail_20' ) start [2025-01-29 06:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354416', 'tblTempUsageDetail_20' ) end [2025-01-29 06:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354416', 'tblTempVendorCDR_20' ) start [2025-01-29 06:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354416', 'tblTempVendorCDR_20' ) end [2025-01-29 06:14:18] Production.INFO: ProcessCDR(1,14354416,1,1,2) [2025-01-29 06:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14354416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 06:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14354416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 06:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14354416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 06:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14354416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 06:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354416', 'tblTempUsageDetail_20' ) start [2025-01-29 06:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354416', 'tblTempUsageDetail_20' ) end [2025-01-29 06:14:22] Production.ERROR: pbx prc_insertCDR start [2025-01-29 06:14:22] Production.ERROR: pbx prc_insertCDR end [2025-01-29 06:14:22] Production.INFO: ==27759== Releasing lock... [2025-01-29 06:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 06:14:22] Production.INFO: 28 MB #Memory Used# [2025-01-29 06:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 03:15:06 [end_date_ymd] => 2025-01-29 06:15:06 [RateCDR] => 1 ) [2025-01-29 06:15:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 03:15:06' and `end` < '2025-01-29 06:15:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 06:15:19] Production.INFO: count ==96 [2025-01-29 06:15:19] Production.ERROR: pbx CDR StartTime 2025-01-29 03:15:06 - End Time 2025-01-29 06:15:06 [2025-01-29 06:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 06:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354421', 'tblTempUsageDetail_20' ) start [2025-01-29 06:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354421', 'tblTempUsageDetail_20' ) end [2025-01-29 06:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354421', 'tblTempVendorCDR_20' ) start [2025-01-29 06:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354421', 'tblTempVendorCDR_20' ) end [2025-01-29 06:15:19] Production.INFO: ProcessCDR(1,14354421,1,1,2) [2025-01-29 06:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14354421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 06:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14354421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 06:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14354421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 06:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14354421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 06:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354421', 'tblTempUsageDetail_20' ) start [2025-01-29 06:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354421', 'tblTempUsageDetail_20' ) end [2025-01-29 06:15:22] Production.ERROR: pbx prc_insertCDR start [2025-01-29 06:15:22] Production.ERROR: pbx prc_insertCDR end [2025-01-29 06:15:22] Production.INFO: ==27838== Releasing lock... [2025-01-29 06:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 06:15:22] Production.INFO: 28 MB #Memory Used# [2025-01-29 06:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 03:16:06 [end_date_ymd] => 2025-01-29 06:16:06 [RateCDR] => 1 ) [2025-01-29 06:16:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 03:16:06' and `end` < '2025-01-29 06:16:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 06:16:20] Production.INFO: count ==96 [2025-01-29 06:16:20] Production.ERROR: pbx CDR StartTime 2025-01-29 03:16:06 - End Time 2025-01-29 06:16:06 [2025-01-29 06:16:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 06:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354426', 'tblTempUsageDetail_20' ) start [2025-01-29 06:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354426', 'tblTempUsageDetail_20' ) end [2025-01-29 06:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354426', 'tblTempVendorCDR_20' ) start [2025-01-29 06:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354426', 'tblTempVendorCDR_20' ) end [2025-01-29 06:16:20] Production.INFO: ProcessCDR(1,14354426,1,1,2) [2025-01-29 06:16:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14354426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 06:16:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14354426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 06:16:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14354426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 06:16:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14354426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 06:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354426', 'tblTempUsageDetail_20' ) start [2025-01-29 06:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354426', 'tblTempUsageDetail_20' ) end [2025-01-29 06:16:23] Production.ERROR: pbx prc_insertCDR start [2025-01-29 06:16:23] Production.ERROR: pbx prc_insertCDR end [2025-01-29 06:16:23] Production.INFO: ==27910== Releasing lock... [2025-01-29 06:16:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 06:16:23] Production.INFO: 28 MB #Memory Used# [2025-01-29 06:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 03:17:05 [end_date_ymd] => 2025-01-29 06:17:05 [RateCDR] => 1 ) [2025-01-29 06:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 03:17:05' and `end` < '2025-01-29 06:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 06:17:19] Production.INFO: count ==96 [2025-01-29 06:17:19] Production.ERROR: pbx CDR StartTime 2025-01-29 03:17:05 - End Time 2025-01-29 06:17:05 [2025-01-29 06:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 06:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354431', 'tblTempUsageDetail_20' ) start [2025-01-29 06:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354431', 'tblTempUsageDetail_20' ) end [2025-01-29 06:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354431', 'tblTempVendorCDR_20' ) start [2025-01-29 06:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354431', 'tblTempVendorCDR_20' ) end [2025-01-29 06:17:19] Production.INFO: ProcessCDR(1,14354431,1,1,2) [2025-01-29 06:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14354431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 06:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14354431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 06:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14354431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 06:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14354431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 06:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354431', 'tblTempUsageDetail_20' ) start [2025-01-29 06:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354431', 'tblTempUsageDetail_20' ) end [2025-01-29 06:17:22] Production.ERROR: pbx prc_insertCDR start [2025-01-29 06:17:22] Production.ERROR: pbx prc_insertCDR end [2025-01-29 06:17:22] Production.INFO: ==27982== Releasing lock... [2025-01-29 06:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 06:17:22] Production.INFO: 28 MB #Memory Used# [2025-01-29 06:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 03:18:06 [end_date_ymd] => 2025-01-29 06:18:06 [RateCDR] => 1 ) [2025-01-29 06:18:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 03:18:06' and `end` < '2025-01-29 06:18:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 06:18:19] Production.INFO: count ==96 [2025-01-29 06:18:19] Production.ERROR: pbx CDR StartTime 2025-01-29 03:18:06 - End Time 2025-01-29 06:18:06 [2025-01-29 06:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 06:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354436', 'tblTempUsageDetail_20' ) start [2025-01-29 06:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354436', 'tblTempUsageDetail_20' ) end [2025-01-29 06:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354436', 'tblTempVendorCDR_20' ) start [2025-01-29 06:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354436', 'tblTempVendorCDR_20' ) end [2025-01-29 06:18:19] Production.INFO: ProcessCDR(1,14354436,1,1,2) [2025-01-29 06:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14354436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 06:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14354436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 06:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14354436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 06:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14354436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 06:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354436', 'tblTempUsageDetail_20' ) start [2025-01-29 06:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354436', 'tblTempUsageDetail_20' ) end [2025-01-29 06:18:22] Production.ERROR: pbx prc_insertCDR start [2025-01-29 06:18:22] Production.ERROR: pbx prc_insertCDR end [2025-01-29 06:18:22] Production.INFO: ==28055== Releasing lock... [2025-01-29 06:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 06:18:22] Production.INFO: 28 MB #Memory Used# [2025-01-29 06:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 03:19:06 [end_date_ymd] => 2025-01-29 06:19:06 [RateCDR] => 1 ) [2025-01-29 06:19:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 03:19:06' and `end` < '2025-01-29 06:19:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 06:19:18] Production.INFO: count ==96 [2025-01-29 06:19:18] Production.ERROR: pbx CDR StartTime 2025-01-29 03:19:06 - End Time 2025-01-29 06:19:06 [2025-01-29 06:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 06:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354441', 'tblTempUsageDetail_20' ) start [2025-01-29 06:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354441', 'tblTempUsageDetail_20' ) end [2025-01-29 06:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354441', 'tblTempVendorCDR_20' ) start [2025-01-29 06:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354441', 'tblTempVendorCDR_20' ) end [2025-01-29 06:19:18] Production.INFO: ProcessCDR(1,14354441,1,1,2) [2025-01-29 06:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14354441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 06:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14354441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 06:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14354441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 06:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14354441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 06:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354441', 'tblTempUsageDetail_20' ) start [2025-01-29 06:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354441', 'tblTempUsageDetail_20' ) end [2025-01-29 06:19:22] Production.ERROR: pbx prc_insertCDR start [2025-01-29 06:19:22] Production.ERROR: pbx prc_insertCDR end [2025-01-29 06:19:22] Production.INFO: ==28135== Releasing lock... [2025-01-29 06:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 06:19:22] Production.INFO: 28 MB #Memory Used# [2025-01-29 06:20:07] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 03:20:07 [end_date_ymd] => 2025-01-29 06:20:07 [RateCDR] => 1 ) [2025-01-29 06:20:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 03:20:07' and `end` < '2025-01-29 06:20:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 06:20:19] Production.INFO: count ==98 [2025-01-29 06:20:19] Production.ERROR: pbx CDR StartTime 2025-01-29 03:20:07 - End Time 2025-01-29 06:20:07 [2025-01-29 06:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 06:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354447', 'tblTempUsageDetail_20' ) start [2025-01-29 06:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354447', 'tblTempUsageDetail_20' ) end [2025-01-29 06:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354447', 'tblTempVendorCDR_20' ) start [2025-01-29 06:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354447', 'tblTempVendorCDR_20' ) end [2025-01-29 06:20:19] Production.INFO: ProcessCDR(1,14354447,1,1,2) [2025-01-29 06:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14354447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 06:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14354447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 06:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14354447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 06:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14354447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 06:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354447', 'tblTempUsageDetail_20' ) start [2025-01-29 06:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354447', 'tblTempUsageDetail_20' ) end [2025-01-29 06:20:23] Production.ERROR: pbx prc_insertCDR start [2025-01-29 06:20:23] Production.ERROR: pbx prc_insertCDR end [2025-01-29 06:20:23] Production.INFO: ==28213== Releasing lock... [2025-01-29 06:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 06:20:23] Production.INFO: 28 MB #Memory Used# [2025-01-29 06:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 03:21:05 [end_date_ymd] => 2025-01-29 06:21:05 [RateCDR] => 1 ) [2025-01-29 06:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 03:21:05' and `end` < '2025-01-29 06:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 06:21:19] Production.INFO: count ==98 [2025-01-29 06:21:19] Production.ERROR: pbx CDR StartTime 2025-01-29 03:21:05 - End Time 2025-01-29 06:21:05 [2025-01-29 06:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 06:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354452', 'tblTempUsageDetail_20' ) start [2025-01-29 06:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354452', 'tblTempUsageDetail_20' ) end [2025-01-29 06:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354452', 'tblTempVendorCDR_20' ) start [2025-01-29 06:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354452', 'tblTempVendorCDR_20' ) end [2025-01-29 06:21:19] Production.INFO: ProcessCDR(1,14354452,1,1,2) [2025-01-29 06:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14354452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 06:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14354452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 06:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14354452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 06:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14354452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 06:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354452', 'tblTempUsageDetail_20' ) start [2025-01-29 06:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354452', 'tblTempUsageDetail_20' ) end [2025-01-29 06:21:22] Production.ERROR: pbx prc_insertCDR start [2025-01-29 06:21:22] Production.ERROR: pbx prc_insertCDR end [2025-01-29 06:21:22] Production.INFO: ==28296== Releasing lock... [2025-01-29 06:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 06:21:22] Production.INFO: 28 MB #Memory Used# [2025-01-29 06:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 03:22:06 [end_date_ymd] => 2025-01-29 06:22:06 [RateCDR] => 1 ) [2025-01-29 06:22:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 03:22:06' and `end` < '2025-01-29 06:22:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 06:22:19] Production.INFO: count ==98 [2025-01-29 06:22:19] Production.ERROR: pbx CDR StartTime 2025-01-29 03:22:06 - End Time 2025-01-29 06:22:06 [2025-01-29 06:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 06:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354457', 'tblTempUsageDetail_20' ) start [2025-01-29 06:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354457', 'tblTempUsageDetail_20' ) end [2025-01-29 06:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354457', 'tblTempVendorCDR_20' ) start [2025-01-29 06:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354457', 'tblTempVendorCDR_20' ) end [2025-01-29 06:22:19] Production.INFO: ProcessCDR(1,14354457,1,1,2) [2025-01-29 06:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14354457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 06:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14354457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 06:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14354457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 06:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14354457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 06:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354457', 'tblTempUsageDetail_20' ) start [2025-01-29 06:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354457', 'tblTempUsageDetail_20' ) end [2025-01-29 06:22:22] Production.ERROR: pbx prc_insertCDR start [2025-01-29 06:22:22] Production.ERROR: pbx prc_insertCDR end [2025-01-29 06:22:22] Production.INFO: ==28384== Releasing lock... [2025-01-29 06:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 06:22:22] Production.INFO: 28 MB #Memory Used# [2025-01-29 06:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 03:23:05 [end_date_ymd] => 2025-01-29 06:23:05 [RateCDR] => 1 ) [2025-01-29 06:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 03:23:05' and `end` < '2025-01-29 06:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 06:23:18] Production.INFO: count ==98 [2025-01-29 06:23:18] Production.ERROR: pbx CDR StartTime 2025-01-29 03:23:05 - End Time 2025-01-29 06:23:05 [2025-01-29 06:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 06:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354462', 'tblTempUsageDetail_20' ) start [2025-01-29 06:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354462', 'tblTempUsageDetail_20' ) end [2025-01-29 06:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354462', 'tblTempVendorCDR_20' ) start [2025-01-29 06:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354462', 'tblTempVendorCDR_20' ) end [2025-01-29 06:23:18] Production.INFO: ProcessCDR(1,14354462,1,1,2) [2025-01-29 06:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14354462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 06:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14354462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 06:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14354462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 06:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14354462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 06:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354462', 'tblTempUsageDetail_20' ) start [2025-01-29 06:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354462', 'tblTempUsageDetail_20' ) end [2025-01-29 06:23:22] Production.ERROR: pbx prc_insertCDR start [2025-01-29 06:23:22] Production.ERROR: pbx prc_insertCDR end [2025-01-29 06:23:22] Production.INFO: ==28463== Releasing lock... [2025-01-29 06:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 06:23:22] Production.INFO: 28 MB #Memory Used# [2025-01-29 06:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 03:24:06 [end_date_ymd] => 2025-01-29 06:24:06 [RateCDR] => 1 ) [2025-01-29 06:24:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 03:24:06' and `end` < '2025-01-29 06:24:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 06:24:20] Production.INFO: count ==98 [2025-01-29 06:24:20] Production.ERROR: pbx CDR StartTime 2025-01-29 03:24:06 - End Time 2025-01-29 06:24:06 [2025-01-29 06:24:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 06:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354467', 'tblTempUsageDetail_20' ) start [2025-01-29 06:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354467', 'tblTempUsageDetail_20' ) end [2025-01-29 06:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354467', 'tblTempVendorCDR_20' ) start [2025-01-29 06:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354467', 'tblTempVendorCDR_20' ) end [2025-01-29 06:24:20] Production.INFO: ProcessCDR(1,14354467,1,1,2) [2025-01-29 06:24:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14354467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 06:24:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14354467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 06:24:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14354467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 06:24:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14354467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 06:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354467', 'tblTempUsageDetail_20' ) start [2025-01-29 06:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354467', 'tblTempUsageDetail_20' ) end [2025-01-29 06:24:23] Production.ERROR: pbx prc_insertCDR start [2025-01-29 06:24:23] Production.ERROR: pbx prc_insertCDR end [2025-01-29 06:24:24] Production.INFO: ==28582== Releasing lock... [2025-01-29 06:24:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 06:24:24] Production.INFO: 28 MB #Memory Used# [2025-01-29 06:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 03:25:05 [end_date_ymd] => 2025-01-29 06:25:05 [RateCDR] => 1 ) [2025-01-29 06:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 03:25:05' and `end` < '2025-01-29 06:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 06:25:18] Production.INFO: count ==98 [2025-01-29 06:25:18] Production.ERROR: pbx CDR StartTime 2025-01-29 03:25:05 - End Time 2025-01-29 06:25:05 [2025-01-29 06:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354472', 'tblTempUsageDetail_20' ) start [2025-01-29 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354472', 'tblTempUsageDetail_20' ) end [2025-01-29 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354472', 'tblTempVendorCDR_20' ) start [2025-01-29 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354472', 'tblTempVendorCDR_20' ) end [2025-01-29 06:25:18] Production.INFO: ProcessCDR(1,14354472,1,1,2) [2025-01-29 06:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14354472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 06:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14354472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 06:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14354472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 06:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14354472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 06:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354472', 'tblTempUsageDetail_20' ) start [2025-01-29 06:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354472', 'tblTempUsageDetail_20' ) end [2025-01-29 06:25:21] Production.ERROR: pbx prc_insertCDR start [2025-01-29 06:25:21] Production.ERROR: pbx prc_insertCDR end [2025-01-29 06:25:21] Production.INFO: ==28666== Releasing lock... [2025-01-29 06:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 06:25:21] Production.INFO: 28 MB #Memory Used# [2025-01-29 06:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 03:26:06 [end_date_ymd] => 2025-01-29 06:26:06 [RateCDR] => 1 ) [2025-01-29 06:26:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 03:26:06' and `end` < '2025-01-29 06:26:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 06:26:19] Production.INFO: count ==98 [2025-01-29 06:26:19] Production.ERROR: pbx CDR StartTime 2025-01-29 03:26:06 - End Time 2025-01-29 06:26:06 [2025-01-29 06:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 06:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354477', 'tblTempUsageDetail_20' ) start [2025-01-29 06:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354477', 'tblTempUsageDetail_20' ) end [2025-01-29 06:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354477', 'tblTempVendorCDR_20' ) start [2025-01-29 06:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354477', 'tblTempVendorCDR_20' ) end [2025-01-29 06:26:19] Production.INFO: ProcessCDR(1,14354477,1,1,2) [2025-01-29 06:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14354477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 06:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14354477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 06:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14354477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 06:26:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14354477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 06:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354477', 'tblTempUsageDetail_20' ) start [2025-01-29 06:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354477', 'tblTempUsageDetail_20' ) end [2025-01-29 06:26:23] Production.ERROR: pbx prc_insertCDR start [2025-01-29 06:26:23] Production.ERROR: pbx prc_insertCDR end [2025-01-29 06:26:23] Production.INFO: ==28753== Releasing lock... [2025-01-29 06:26:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 06:26:23] Production.INFO: 28 MB #Memory Used# [2025-01-29 06:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 03:27:05 [end_date_ymd] => 2025-01-29 06:27:05 [RateCDR] => 1 ) [2025-01-29 06:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 03:27:05' and `end` < '2025-01-29 06:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 06:27:18] Production.INFO: count ==98 [2025-01-29 06:27:18] Production.ERROR: pbx CDR StartTime 2025-01-29 03:27:05 - End Time 2025-01-29 06:27:05 [2025-01-29 06:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 06:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354482', 'tblTempUsageDetail_20' ) start [2025-01-29 06:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354482', 'tblTempUsageDetail_20' ) end [2025-01-29 06:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354482', 'tblTempVendorCDR_20' ) start [2025-01-29 06:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354482', 'tblTempVendorCDR_20' ) end [2025-01-29 06:27:18] Production.INFO: ProcessCDR(1,14354482,1,1,2) [2025-01-29 06:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14354482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 06:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14354482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 06:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14354482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 06:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14354482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 06:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354482', 'tblTempUsageDetail_20' ) start [2025-01-29 06:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354482', 'tblTempUsageDetail_20' ) end [2025-01-29 06:27:21] Production.ERROR: pbx prc_insertCDR start [2025-01-29 06:27:21] Production.ERROR: pbx prc_insertCDR end [2025-01-29 06:27:21] Production.INFO: ==28836== Releasing lock... [2025-01-29 06:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 06:27:21] Production.INFO: 28 MB #Memory Used# [2025-01-29 06:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 03:28:06 [end_date_ymd] => 2025-01-29 06:28:06 [RateCDR] => 1 ) [2025-01-29 06:28:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 03:28:06' and `end` < '2025-01-29 06:28:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 06:28:18] Production.INFO: count ==98 [2025-01-29 06:28:18] Production.ERROR: pbx CDR StartTime 2025-01-29 03:28:06 - End Time 2025-01-29 06:28:06 [2025-01-29 06:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 06:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354487', 'tblTempUsageDetail_20' ) start [2025-01-29 06:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354487', 'tblTempUsageDetail_20' ) end [2025-01-29 06:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354487', 'tblTempVendorCDR_20' ) start [2025-01-29 06:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354487', 'tblTempVendorCDR_20' ) end [2025-01-29 06:28:18] Production.INFO: ProcessCDR(1,14354487,1,1,2) [2025-01-29 06:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14354487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 06:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14354487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 06:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14354487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 06:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14354487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 06:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354487', 'tblTempUsageDetail_20' ) start [2025-01-29 06:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354487', 'tblTempUsageDetail_20' ) end [2025-01-29 06:28:22] Production.ERROR: pbx prc_insertCDR start [2025-01-29 06:28:22] Production.ERROR: pbx prc_insertCDR end [2025-01-29 06:28:22] Production.INFO: ==28915== Releasing lock... [2025-01-29 06:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 06:28:22] Production.INFO: 28 MB #Memory Used# [2025-01-29 06:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 03:29:05 [end_date_ymd] => 2025-01-29 06:29:05 [RateCDR] => 1 ) [2025-01-29 06:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 03:29:05' and `end` < '2025-01-29 06:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 06:29:18] Production.INFO: count ==98 [2025-01-29 06:29:18] Production.ERROR: pbx CDR StartTime 2025-01-29 03:29:05 - End Time 2025-01-29 06:29:05 [2025-01-29 06:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 06:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354492', 'tblTempUsageDetail_20' ) start [2025-01-29 06:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354492', 'tblTempUsageDetail_20' ) end [2025-01-29 06:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354492', 'tblTempVendorCDR_20' ) start [2025-01-29 06:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354492', 'tblTempVendorCDR_20' ) end [2025-01-29 06:29:18] Production.INFO: ProcessCDR(1,14354492,1,1,2) [2025-01-29 06:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14354492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 06:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14354492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 06:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14354492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 06:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14354492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 06:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354492', 'tblTempUsageDetail_20' ) start [2025-01-29 06:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354492', 'tblTempUsageDetail_20' ) end [2025-01-29 06:29:21] Production.ERROR: pbx prc_insertCDR start [2025-01-29 06:29:21] Production.ERROR: pbx prc_insertCDR end [2025-01-29 06:29:21] Production.INFO: ==28998== Releasing lock... [2025-01-29 06:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 06:29:21] Production.INFO: 28 MB #Memory Used# [2025-01-29 06:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 03:30:06 [end_date_ymd] => 2025-01-29 06:30:06 [RateCDR] => 1 ) [2025-01-29 06:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 03:30:06' and `end` < '2025-01-29 06:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 06:30:19] Production.INFO: count ==102 [2025-01-29 06:30:19] Production.ERROR: pbx CDR StartTime 2025-01-29 03:30:06 - End Time 2025-01-29 06:30:06 [2025-01-29 06:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 06:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354498', 'tblTempUsageDetail_20' ) start [2025-01-29 06:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354498', 'tblTempUsageDetail_20' ) end [2025-01-29 06:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354498', 'tblTempVendorCDR_20' ) start [2025-01-29 06:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354498', 'tblTempVendorCDR_20' ) end [2025-01-29 06:30:19] Production.INFO: ProcessCDR(1,14354498,1,1,2) [2025-01-29 06:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14354498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 06:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14354498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 06:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14354498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 06:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14354498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 06:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354498', 'tblTempUsageDetail_20' ) start [2025-01-29 06:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354498', 'tblTempUsageDetail_20' ) end [2025-01-29 06:30:22] Production.ERROR: pbx prc_insertCDR start [2025-01-29 06:30:22] Production.ERROR: pbx prc_insertCDR end [2025-01-29 06:30:22] Production.INFO: ==29083== Releasing lock... [2025-01-29 06:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 06:30:22] Production.INFO: 28 MB #Memory Used# [2025-01-29 06:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 03:31:05 [end_date_ymd] => 2025-01-29 06:31:05 [RateCDR] => 1 ) [2025-01-29 06:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 03:31:05' and `end` < '2025-01-29 06:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 06:31:19] Production.INFO: count ==107 [2025-01-29 06:31:19] Production.ERROR: pbx CDR StartTime 2025-01-29 03:31:05 - End Time 2025-01-29 06:31:05 [2025-01-29 06:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 06:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354503', 'tblTempUsageDetail_20' ) start [2025-01-29 06:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354503', 'tblTempUsageDetail_20' ) end [2025-01-29 06:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354503', 'tblTempVendorCDR_20' ) start [2025-01-29 06:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354503', 'tblTempVendorCDR_20' ) end [2025-01-29 06:31:19] Production.INFO: ProcessCDR(1,14354503,1,1,2) [2025-01-29 06:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14354503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 06:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14354503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 06:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14354503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 06:31:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14354503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 06:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354503', 'tblTempUsageDetail_20' ) start [2025-01-29 06:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354503', 'tblTempUsageDetail_20' ) end [2025-01-29 06:31:23] Production.ERROR: pbx prc_insertCDR start [2025-01-29 06:31:23] Production.ERROR: pbx prc_insertCDR end [2025-01-29 06:31:23] Production.INFO: ==29165== Releasing lock... [2025-01-29 06:31:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 06:31:23] Production.INFO: 28.25 MB #Memory Used# [2025-01-29 06:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 03:32:06 [end_date_ymd] => 2025-01-29 06:32:06 [RateCDR] => 1 ) [2025-01-29 06:32:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 03:32:06' and `end` < '2025-01-29 06:32:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 06:32:19] Production.INFO: count ==107 [2025-01-29 06:32:19] Production.ERROR: pbx CDR StartTime 2025-01-29 03:32:06 - End Time 2025-01-29 06:32:06 [2025-01-29 06:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 06:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354508', 'tblTempUsageDetail_20' ) start [2025-01-29 06:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354508', 'tblTempUsageDetail_20' ) end [2025-01-29 06:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354508', 'tblTempVendorCDR_20' ) start [2025-01-29 06:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354508', 'tblTempVendorCDR_20' ) end [2025-01-29 06:32:19] Production.INFO: ProcessCDR(1,14354508,1,1,2) [2025-01-29 06:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14354508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 06:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14354508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 06:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14354508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 06:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14354508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 06:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354508', 'tblTempUsageDetail_20' ) start [2025-01-29 06:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354508', 'tblTempUsageDetail_20' ) end [2025-01-29 06:32:22] Production.ERROR: pbx prc_insertCDR start [2025-01-29 06:32:22] Production.ERROR: pbx prc_insertCDR end [2025-01-29 06:32:22] Production.INFO: ==29248== Releasing lock... [2025-01-29 06:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 06:32:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-29 06:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 03:33:05 [end_date_ymd] => 2025-01-29 06:33:05 [RateCDR] => 1 ) [2025-01-29 06:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 03:33:05' and `end` < '2025-01-29 06:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 06:33:18] Production.INFO: count ==107 [2025-01-29 06:33:18] Production.ERROR: pbx CDR StartTime 2025-01-29 03:33:05 - End Time 2025-01-29 06:33:05 [2025-01-29 06:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 06:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354513', 'tblTempUsageDetail_20' ) start [2025-01-29 06:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354513', 'tblTempUsageDetail_20' ) end [2025-01-29 06:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354513', 'tblTempVendorCDR_20' ) start [2025-01-29 06:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354513', 'tblTempVendorCDR_20' ) end [2025-01-29 06:33:18] Production.INFO: ProcessCDR(1,14354513,1,1,2) [2025-01-29 06:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14354513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 06:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14354513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 06:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14354513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 06:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14354513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 06:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354513', 'tblTempUsageDetail_20' ) start [2025-01-29 06:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354513', 'tblTempUsageDetail_20' ) end [2025-01-29 06:33:21] Production.ERROR: pbx prc_insertCDR start [2025-01-29 06:33:21] Production.ERROR: pbx prc_insertCDR end [2025-01-29 06:33:21] Production.INFO: ==29340== Releasing lock... [2025-01-29 06:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 06:33:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-29 06:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 03:34:06 [end_date_ymd] => 2025-01-29 06:34:06 [RateCDR] => 1 ) [2025-01-29 06:34:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 03:34:06' and `end` < '2025-01-29 06:34:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 06:34:19] Production.INFO: count ==107 [2025-01-29 06:34:19] Production.ERROR: pbx CDR StartTime 2025-01-29 03:34:06 - End Time 2025-01-29 06:34:06 [2025-01-29 06:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 06:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354518', 'tblTempUsageDetail_20' ) start [2025-01-29 06:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354518', 'tblTempUsageDetail_20' ) end [2025-01-29 06:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354518', 'tblTempVendorCDR_20' ) start [2025-01-29 06:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354518', 'tblTempVendorCDR_20' ) end [2025-01-29 06:34:19] Production.INFO: ProcessCDR(1,14354518,1,1,2) [2025-01-29 06:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14354518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 06:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14354518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 06:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14354518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 06:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14354518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 06:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354518', 'tblTempUsageDetail_20' ) start [2025-01-29 06:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354518', 'tblTempUsageDetail_20' ) end [2025-01-29 06:34:22] Production.ERROR: pbx prc_insertCDR start [2025-01-29 06:34:22] Production.ERROR: pbx prc_insertCDR end [2025-01-29 06:34:22] Production.INFO: ==29425== Releasing lock... [2025-01-29 06:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 06:34:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-29 06:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 03:35:05 [end_date_ymd] => 2025-01-29 06:35:05 [RateCDR] => 1 ) [2025-01-29 06:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 03:35:05' and `end` < '2025-01-29 06:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 06:35:18] Production.INFO: count ==107 [2025-01-29 06:35:18] Production.ERROR: pbx CDR StartTime 2025-01-29 03:35:05 - End Time 2025-01-29 06:35:05 [2025-01-29 06:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 06:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354523', 'tblTempUsageDetail_20' ) start [2025-01-29 06:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354523', 'tblTempUsageDetail_20' ) end [2025-01-29 06:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354523', 'tblTempVendorCDR_20' ) start [2025-01-29 06:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354523', 'tblTempVendorCDR_20' ) end [2025-01-29 06:35:18] Production.INFO: ProcessCDR(1,14354523,1,1,2) [2025-01-29 06:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14354523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 06:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14354523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 06:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14354523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 06:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14354523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 06:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354523', 'tblTempUsageDetail_20' ) start [2025-01-29 06:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354523', 'tblTempUsageDetail_20' ) end [2025-01-29 06:35:21] Production.ERROR: pbx prc_insertCDR start [2025-01-29 06:35:21] Production.ERROR: pbx prc_insertCDR end [2025-01-29 06:35:21] Production.INFO: ==29510== Releasing lock... [2025-01-29 06:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 06:35:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-29 06:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 03:36:06 [end_date_ymd] => 2025-01-29 06:36:06 [RateCDR] => 1 ) [2025-01-29 06:36:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 03:36:06' and `end` < '2025-01-29 06:36:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 06:36:19] Production.INFO: count ==107 [2025-01-29 06:36:19] Production.ERROR: pbx CDR StartTime 2025-01-29 03:36:06 - End Time 2025-01-29 06:36:06 [2025-01-29 06:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 06:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354528', 'tblTempUsageDetail_20' ) start [2025-01-29 06:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354528', 'tblTempUsageDetail_20' ) end [2025-01-29 06:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354528', 'tblTempVendorCDR_20' ) start [2025-01-29 06:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354528', 'tblTempVendorCDR_20' ) end [2025-01-29 06:36:19] Production.INFO: ProcessCDR(1,14354528,1,1,2) [2025-01-29 06:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14354528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 06:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14354528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 06:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14354528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 06:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14354528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 06:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354528', 'tblTempUsageDetail_20' ) start [2025-01-29 06:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354528', 'tblTempUsageDetail_20' ) end [2025-01-29 06:36:22] Production.ERROR: pbx prc_insertCDR start [2025-01-29 06:36:22] Production.ERROR: pbx prc_insertCDR end [2025-01-29 06:36:22] Production.INFO: ==29597== Releasing lock... [2025-01-29 06:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 06:36:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-29 06:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 03:37:05 [end_date_ymd] => 2025-01-29 06:37:05 [RateCDR] => 1 ) [2025-01-29 06:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 03:37:05' and `end` < '2025-01-29 06:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 06:37:18] Production.INFO: count ==106 [2025-01-29 06:37:18] Production.ERROR: pbx CDR StartTime 2025-01-29 03:37:05 - End Time 2025-01-29 06:37:05 [2025-01-29 06:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 06:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354533', 'tblTempUsageDetail_20' ) start [2025-01-29 06:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354533', 'tblTempUsageDetail_20' ) end [2025-01-29 06:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354533', 'tblTempVendorCDR_20' ) start [2025-01-29 06:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354533', 'tblTempVendorCDR_20' ) end [2025-01-29 06:37:18] Production.INFO: ProcessCDR(1,14354533,1,1,2) [2025-01-29 06:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14354533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 06:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14354533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 06:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14354533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 06:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14354533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 06:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354533', 'tblTempUsageDetail_20' ) start [2025-01-29 06:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354533', 'tblTempUsageDetail_20' ) end [2025-01-29 06:37:21] Production.ERROR: pbx prc_insertCDR start [2025-01-29 06:37:21] Production.ERROR: pbx prc_insertCDR end [2025-01-29 06:37:21] Production.INFO: ==29680== Releasing lock... [2025-01-29 06:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 06:37:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-29 06:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 03:38:06 [end_date_ymd] => 2025-01-29 06:38:06 [RateCDR] => 1 ) [2025-01-29 06:38:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 03:38:06' and `end` < '2025-01-29 06:38:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 06:38:19] Production.INFO: count ==105 [2025-01-29 06:38:19] Production.ERROR: pbx CDR StartTime 2025-01-29 03:38:06 - End Time 2025-01-29 06:38:06 [2025-01-29 06:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 06:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354538', 'tblTempUsageDetail_20' ) start [2025-01-29 06:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354538', 'tblTempUsageDetail_20' ) end [2025-01-29 06:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354538', 'tblTempVendorCDR_20' ) start [2025-01-29 06:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354538', 'tblTempVendorCDR_20' ) end [2025-01-29 06:38:19] Production.INFO: ProcessCDR(1,14354538,1,1,2) [2025-01-29 06:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14354538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 06:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14354538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 06:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14354538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 06:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14354538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 06:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354538', 'tblTempUsageDetail_20' ) start [2025-01-29 06:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354538', 'tblTempUsageDetail_20' ) end [2025-01-29 06:38:22] Production.ERROR: pbx prc_insertCDR start [2025-01-29 06:38:22] Production.ERROR: pbx prc_insertCDR end [2025-01-29 06:38:22] Production.INFO: ==29768== Releasing lock... [2025-01-29 06:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 06:38:22] Production.INFO: 28 MB #Memory Used# [2025-01-29 06:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 03:39:05 [end_date_ymd] => 2025-01-29 06:39:05 [RateCDR] => 1 ) [2025-01-29 06:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 03:39:05' and `end` < '2025-01-29 06:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 06:39:18] Production.INFO: count ==104 [2025-01-29 06:39:18] Production.ERROR: pbx CDR StartTime 2025-01-29 03:39:05 - End Time 2025-01-29 06:39:05 [2025-01-29 06:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 06:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354543', 'tblTempUsageDetail_20' ) start [2025-01-29 06:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354543', 'tblTempUsageDetail_20' ) end [2025-01-29 06:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354543', 'tblTempVendorCDR_20' ) start [2025-01-29 06:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354543', 'tblTempVendorCDR_20' ) end [2025-01-29 06:39:18] Production.INFO: ProcessCDR(1,14354543,1,1,2) [2025-01-29 06:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14354543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 06:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14354543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 06:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14354543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 06:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14354543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 06:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354543', 'tblTempUsageDetail_20' ) start [2025-01-29 06:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354543', 'tblTempUsageDetail_20' ) end [2025-01-29 06:39:22] Production.ERROR: pbx prc_insertCDR start [2025-01-29 06:39:22] Production.ERROR: pbx prc_insertCDR end [2025-01-29 06:39:22] Production.INFO: ==29896== Releasing lock... [2025-01-29 06:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 06:39:22] Production.INFO: 28 MB #Memory Used# [2025-01-29 06:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 03:40:06 [end_date_ymd] => 2025-01-29 06:40:06 [RateCDR] => 1 ) [2025-01-29 06:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 03:40:06' and `end` < '2025-01-29 06:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 06:40:19] Production.INFO: count ==98 [2025-01-29 06:40:19] Production.ERROR: pbx CDR StartTime 2025-01-29 03:40:06 - End Time 2025-01-29 06:40:06 [2025-01-29 06:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 06:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354549', 'tblTempUsageDetail_20' ) start [2025-01-29 06:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354549', 'tblTempUsageDetail_20' ) end [2025-01-29 06:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354549', 'tblTempVendorCDR_20' ) start [2025-01-29 06:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354549', 'tblTempVendorCDR_20' ) end [2025-01-29 06:40:19] Production.INFO: ProcessCDR(1,14354549,1,1,2) [2025-01-29 06:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14354549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 06:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14354549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 06:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14354549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 06:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14354549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 06:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354549', 'tblTempUsageDetail_20' ) start [2025-01-29 06:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354549', 'tblTempUsageDetail_20' ) end [2025-01-29 06:40:22] Production.ERROR: pbx prc_insertCDR start [2025-01-29 06:40:22] Production.ERROR: pbx prc_insertCDR end [2025-01-29 06:40:22] Production.INFO: ==29987== Releasing lock... [2025-01-29 06:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 06:40:22] Production.INFO: 28 MB #Memory Used# [2025-01-29 06:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 03:41:05 [end_date_ymd] => 2025-01-29 06:41:05 [RateCDR] => 1 ) [2025-01-29 06:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 03:41:05' and `end` < '2025-01-29 06:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 06:41:18] Production.INFO: count ==96 [2025-01-29 06:41:18] Production.ERROR: pbx CDR StartTime 2025-01-29 03:41:05 - End Time 2025-01-29 06:41:05 [2025-01-29 06:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 06:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354554', 'tblTempUsageDetail_20' ) start [2025-01-29 06:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354554', 'tblTempUsageDetail_20' ) end [2025-01-29 06:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354554', 'tblTempVendorCDR_20' ) start [2025-01-29 06:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354554', 'tblTempVendorCDR_20' ) end [2025-01-29 06:41:18] Production.INFO: ProcessCDR(1,14354554,1,1,2) [2025-01-29 06:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14354554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 06:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14354554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 06:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14354554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 06:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14354554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 06:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354554', 'tblTempUsageDetail_20' ) start [2025-01-29 06:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354554', 'tblTempUsageDetail_20' ) end [2025-01-29 06:41:21] Production.ERROR: pbx prc_insertCDR start [2025-01-29 06:41:21] Production.ERROR: pbx prc_insertCDR end [2025-01-29 06:41:21] Production.INFO: ==30079== Releasing lock... [2025-01-29 06:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 06:41:21] Production.INFO: 28 MB #Memory Used# [2025-01-29 06:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 03:42:05 [end_date_ymd] => 2025-01-29 06:42:05 [RateCDR] => 1 ) [2025-01-29 06:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 03:42:05' and `end` < '2025-01-29 06:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 06:42:18] Production.INFO: count ==96 [2025-01-29 06:42:19] Production.ERROR: pbx CDR StartTime 2025-01-29 03:42:05 - End Time 2025-01-29 06:42:05 [2025-01-29 06:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 06:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354559', 'tblTempUsageDetail_20' ) start [2025-01-29 06:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354559', 'tblTempUsageDetail_20' ) end [2025-01-29 06:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354559', 'tblTempVendorCDR_20' ) start [2025-01-29 06:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354559', 'tblTempVendorCDR_20' ) end [2025-01-29 06:42:19] Production.INFO: ProcessCDR(1,14354559,1,1,2) [2025-01-29 06:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14354559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 06:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14354559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 06:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14354559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 06:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14354559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 06:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354559', 'tblTempUsageDetail_20' ) start [2025-01-29 06:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354559', 'tblTempUsageDetail_20' ) end [2025-01-29 06:42:22] Production.ERROR: pbx prc_insertCDR start [2025-01-29 06:42:22] Production.ERROR: pbx prc_insertCDR end [2025-01-29 06:42:22] Production.INFO: ==30167== Releasing lock... [2025-01-29 06:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 06:42:22] Production.INFO: 28 MB #Memory Used# [2025-01-29 06:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 03:43:05 [end_date_ymd] => 2025-01-29 06:43:05 [RateCDR] => 1 ) [2025-01-29 06:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 03:43:05' and `end` < '2025-01-29 06:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 06:43:19] Production.INFO: count ==96 [2025-01-29 06:43:19] Production.ERROR: pbx CDR StartTime 2025-01-29 03:43:05 - End Time 2025-01-29 06:43:05 [2025-01-29 06:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 06:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354564', 'tblTempUsageDetail_20' ) start [2025-01-29 06:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354564', 'tblTempUsageDetail_20' ) end [2025-01-29 06:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354564', 'tblTempVendorCDR_20' ) start [2025-01-29 06:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354564', 'tblTempVendorCDR_20' ) end [2025-01-29 06:43:19] Production.INFO: ProcessCDR(1,14354564,1,1,2) [2025-01-29 06:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14354564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 06:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14354564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 06:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14354564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 06:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14354564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 06:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354564', 'tblTempUsageDetail_20' ) start [2025-01-29 06:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354564', 'tblTempUsageDetail_20' ) end [2025-01-29 06:43:22] Production.ERROR: pbx prc_insertCDR start [2025-01-29 06:43:22] Production.ERROR: pbx prc_insertCDR end [2025-01-29 06:43:22] Production.INFO: ==30251== Releasing lock... [2025-01-29 06:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 06:43:22] Production.INFO: 28 MB #Memory Used# [2025-01-29 06:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 03:44:06 [end_date_ymd] => 2025-01-29 06:44:06 [RateCDR] => 1 ) [2025-01-29 06:44:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 03:44:06' and `end` < '2025-01-29 06:44:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 06:44:19] Production.INFO: count ==96 [2025-01-29 06:44:19] Production.ERROR: pbx CDR StartTime 2025-01-29 03:44:06 - End Time 2025-01-29 06:44:06 [2025-01-29 06:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 06:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354569', 'tblTempUsageDetail_20' ) start [2025-01-29 06:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354569', 'tblTempUsageDetail_20' ) end [2025-01-29 06:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354569', 'tblTempVendorCDR_20' ) start [2025-01-29 06:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354569', 'tblTempVendorCDR_20' ) end [2025-01-29 06:44:19] Production.INFO: ProcessCDR(1,14354569,1,1,2) [2025-01-29 06:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14354569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 06:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14354569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 06:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14354569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 06:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14354569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 06:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354569', 'tblTempUsageDetail_20' ) start [2025-01-29 06:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354569', 'tblTempUsageDetail_20' ) end [2025-01-29 06:44:22] Production.ERROR: pbx prc_insertCDR start [2025-01-29 06:44:22] Production.ERROR: pbx prc_insertCDR end [2025-01-29 06:44:22] Production.INFO: ==30337== Releasing lock... [2025-01-29 06:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 06:44:22] Production.INFO: 28 MB #Memory Used# [2025-01-29 06:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 03:45:05 [end_date_ymd] => 2025-01-29 06:45:05 [RateCDR] => 1 ) [2025-01-29 06:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 03:45:05' and `end` < '2025-01-29 06:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 06:45:18] Production.INFO: count ==96 [2025-01-29 06:45:18] Production.ERROR: pbx CDR StartTime 2025-01-29 03:45:05 - End Time 2025-01-29 06:45:05 [2025-01-29 06:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 06:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354574', 'tblTempUsageDetail_20' ) start [2025-01-29 06:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354574', 'tblTempUsageDetail_20' ) end [2025-01-29 06:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354574', 'tblTempVendorCDR_20' ) start [2025-01-29 06:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354574', 'tblTempVendorCDR_20' ) end [2025-01-29 06:45:18] Production.INFO: ProcessCDR(1,14354574,1,1,2) [2025-01-29 06:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14354574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 06:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14354574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 06:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14354574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 06:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14354574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 06:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354574', 'tblTempUsageDetail_20' ) start [2025-01-29 06:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354574', 'tblTempUsageDetail_20' ) end [2025-01-29 06:45:21] Production.ERROR: pbx prc_insertCDR start [2025-01-29 06:45:21] Production.ERROR: pbx prc_insertCDR end [2025-01-29 06:45:21] Production.INFO: ==30435== Releasing lock... [2025-01-29 06:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 06:45:21] Production.INFO: 28 MB #Memory Used# [2025-01-29 06:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 03:46:05 [end_date_ymd] => 2025-01-29 06:46:05 [RateCDR] => 1 ) [2025-01-29 06:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 03:46:05' and `end` < '2025-01-29 06:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 06:46:19] Production.INFO: count ==96 [2025-01-29 06:46:19] Production.ERROR: pbx CDR StartTime 2025-01-29 03:46:05 - End Time 2025-01-29 06:46:05 [2025-01-29 06:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 06:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354579', 'tblTempUsageDetail_20' ) start [2025-01-29 06:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354579', 'tblTempUsageDetail_20' ) end [2025-01-29 06:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354579', 'tblTempVendorCDR_20' ) start [2025-01-29 06:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354579', 'tblTempVendorCDR_20' ) end [2025-01-29 06:46:19] Production.INFO: ProcessCDR(1,14354579,1,1,2) [2025-01-29 06:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14354579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 06:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14354579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 06:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14354579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 06:46:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14354579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 06:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354579', 'tblTempUsageDetail_20' ) start [2025-01-29 06:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354579', 'tblTempUsageDetail_20' ) end [2025-01-29 06:46:23] Production.ERROR: pbx prc_insertCDR start [2025-01-29 06:46:23] Production.ERROR: pbx prc_insertCDR end [2025-01-29 06:46:23] Production.INFO: ==30520== Releasing lock... [2025-01-29 06:46:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 06:46:23] Production.INFO: 28 MB #Memory Used# [2025-01-29 06:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 03:47:05 [end_date_ymd] => 2025-01-29 06:47:05 [RateCDR] => 1 ) [2025-01-29 06:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 03:47:05' and `end` < '2025-01-29 06:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 06:47:18] Production.INFO: count ==96 [2025-01-29 06:47:18] Production.ERROR: pbx CDR StartTime 2025-01-29 03:47:05 - End Time 2025-01-29 06:47:05 [2025-01-29 06:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 06:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354584', 'tblTempUsageDetail_20' ) start [2025-01-29 06:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354584', 'tblTempUsageDetail_20' ) end [2025-01-29 06:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354584', 'tblTempVendorCDR_20' ) start [2025-01-29 06:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354584', 'tblTempVendorCDR_20' ) end [2025-01-29 06:47:18] Production.INFO: ProcessCDR(1,14354584,1,1,2) [2025-01-29 06:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14354584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 06:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14354584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 06:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14354584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 06:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14354584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 06:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354584', 'tblTempUsageDetail_20' ) start [2025-01-29 06:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354584', 'tblTempUsageDetail_20' ) end [2025-01-29 06:47:21] Production.ERROR: pbx prc_insertCDR start [2025-01-29 06:47:21] Production.ERROR: pbx prc_insertCDR end [2025-01-29 06:47:21] Production.INFO: ==30606== Releasing lock... [2025-01-29 06:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 06:47:21] Production.INFO: 28 MB #Memory Used# [2025-01-29 06:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 03:48:06 [end_date_ymd] => 2025-01-29 06:48:06 [RateCDR] => 1 ) [2025-01-29 06:48:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 03:48:06' and `end` < '2025-01-29 06:48:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 06:48:19] Production.INFO: count ==96 [2025-01-29 06:48:19] Production.ERROR: pbx CDR StartTime 2025-01-29 03:48:06 - End Time 2025-01-29 06:48:06 [2025-01-29 06:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 06:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354589', 'tblTempUsageDetail_20' ) start [2025-01-29 06:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354589', 'tblTempUsageDetail_20' ) end [2025-01-29 06:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354589', 'tblTempVendorCDR_20' ) start [2025-01-29 06:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354589', 'tblTempVendorCDR_20' ) end [2025-01-29 06:48:19] Production.INFO: ProcessCDR(1,14354589,1,1,2) [2025-01-29 06:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14354589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 06:48:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14354589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 06:48:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14354589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 06:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14354589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 06:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354589', 'tblTempUsageDetail_20' ) start [2025-01-29 06:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354589', 'tblTempUsageDetail_20' ) end [2025-01-29 06:48:23] Production.ERROR: pbx prc_insertCDR start [2025-01-29 06:48:23] Production.ERROR: pbx prc_insertCDR end [2025-01-29 06:48:23] Production.INFO: ==30695== Releasing lock... [2025-01-29 06:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 06:48:23] Production.INFO: 28 MB #Memory Used# [2025-01-29 06:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 03:49:06 [end_date_ymd] => 2025-01-29 06:49:06 [RateCDR] => 1 ) [2025-01-29 06:49:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 03:49:06' and `end` < '2025-01-29 06:49:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 06:49:19] Production.INFO: count ==96 [2025-01-29 06:49:19] Production.ERROR: pbx CDR StartTime 2025-01-29 03:49:06 - End Time 2025-01-29 06:49:06 [2025-01-29 06:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 06:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354594', 'tblTempUsageDetail_20' ) start [2025-01-29 06:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354594', 'tblTempUsageDetail_20' ) end [2025-01-29 06:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354594', 'tblTempVendorCDR_20' ) start [2025-01-29 06:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354594', 'tblTempVendorCDR_20' ) end [2025-01-29 06:49:19] Production.INFO: ProcessCDR(1,14354594,1,1,2) [2025-01-29 06:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14354594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 06:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14354594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 06:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14354594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 06:49:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14354594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 06:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354594', 'tblTempUsageDetail_20' ) start [2025-01-29 06:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354594', 'tblTempUsageDetail_20' ) end [2025-01-29 06:49:23] Production.ERROR: pbx prc_insertCDR start [2025-01-29 06:49:23] Production.ERROR: pbx prc_insertCDR end [2025-01-29 06:49:23] Production.INFO: ==30782== Releasing lock... [2025-01-29 06:49:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 06:49:23] Production.INFO: 28 MB #Memory Used# [2025-01-29 06:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 03:50:06 [end_date_ymd] => 2025-01-29 06:50:06 [RateCDR] => 1 ) [2025-01-29 06:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 03:50:06' and `end` < '2025-01-29 06:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 06:50:19] Production.INFO: count ==94 [2025-01-29 06:50:19] Production.ERROR: pbx CDR StartTime 2025-01-29 03:50:06 - End Time 2025-01-29 06:50:06 [2025-01-29 06:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 06:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354599', 'tblTempUsageDetail_20' ) start [2025-01-29 06:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354599', 'tblTempUsageDetail_20' ) end [2025-01-29 06:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354599', 'tblTempVendorCDR_20' ) start [2025-01-29 06:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354599', 'tblTempVendorCDR_20' ) end [2025-01-29 06:50:19] Production.INFO: ProcessCDR(1,14354599,1,1,2) [2025-01-29 06:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14354599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 06:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14354599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 06:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14354599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 06:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14354599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 06:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354599', 'tblTempUsageDetail_20' ) start [2025-01-29 06:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354599', 'tblTempUsageDetail_20' ) end [2025-01-29 06:50:22] Production.ERROR: pbx prc_insertCDR start [2025-01-29 06:50:22] Production.ERROR: pbx prc_insertCDR end [2025-01-29 06:50:22] Production.INFO: ==30869== Releasing lock... [2025-01-29 06:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 06:50:22] Production.INFO: 28 MB #Memory Used# [2025-01-29 06:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 03:51:05 [end_date_ymd] => 2025-01-29 06:51:05 [RateCDR] => 1 ) [2025-01-29 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-01-29 03:51:05' and `end` < '2025-01-29 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-01-29 06:51:18] Production.INFO: count ==94 [2025-01-29 06:51:18] Production.ERROR: pbx CDR StartTime 2025-01-29 03:51:05 - End Time 2025-01-29 06:51:05 [2025-01-29 06:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 06:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354605', 'tblTempUsageDetail_20' ) start [2025-01-29 06:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354605', 'tblTempUsageDetail_20' ) end [2025-01-29 06:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354605', 'tblTempVendorCDR_20' ) start [2025-01-29 06:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354605', 'tblTempVendorCDR_20' ) end [2025-01-29 06:51:18] Production.INFO: ProcessCDR(1,14354605,1,1,2) [2025-01-29 06:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14354605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 06:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14354605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 06:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14354605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 06:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14354605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 06:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354605', 'tblTempUsageDetail_20' ) start [2025-01-29 06:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354605', 'tblTempUsageDetail_20' ) end [2025-01-29 06:51:22] Production.ERROR: pbx prc_insertCDR start [2025-01-29 06:51:22] Production.ERROR: pbx prc_insertCDR end [2025-01-29 06:51:22] Production.INFO: ==30958== Releasing lock... [2025-01-29 06:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 06:51:22] Production.INFO: 28 MB #Memory Used# [2025-01-29 06:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 03:52:06 [end_date_ymd] => 2025-01-29 06:52:06 [RateCDR] => 1 ) [2025-01-29 06:52:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 03:52:06' and `end` < '2025-01-29 06:52:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 06:52:20] Production.INFO: count ==94 [2025-01-29 06:52:20] Production.ERROR: pbx CDR StartTime 2025-01-29 03:52:06 - End Time 2025-01-29 06:52:06 [2025-01-29 06:52:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 06:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354610', 'tblTempUsageDetail_20' ) start [2025-01-29 06:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354610', 'tblTempUsageDetail_20' ) end [2025-01-29 06:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354610', 'tblTempVendorCDR_20' ) start [2025-01-29 06:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354610', 'tblTempVendorCDR_20' ) end [2025-01-29 06:52:20] Production.INFO: ProcessCDR(1,14354610,1,1,2) [2025-01-29 06:52:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14354610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 06:52:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14354610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 06:52:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14354610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 06:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14354610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 06:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354610', 'tblTempUsageDetail_20' ) start [2025-01-29 06:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354610', 'tblTempUsageDetail_20' ) end [2025-01-29 06:52:23] Production.ERROR: pbx prc_insertCDR start [2025-01-29 06:52:23] Production.ERROR: pbx prc_insertCDR end [2025-01-29 06:52:23] Production.INFO: ==31053== Releasing lock... [2025-01-29 06:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 06:52:23] Production.INFO: 28 MB #Memory Used# [2025-01-29 06:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 03:53:05 [end_date_ymd] => 2025-01-29 06:53:05 [RateCDR] => 1 ) [2025-01-29 06:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 03:53:05' and `end` < '2025-01-29 06:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 06:53:18] Production.INFO: count ==94 [2025-01-29 06:53:18] Production.ERROR: pbx CDR StartTime 2025-01-29 03:53:05 - End Time 2025-01-29 06:53:05 [2025-01-29 06:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 06:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354615', 'tblTempUsageDetail_20' ) start [2025-01-29 06:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354615', 'tblTempUsageDetail_20' ) end [2025-01-29 06:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354615', 'tblTempVendorCDR_20' ) start [2025-01-29 06:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354615', 'tblTempVendorCDR_20' ) end [2025-01-29 06:53:18] Production.INFO: ProcessCDR(1,14354615,1,1,2) [2025-01-29 06:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14354615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 06:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14354615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 06:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14354615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 06:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14354615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 06:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354615', 'tblTempUsageDetail_20' ) start [2025-01-29 06:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354615', 'tblTempUsageDetail_20' ) end [2025-01-29 06:53:21] Production.ERROR: pbx prc_insertCDR start [2025-01-29 06:53:21] Production.ERROR: pbx prc_insertCDR end [2025-01-29 06:53:21] Production.INFO: ==31138== Releasing lock... [2025-01-29 06:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 06:53:21] Production.INFO: 28 MB #Memory Used# [2025-01-29 06:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 03:54:06 [end_date_ymd] => 2025-01-29 06:54:06 [RateCDR] => 1 ) [2025-01-29 06:54:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 03:54:06' and `end` < '2025-01-29 06:54:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 06:54:20] Production.INFO: count ==94 [2025-01-29 06:54:20] Production.ERROR: pbx CDR StartTime 2025-01-29 03:54:06 - End Time 2025-01-29 06:54:06 [2025-01-29 06:54:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 06:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354620', 'tblTempUsageDetail_20' ) start [2025-01-29 06:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354620', 'tblTempUsageDetail_20' ) end [2025-01-29 06:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354620', 'tblTempVendorCDR_20' ) start [2025-01-29 06:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354620', 'tblTempVendorCDR_20' ) end [2025-01-29 06:54:20] Production.INFO: ProcessCDR(1,14354620,1,1,2) [2025-01-29 06:54:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14354620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 06:54:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14354620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 06:54:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14354620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 06:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14354620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 06:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354620', 'tblTempUsageDetail_20' ) start [2025-01-29 06:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354620', 'tblTempUsageDetail_20' ) end [2025-01-29 06:54:23] Production.ERROR: pbx prc_insertCDR start [2025-01-29 06:54:23] Production.ERROR: pbx prc_insertCDR end [2025-01-29 06:54:23] Production.INFO: ==31224== Releasing lock... [2025-01-29 06:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 06:54:23] Production.INFO: 28 MB #Memory Used# [2025-01-29 06:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 03:55:05 [end_date_ymd] => 2025-01-29 06:55:05 [RateCDR] => 1 ) [2025-01-29 06:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 03:55:05' and `end` < '2025-01-29 06:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 06:55:18] Production.INFO: count ==94 [2025-01-29 06:55:18] Production.ERROR: pbx CDR StartTime 2025-01-29 03:55:05 - End Time 2025-01-29 06:55:05 [2025-01-29 06:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 06:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354625', 'tblTempUsageDetail_20' ) start [2025-01-29 06:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354625', 'tblTempUsageDetail_20' ) end [2025-01-29 06:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354625', 'tblTempVendorCDR_20' ) start [2025-01-29 06:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354625', 'tblTempVendorCDR_20' ) end [2025-01-29 06:55:18] Production.INFO: ProcessCDR(1,14354625,1,1,2) [2025-01-29 06:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14354625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 06:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14354625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 06:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14354625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 06:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14354625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 06:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354625', 'tblTempUsageDetail_20' ) start [2025-01-29 06:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354625', 'tblTempUsageDetail_20' ) end [2025-01-29 06:55:21] Production.ERROR: pbx prc_insertCDR start [2025-01-29 06:55:21] Production.ERROR: pbx prc_insertCDR end [2025-01-29 06:55:21] Production.INFO: ==31356== Releasing lock... [2025-01-29 06:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 06:55:21] Production.INFO: 28 MB #Memory Used# [2025-01-29 06:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 03:56:06 [end_date_ymd] => 2025-01-29 06:56:06 [RateCDR] => 1 ) [2025-01-29 06:56:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 03:56:06' and `end` < '2025-01-29 06:56:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 06:56:18] Production.INFO: count ==94 [2025-01-29 06:56:18] Production.ERROR: pbx CDR StartTime 2025-01-29 03:56:06 - End Time 2025-01-29 06:56:06 [2025-01-29 06:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 06:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354630', 'tblTempUsageDetail_20' ) start [2025-01-29 06:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354630', 'tblTempUsageDetail_20' ) end [2025-01-29 06:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354630', 'tblTempVendorCDR_20' ) start [2025-01-29 06:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354630', 'tblTempVendorCDR_20' ) end [2025-01-29 06:56:18] Production.INFO: ProcessCDR(1,14354630,1,1,2) [2025-01-29 06:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14354630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 06:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14354630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 06:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14354630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 06:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14354630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 06:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354630', 'tblTempUsageDetail_20' ) start [2025-01-29 06:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354630', 'tblTempUsageDetail_20' ) end [2025-01-29 06:56:21] Production.ERROR: pbx prc_insertCDR start [2025-01-29 06:56:21] Production.ERROR: pbx prc_insertCDR end [2025-01-29 06:56:21] Production.INFO: ==31443== Releasing lock... [2025-01-29 06:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 06:56:21] Production.INFO: 28 MB #Memory Used# [2025-01-29 06:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 03:57:05 [end_date_ymd] => 2025-01-29 06:57:05 [RateCDR] => 1 ) [2025-01-29 06:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 03:57:05' and `end` < '2025-01-29 06:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 06:57:19] Production.INFO: count ==94 [2025-01-29 06:57:19] Production.ERROR: pbx CDR StartTime 2025-01-29 03:57:05 - End Time 2025-01-29 06:57:05 [2025-01-29 06:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 06:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354635', 'tblTempUsageDetail_20' ) start [2025-01-29 06:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354635', 'tblTempUsageDetail_20' ) end [2025-01-29 06:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354635', 'tblTempVendorCDR_20' ) start [2025-01-29 06:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354635', 'tblTempVendorCDR_20' ) end [2025-01-29 06:57:19] Production.INFO: ProcessCDR(1,14354635,1,1,2) [2025-01-29 06:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14354635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 06:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14354635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 06:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14354635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 06:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14354635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 06:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354635', 'tblTempUsageDetail_20' ) start [2025-01-29 06:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354635', 'tblTempUsageDetail_20' ) end [2025-01-29 06:57:22] Production.ERROR: pbx prc_insertCDR start [2025-01-29 06:57:22] Production.ERROR: pbx prc_insertCDR end [2025-01-29 06:57:22] Production.INFO: ==31533== Releasing lock... [2025-01-29 06:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 06:57:22] Production.INFO: 28 MB #Memory Used# [2025-01-29 06:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 03:58:06 [end_date_ymd] => 2025-01-29 06:58:06 [RateCDR] => 1 ) [2025-01-29 06:58:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 03:58:06' and `end` < '2025-01-29 06:58:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 06:58:18] Production.INFO: count ==94 [2025-01-29 06:58:18] Production.ERROR: pbx CDR StartTime 2025-01-29 03:58:06 - End Time 2025-01-29 06:58:06 [2025-01-29 06:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 06:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354640', 'tblTempUsageDetail_20' ) start [2025-01-29 06:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354640', 'tblTempUsageDetail_20' ) end [2025-01-29 06:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354640', 'tblTempVendorCDR_20' ) start [2025-01-29 06:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354640', 'tblTempVendorCDR_20' ) end [2025-01-29 06:58:18] Production.INFO: ProcessCDR(1,14354640,1,1,2) [2025-01-29 06:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14354640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 06:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14354640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 06:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14354640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 06:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14354640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 06:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354640', 'tblTempUsageDetail_20' ) start [2025-01-29 06:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354640', 'tblTempUsageDetail_20' ) end [2025-01-29 06:58:22] Production.ERROR: pbx prc_insertCDR start [2025-01-29 06:58:22] Production.ERROR: pbx prc_insertCDR end [2025-01-29 06:58:22] Production.INFO: ==31613== Releasing lock... [2025-01-29 06:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 06:58:22] Production.INFO: 28 MB #Memory Used# [2025-01-29 06:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 03:59:05 [end_date_ymd] => 2025-01-29 06:59:05 [RateCDR] => 1 ) [2025-01-29 06:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 03:59:05' and `end` < '2025-01-29 06:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 06:59:18] Production.INFO: count ==94 [2025-01-29 06:59:18] Production.ERROR: pbx CDR StartTime 2025-01-29 03:59:05 - End Time 2025-01-29 06:59:05 [2025-01-29 06:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 06:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354645', 'tblTempUsageDetail_20' ) start [2025-01-29 06:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354645', 'tblTempUsageDetail_20' ) end [2025-01-29 06:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354645', 'tblTempVendorCDR_20' ) start [2025-01-29 06:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354645', 'tblTempVendorCDR_20' ) end [2025-01-29 06:59:18] Production.INFO: ProcessCDR(1,14354645,1,1,2) [2025-01-29 06:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14354645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 06:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14354645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 06:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14354645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 06:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14354645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 06:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354645', 'tblTempUsageDetail_20' ) start [2025-01-29 06:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354645', 'tblTempUsageDetail_20' ) end [2025-01-29 06:59:21] Production.ERROR: pbx prc_insertCDR start [2025-01-29 06:59:21] Production.ERROR: pbx prc_insertCDR end [2025-01-29 06:59:21] Production.INFO: ==31703== Releasing lock... [2025-01-29 06:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 06:59:21] Production.INFO: 28 MB #Memory Used# [2025-01-29 07:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 04:00:07 [end_date_ymd] => 2025-01-29 07:00:07 [RateCDR] => 1 ) [2025-01-29 07:00:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 04:00:07' and `end` < '2025-01-29 07:00:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 07:00:19] Production.INFO: count ==92 [2025-01-29 07:00:19] Production.ERROR: pbx CDR StartTime 2025-01-29 04:00:07 - End Time 2025-01-29 07:00:07 [2025-01-29 07:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 07:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354651', 'tblTempUsageDetail_20' ) start [2025-01-29 07:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354651', 'tblTempUsageDetail_20' ) end [2025-01-29 07:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354651', 'tblTempVendorCDR_20' ) start [2025-01-29 07:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354651', 'tblTempVendorCDR_20' ) end [2025-01-29 07:00:19] Production.INFO: ProcessCDR(1,14354651,1,1,2) [2025-01-29 07:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14354651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 07:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14354651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 07:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14354651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 07:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14354651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 07:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354651', 'tblTempUsageDetail_20' ) start [2025-01-29 07:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354651', 'tblTempUsageDetail_20' ) end [2025-01-29 07:00:23] Production.ERROR: pbx prc_insertCDR start [2025-01-29 07:00:23] Production.ERROR: pbx prc_insertCDR end [2025-01-29 07:00:23] Production.INFO: ==31786== Releasing lock... [2025-01-29 07:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 07:00:23] Production.INFO: 28 MB #Memory Used# [2025-01-29 07:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 04:01:05 [end_date_ymd] => 2025-01-29 07:01:05 [RateCDR] => 1 ) [2025-01-29 07:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 04:01:05' and `end` < '2025-01-29 07:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 07:01:36] Production.INFO: count ==92 [2025-01-29 07:01:36] Production.ERROR: pbx CDR StartTime 2025-01-29 04:01:05 - End Time 2025-01-29 07:01:05 [2025-01-29 07:01:36] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 07:01:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354656', 'tblTempUsageDetail_20' ) start [2025-01-29 07:01:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354656', 'tblTempUsageDetail_20' ) end [2025-01-29 07:01:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354656', 'tblTempVendorCDR_20' ) start [2025-01-29 07:01:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354656', 'tblTempVendorCDR_20' ) end [2025-01-29 07:01:36] Production.INFO: ProcessCDR(1,14354656,1,1,2) [2025-01-29 07:01:36] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14354656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 07:01:37] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14354656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 07:01:37] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14354656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 07:01:39] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14354656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 07:01:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354656', 'tblTempUsageDetail_20' ) start [2025-01-29 07:01:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354656', 'tblTempUsageDetail_20' ) end [2025-01-29 07:01:39] Production.ERROR: pbx prc_insertCDR start [2025-01-29 07:01:39] Production.ERROR: pbx prc_insertCDR end [2025-01-29 07:01:39] Production.INFO: ==31945== Releasing lock... [2025-01-29 07:01:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 07:01:39] Production.INFO: 28 MB #Memory Used# [2025-01-29 07:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 04:02:05 [end_date_ymd] => 2025-01-29 07:02:05 [RateCDR] => 1 ) [2025-01-29 07:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 04:02:05' and `end` < '2025-01-29 07:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 07:02:19] Production.INFO: count ==92 [2025-01-29 07:02:19] Production.ERROR: pbx CDR StartTime 2025-01-29 04:02:05 - End Time 2025-01-29 07:02:05 [2025-01-29 07:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 07:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354661', 'tblTempUsageDetail_20' ) start [2025-01-29 07:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354661', 'tblTempUsageDetail_20' ) end [2025-01-29 07:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354661', 'tblTempVendorCDR_20' ) start [2025-01-29 07:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354661', 'tblTempVendorCDR_20' ) end [2025-01-29 07:02:19] Production.INFO: ProcessCDR(1,14354661,1,1,2) [2025-01-29 07:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14354661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 07:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14354661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 07:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14354661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 07:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14354661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 07:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354661', 'tblTempUsageDetail_20' ) start [2025-01-29 07:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354661', 'tblTempUsageDetail_20' ) end [2025-01-29 07:02:22] Production.ERROR: pbx prc_insertCDR start [2025-01-29 07:02:22] Production.ERROR: pbx prc_insertCDR end [2025-01-29 07:02:22] Production.INFO: ==32049== Releasing lock... [2025-01-29 07:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 07:02:22] Production.INFO: 28 MB #Memory Used# [2025-01-29 07:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 04:03:05 [end_date_ymd] => 2025-01-29 07:03:05 [RateCDR] => 1 ) [2025-01-29 07:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 04:03:05' and `end` < '2025-01-29 07:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 07:03:19] Production.INFO: count ==92 [2025-01-29 07:03:19] Production.ERROR: pbx CDR StartTime 2025-01-29 04:03:05 - End Time 2025-01-29 07:03:05 [2025-01-29 07:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 07:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354666', 'tblTempUsageDetail_20' ) start [2025-01-29 07:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354666', 'tblTempUsageDetail_20' ) end [2025-01-29 07:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354666', 'tblTempVendorCDR_20' ) start [2025-01-29 07:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354666', 'tblTempVendorCDR_20' ) end [2025-01-29 07:03:19] Production.INFO: ProcessCDR(1,14354666,1,1,2) [2025-01-29 07:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14354666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 07:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14354666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 07:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14354666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 07:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14354666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 07:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354666', 'tblTempUsageDetail_20' ) start [2025-01-29 07:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354666', 'tblTempUsageDetail_20' ) end [2025-01-29 07:03:22] Production.ERROR: pbx prc_insertCDR start [2025-01-29 07:03:22] Production.ERROR: pbx prc_insertCDR end [2025-01-29 07:03:22] Production.INFO: ==32136== Releasing lock... [2025-01-29 07:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 07:03:22] Production.INFO: 28 MB #Memory Used# [2025-01-29 07:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 04:04:06 [end_date_ymd] => 2025-01-29 07:04:06 [RateCDR] => 1 ) [2025-01-29 07:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 04:04:06' and `end` < '2025-01-29 07:04:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 07:04:20] Production.INFO: count ==92 [2025-01-29 07:04:20] Production.ERROR: pbx CDR StartTime 2025-01-29 04:04:06 - End Time 2025-01-29 07:04:06 [2025-01-29 07:04:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 07:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354671', 'tblTempUsageDetail_20' ) start [2025-01-29 07:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354671', 'tblTempUsageDetail_20' ) end [2025-01-29 07:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354671', 'tblTempVendorCDR_20' ) start [2025-01-29 07:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354671', 'tblTempVendorCDR_20' ) end [2025-01-29 07:04:20] Production.INFO: ProcessCDR(1,14354671,1,1,2) [2025-01-29 07:04:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14354671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 07:04:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14354671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 07:04:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14354671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 07:04:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14354671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 07:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354671', 'tblTempUsageDetail_20' ) start [2025-01-29 07:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354671', 'tblTempUsageDetail_20' ) end [2025-01-29 07:04:24] Production.ERROR: pbx prc_insertCDR start [2025-01-29 07:04:24] Production.ERROR: pbx prc_insertCDR end [2025-01-29 07:04:24] Production.INFO: ==32219== Releasing lock... [2025-01-29 07:04:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 07:04:24] Production.INFO: 28.25 MB #Memory Used# [2025-01-29 07:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 04:05:05 [end_date_ymd] => 2025-01-29 07:05:05 [RateCDR] => 1 ) [2025-01-29 07:05:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 04:05:05' and `end` < '2025-01-29 07:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 07:05:19] Production.INFO: count ==92 [2025-01-29 07:05:19] Production.ERROR: pbx CDR StartTime 2025-01-29 04:05:05 - End Time 2025-01-29 07:05:05 [2025-01-29 07:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 07:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354676', 'tblTempUsageDetail_20' ) start [2025-01-29 07:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354676', 'tblTempUsageDetail_20' ) end [2025-01-29 07:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354676', 'tblTempVendorCDR_20' ) start [2025-01-29 07:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354676', 'tblTempVendorCDR_20' ) end [2025-01-29 07:05:19] Production.INFO: ProcessCDR(1,14354676,1,1,2) [2025-01-29 07:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14354676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 07:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14354676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 07:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14354676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 07:05:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14354676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 07:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354676', 'tblTempUsageDetail_20' ) start [2025-01-29 07:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354676', 'tblTempUsageDetail_20' ) end [2025-01-29 07:05:23] Production.ERROR: pbx prc_insertCDR start [2025-01-29 07:05:23] Production.ERROR: pbx prc_insertCDR end [2025-01-29 07:05:23] Production.INFO: ==32380== Releasing lock... [2025-01-29 07:05:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 07:05:23] Production.INFO: 28 MB #Memory Used# [2025-01-29 07:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 04:06:06 [end_date_ymd] => 2025-01-29 07:06:06 [RateCDR] => 1 ) [2025-01-29 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-01-29 04:06:06' and `end` < '2025-01-29 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-01-29 07:06:20] Production.INFO: count ==92 [2025-01-29 07:06:20] Production.ERROR: pbx CDR StartTime 2025-01-29 04:06:06 - End Time 2025-01-29 07:06:06 [2025-01-29 07:06:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 07:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354681', 'tblTempUsageDetail_20' ) start [2025-01-29 07:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354681', 'tblTempUsageDetail_20' ) end [2025-01-29 07:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354681', 'tblTempVendorCDR_20' ) start [2025-01-29 07:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354681', 'tblTempVendorCDR_20' ) end [2025-01-29 07:06:20] Production.INFO: ProcessCDR(1,14354681,1,1,2) [2025-01-29 07:06:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14354681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 07:06:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14354681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 07:06:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14354681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 07:06:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14354681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 07:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354681', 'tblTempUsageDetail_20' ) start [2025-01-29 07:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354681', 'tblTempUsageDetail_20' ) end [2025-01-29 07:06:24] Production.ERROR: pbx prc_insertCDR start [2025-01-29 07:06:24] Production.ERROR: pbx prc_insertCDR end [2025-01-29 07:06:24] Production.INFO: ==32455== Releasing lock... [2025-01-29 07:06:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 07:06:24] Production.INFO: 28 MB #Memory Used# [2025-01-29 07:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 04:07:05 [end_date_ymd] => 2025-01-29 07:07:05 [RateCDR] => 1 ) [2025-01-29 07:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 04:07:05' and `end` < '2025-01-29 07:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 07:07:19] Production.INFO: count ==92 [2025-01-29 07:07:19] Production.ERROR: pbx CDR StartTime 2025-01-29 04:07:05 - End Time 2025-01-29 07:07:05 [2025-01-29 07:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 07:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354686', 'tblTempUsageDetail_20' ) start [2025-01-29 07:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354686', 'tblTempUsageDetail_20' ) end [2025-01-29 07:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354686', 'tblTempVendorCDR_20' ) start [2025-01-29 07:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354686', 'tblTempVendorCDR_20' ) end [2025-01-29 07:07:19] Production.INFO: ProcessCDR(1,14354686,1,1,2) [2025-01-29 07:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14354686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 07:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14354686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 07:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14354686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 07:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14354686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 07:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354686', 'tblTempUsageDetail_20' ) start [2025-01-29 07:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354686', 'tblTempUsageDetail_20' ) end [2025-01-29 07:07:22] Production.ERROR: pbx prc_insertCDR start [2025-01-29 07:07:22] Production.ERROR: pbx prc_insertCDR end [2025-01-29 07:07:22] Production.INFO: ==32538== Releasing lock... [2025-01-29 07:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 07:07:22] Production.INFO: 28 MB #Memory Used# [2025-01-29 07:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 04:08:06 [end_date_ymd] => 2025-01-29 07:08:06 [RateCDR] => 1 ) [2025-01-29 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-01-29 04:08:06' and `end` < '2025-01-29 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-01-29 07:08:19] Production.INFO: count ==92 [2025-01-29 07:08:19] Production.ERROR: pbx CDR StartTime 2025-01-29 04:08:06 - End Time 2025-01-29 07:08:06 [2025-01-29 07:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 07:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354691', 'tblTempUsageDetail_20' ) start [2025-01-29 07:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354691', 'tblTempUsageDetail_20' ) end [2025-01-29 07:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354691', 'tblTempVendorCDR_20' ) start [2025-01-29 07:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354691', 'tblTempVendorCDR_20' ) end [2025-01-29 07:08:19] Production.INFO: ProcessCDR(1,14354691,1,1,2) [2025-01-29 07:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14354691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 07:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14354691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 07:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14354691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 07:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14354691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 07:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354691', 'tblTempUsageDetail_20' ) start [2025-01-29 07:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354691', 'tblTempUsageDetail_20' ) end [2025-01-29 07:08:22] Production.ERROR: pbx prc_insertCDR start [2025-01-29 07:08:22] Production.ERROR: pbx prc_insertCDR end [2025-01-29 07:08:22] Production.INFO: ==32700== Releasing lock... [2025-01-29 07:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 07:08:22] Production.INFO: 28 MB #Memory Used# [2025-01-29 07:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 04:09:05 [end_date_ymd] => 2025-01-29 07:09:05 [RateCDR] => 1 ) [2025-01-29 07:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 04:09:05' and `end` < '2025-01-29 07:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 07:09:21] Production.INFO: count ==92 [2025-01-29 07:09:21] Production.ERROR: pbx CDR StartTime 2025-01-29 04:09:05 - End Time 2025-01-29 07:09:05 [2025-01-29 07:09:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 07:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354696', 'tblTempUsageDetail_20' ) start [2025-01-29 07:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354696', 'tblTempUsageDetail_20' ) end [2025-01-29 07:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354696', 'tblTempVendorCDR_20' ) start [2025-01-29 07:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354696', 'tblTempVendorCDR_20' ) end [2025-01-29 07:09:21] Production.INFO: ProcessCDR(1,14354696,1,1,2) [2025-01-29 07:09:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14354696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 07:09:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14354696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 07:09:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14354696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 07:09:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14354696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 07:09:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354696', 'tblTempUsageDetail_20' ) start [2025-01-29 07:09:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354696', 'tblTempUsageDetail_20' ) end [2025-01-29 07:09:25] Production.ERROR: pbx prc_insertCDR start [2025-01-29 07:09:25] Production.ERROR: pbx prc_insertCDR end [2025-01-29 07:09:25] Production.INFO: ==318== Releasing lock... [2025-01-29 07:09:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 07:09:25] Production.INFO: 28 MB #Memory Used# [2025-01-29 07:10:07] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 04:10:07 [end_date_ymd] => 2025-01-29 07:10:07 [RateCDR] => 1 ) [2025-01-29 07:10:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 04:10:07' and `end` < '2025-01-29 07:10:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 07:10:22] Production.INFO: count ==92 [2025-01-29 07:10:22] Production.ERROR: pbx CDR StartTime 2025-01-29 04:10:07 - End Time 2025-01-29 07:10:07 [2025-01-29 07:10:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 07:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354702', 'tblTempUsageDetail_20' ) start [2025-01-29 07:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354702', 'tblTempUsageDetail_20' ) end [2025-01-29 07:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354702', 'tblTempVendorCDR_20' ) start [2025-01-29 07:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354702', 'tblTempVendorCDR_20' ) end [2025-01-29 07:10:22] Production.INFO: ProcessCDR(1,14354702,1,1,2) [2025-01-29 07:10:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14354702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 07:10:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14354702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 07:10:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14354702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 07:10:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14354702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 07:10:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354702', 'tblTempUsageDetail_20' ) start [2025-01-29 07:10:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354702', 'tblTempUsageDetail_20' ) end [2025-01-29 07:10:26] Production.ERROR: pbx prc_insertCDR start [2025-01-29 07:10:26] Production.ERROR: pbx prc_insertCDR end [2025-01-29 07:10:26] Production.INFO: ==448== Releasing lock... [2025-01-29 07:10:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 07:10:26] Production.INFO: 28 MB #Memory Used# [2025-01-29 07:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 04:11:06 [end_date_ymd] => 2025-01-29 07:11:06 [RateCDR] => 1 ) [2025-01-29 07:11:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 04:11:06' and `end` < '2025-01-29 07:11:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 07:11:19] Production.INFO: count ==93 [2025-01-29 07:11:19] Production.ERROR: pbx CDR StartTime 2025-01-29 04:11:06 - End Time 2025-01-29 07:11:06 [2025-01-29 07:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 07:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354707', 'tblTempUsageDetail_20' ) start [2025-01-29 07:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354707', 'tblTempUsageDetail_20' ) end [2025-01-29 07:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354707', 'tblTempVendorCDR_20' ) start [2025-01-29 07:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354707', 'tblTempVendorCDR_20' ) end [2025-01-29 07:11:19] Production.INFO: ProcessCDR(1,14354707,1,1,2) [2025-01-29 07:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14354707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 07:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14354707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 07:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14354707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 07:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14354707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 07:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354707', 'tblTempUsageDetail_20' ) start [2025-01-29 07:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354707', 'tblTempUsageDetail_20' ) end [2025-01-29 07:11:23] Production.ERROR: pbx prc_insertCDR start [2025-01-29 07:11:23] Production.ERROR: pbx prc_insertCDR end [2025-01-29 07:11:23] Production.INFO: ==531== Releasing lock... [2025-01-29 07:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 07:11:23] Production.INFO: 28 MB #Memory Used# [2025-01-29 07:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 04:12:06 [end_date_ymd] => 2025-01-29 07:12:06 [RateCDR] => 1 ) [2025-01-29 07:12:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 04:12:06' and `end` < '2025-01-29 07:12:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 07:12:20] Production.INFO: count ==93 [2025-01-29 07:12:20] Production.ERROR: pbx CDR StartTime 2025-01-29 04:12:06 - End Time 2025-01-29 07:12:06 [2025-01-29 07:12:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 07:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354712', 'tblTempUsageDetail_20' ) start [2025-01-29 07:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354712', 'tblTempUsageDetail_20' ) end [2025-01-29 07:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354712', 'tblTempVendorCDR_20' ) start [2025-01-29 07:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354712', 'tblTempVendorCDR_20' ) end [2025-01-29 07:12:20] Production.INFO: ProcessCDR(1,14354712,1,1,2) [2025-01-29 07:12:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14354712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 07:12:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14354712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 07:12:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14354712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 07:12:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14354712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 07:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354712', 'tblTempUsageDetail_20' ) start [2025-01-29 07:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354712', 'tblTempUsageDetail_20' ) end [2025-01-29 07:12:23] Production.ERROR: pbx prc_insertCDR start [2025-01-29 07:12:23] Production.ERROR: pbx prc_insertCDR end [2025-01-29 07:12:23] Production.INFO: ==716== Releasing lock... [2025-01-29 07:12:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 07:12:23] Production.INFO: 28 MB #Memory Used# [2025-01-29 07:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 04:13:06 [end_date_ymd] => 2025-01-29 07:13:06 [RateCDR] => 1 ) [2025-01-29 07:13:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 04:13:06' and `end` < '2025-01-29 07:13:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 07:13:20] Production.INFO: count ==94 [2025-01-29 07:13:20] Production.ERROR: pbx CDR StartTime 2025-01-29 04:13:06 - End Time 2025-01-29 07:13:06 [2025-01-29 07:13:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 07:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354717', 'tblTempUsageDetail_20' ) start [2025-01-29 07:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354717', 'tblTempUsageDetail_20' ) end [2025-01-29 07:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354717', 'tblTempVendorCDR_20' ) start [2025-01-29 07:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354717', 'tblTempVendorCDR_20' ) end [2025-01-29 07:13:20] Production.INFO: ProcessCDR(1,14354717,1,1,2) [2025-01-29 07:13:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14354717,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 07:13:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14354717,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 07:13:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14354717,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 07:13:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14354717,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 07:13:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354717', 'tblTempUsageDetail_20' ) start [2025-01-29 07:13:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354717', 'tblTempUsageDetail_20' ) end [2025-01-29 07:13:25] Production.ERROR: pbx prc_insertCDR start [2025-01-29 07:13:25] Production.ERROR: pbx prc_insertCDR end [2025-01-29 07:13:25] Production.INFO: ==803== Releasing lock... [2025-01-29 07:13:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 07:13:25] Production.INFO: 28 MB #Memory Used# [2025-01-29 07:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 04:14:05 [end_date_ymd] => 2025-01-29 07:14:05 [RateCDR] => 1 ) [2025-01-29 07:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 04:14:05' and `end` < '2025-01-29 07:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 07:14:20] Production.INFO: count ==95 [2025-01-29 07:14:20] Production.ERROR: pbx CDR StartTime 2025-01-29 04:14:05 - End Time 2025-01-29 07:14:05 [2025-01-29 07:14:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 07:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354722', 'tblTempUsageDetail_20' ) start [2025-01-29 07:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354722', 'tblTempUsageDetail_20' ) end [2025-01-29 07:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354722', 'tblTempVendorCDR_20' ) start [2025-01-29 07:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354722', 'tblTempVendorCDR_20' ) end [2025-01-29 07:14:20] Production.INFO: ProcessCDR(1,14354722,1,1,2) [2025-01-29 07:14:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14354722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 07:14:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14354722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 07:14:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14354722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 07:14:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14354722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 07:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354722', 'tblTempUsageDetail_20' ) start [2025-01-29 07:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354722', 'tblTempUsageDetail_20' ) end [2025-01-29 07:14:24] Production.ERROR: pbx prc_insertCDR start [2025-01-29 07:14:24] Production.ERROR: pbx prc_insertCDR end [2025-01-29 07:14:24] Production.INFO: ==874== Releasing lock... [2025-01-29 07:14:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 07:14:24] Production.INFO: 28 MB #Memory Used# [2025-01-29 07:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 04:15:06 [end_date_ymd] => 2025-01-29 07:15:06 [RateCDR] => 1 ) [2025-01-29 07:15:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 04:15:06' and `end` < '2025-01-29 07:15:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 07:15:19] Production.INFO: count ==95 [2025-01-29 07:15:19] Production.ERROR: pbx CDR StartTime 2025-01-29 04:15:06 - End Time 2025-01-29 07:15:06 [2025-01-29 07:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 07:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354727', 'tblTempUsageDetail_20' ) start [2025-01-29 07:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354727', 'tblTempUsageDetail_20' ) end [2025-01-29 07:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354727', 'tblTempVendorCDR_20' ) start [2025-01-29 07:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354727', 'tblTempVendorCDR_20' ) end [2025-01-29 07:15:19] Production.INFO: ProcessCDR(1,14354727,1,1,2) [2025-01-29 07:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14354727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 07:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14354727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 07:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14354727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 07:15:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14354727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 07:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354727', 'tblTempUsageDetail_20' ) start [2025-01-29 07:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354727', 'tblTempUsageDetail_20' ) end [2025-01-29 07:15:23] Production.ERROR: pbx prc_insertCDR start [2025-01-29 07:15:23] Production.ERROR: pbx prc_insertCDR end [2025-01-29 07:15:23] Production.INFO: ==997== Releasing lock... [2025-01-29 07:15:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 07:15:23] Production.INFO: 28 MB #Memory Used# [2025-01-29 07:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 04:16:06 [end_date_ymd] => 2025-01-29 07:16:06 [RateCDR] => 1 ) [2025-01-29 07:16:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 04:16:06' and `end` < '2025-01-29 07:16:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 07:16:19] Production.INFO: count ==100 [2025-01-29 07:16:19] Production.ERROR: pbx CDR StartTime 2025-01-29 04:16:06 - End Time 2025-01-29 07:16:06 [2025-01-29 07:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 07:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354732', 'tblTempUsageDetail_20' ) start [2025-01-29 07:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354732', 'tblTempUsageDetail_20' ) end [2025-01-29 07:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354732', 'tblTempVendorCDR_20' ) start [2025-01-29 07:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354732', 'tblTempVendorCDR_20' ) end [2025-01-29 07:16:19] Production.INFO: ProcessCDR(1,14354732,1,1,2) [2025-01-29 07:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14354732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 07:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14354732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 07:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14354732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 07:16:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14354732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 07:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354732', 'tblTempUsageDetail_20' ) start [2025-01-29 07:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354732', 'tblTempUsageDetail_20' ) end [2025-01-29 07:16:23] Production.ERROR: pbx prc_insertCDR start [2025-01-29 07:16:23] Production.ERROR: pbx prc_insertCDR end [2025-01-29 07:16:23] Production.INFO: ==1108== Releasing lock... [2025-01-29 07:16:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 07:16:23] Production.INFO: 28.25 MB #Memory Used# [2025-01-29 07:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 04:17:05 [end_date_ymd] => 2025-01-29 07:17:05 [RateCDR] => 1 ) [2025-01-29 07:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 04:17:05' and `end` < '2025-01-29 07:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 07:17:18] Production.INFO: count ==100 [2025-01-29 07:17:18] Production.ERROR: pbx CDR StartTime 2025-01-29 04:17:05 - End Time 2025-01-29 07:17:05 [2025-01-29 07:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 07:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354737', 'tblTempUsageDetail_20' ) start [2025-01-29 07:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354737', 'tblTempUsageDetail_20' ) end [2025-01-29 07:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354737', 'tblTempVendorCDR_20' ) start [2025-01-29 07:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354737', 'tblTempVendorCDR_20' ) end [2025-01-29 07:17:18] Production.INFO: ProcessCDR(1,14354737,1,1,2) [2025-01-29 07:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14354737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 07:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14354737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 07:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14354737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 07:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14354737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 07:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354737', 'tblTempUsageDetail_20' ) start [2025-01-29 07:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354737', 'tblTempUsageDetail_20' ) end [2025-01-29 07:17:22] Production.ERROR: pbx prc_insertCDR start [2025-01-29 07:17:22] Production.ERROR: pbx prc_insertCDR end [2025-01-29 07:17:22] Production.INFO: ==1190== Releasing lock... [2025-01-29 07:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 07:17:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-29 07:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 04:18:06 [end_date_ymd] => 2025-01-29 07:18:06 [RateCDR] => 1 ) [2025-01-29 07:18:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 04:18:06' and `end` < '2025-01-29 07:18:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 07:18:19] Production.INFO: count ==100 [2025-01-29 07:18:19] Production.ERROR: pbx CDR StartTime 2025-01-29 04:18:06 - End Time 2025-01-29 07:18:06 [2025-01-29 07:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 07:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354742', 'tblTempUsageDetail_20' ) start [2025-01-29 07:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354742', 'tblTempUsageDetail_20' ) end [2025-01-29 07:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354742', 'tblTempVendorCDR_20' ) start [2025-01-29 07:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354742', 'tblTempVendorCDR_20' ) end [2025-01-29 07:18:19] Production.INFO: ProcessCDR(1,14354742,1,1,2) [2025-01-29 07:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14354742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 07:18:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14354742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 07:18:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14354742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 07:18:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14354742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 07:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354742', 'tblTempUsageDetail_20' ) start [2025-01-29 07:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354742', 'tblTempUsageDetail_20' ) end [2025-01-29 07:18:23] Production.ERROR: pbx prc_insertCDR start [2025-01-29 07:18:23] Production.ERROR: pbx prc_insertCDR end [2025-01-29 07:18:23] Production.INFO: ==1283== Releasing lock... [2025-01-29 07:18:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 07:18:23] Production.INFO: 28.25 MB #Memory Used# [2025-01-29 07:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 04:19:06 [end_date_ymd] => 2025-01-29 07:19:06 [RateCDR] => 1 ) [2025-01-29 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-01-29 04:19:06' and `end` < '2025-01-29 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-01-29 07:19:19] Production.INFO: count ==100 [2025-01-29 07:19:19] Production.ERROR: pbx CDR StartTime 2025-01-29 04:19:06 - End Time 2025-01-29 07:19:06 [2025-01-29 07:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 07:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354747', 'tblTempUsageDetail_20' ) start [2025-01-29 07:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354747', 'tblTempUsageDetail_20' ) end [2025-01-29 07:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354747', 'tblTempVendorCDR_20' ) start [2025-01-29 07:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354747', 'tblTempVendorCDR_20' ) end [2025-01-29 07:19:19] Production.INFO: ProcessCDR(1,14354747,1,1,2) [2025-01-29 07:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14354747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 07:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14354747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 07:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14354747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 07:19:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14354747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 07:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354747', 'tblTempUsageDetail_20' ) start [2025-01-29 07:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354747', 'tblTempUsageDetail_20' ) end [2025-01-29 07:19:23] Production.ERROR: pbx prc_insertCDR start [2025-01-29 07:19:23] Production.ERROR: pbx prc_insertCDR end [2025-01-29 07:19:23] Production.INFO: ==1356== Releasing lock... [2025-01-29 07:19:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 07:19:23] Production.INFO: 28.25 MB #Memory Used# [2025-01-29 07:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 04:20:06 [end_date_ymd] => 2025-01-29 07:20:06 [RateCDR] => 1 ) [2025-01-29 07:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 04:20:06' and `end` < '2025-01-29 07:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 07:20:19] Production.INFO: count ==104 [2025-01-29 07:20:19] Production.ERROR: pbx CDR StartTime 2025-01-29 04:20:06 - End Time 2025-01-29 07:20:06 [2025-01-29 07:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 07:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354752', 'tblTempUsageDetail_20' ) start [2025-01-29 07:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354752', 'tblTempUsageDetail_20' ) end [2025-01-29 07:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354752', 'tblTempVendorCDR_20' ) start [2025-01-29 07:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354752', 'tblTempVendorCDR_20' ) end [2025-01-29 07:20:19] Production.INFO: ProcessCDR(1,14354752,1,1,2) [2025-01-29 07:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14354752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 07:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14354752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 07:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14354752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 07:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14354752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 07:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354752', 'tblTempUsageDetail_20' ) start [2025-01-29 07:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354752', 'tblTempUsageDetail_20' ) end [2025-01-29 07:20:23] Production.ERROR: pbx prc_insertCDR start [2025-01-29 07:20:23] Production.ERROR: pbx prc_insertCDR end [2025-01-29 07:20:23] Production.INFO: ==1438== Releasing lock... [2025-01-29 07:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 07:20:23] Production.INFO: 28.25 MB #Memory Used# [2025-01-29 07:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 04:21:06 [end_date_ymd] => 2025-01-29 07:21:06 [RateCDR] => 1 ) [2025-01-29 07:21:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 04:21:06' and `end` < '2025-01-29 07:21:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 07:21:20] Production.INFO: count ==117 [2025-01-29 07:21:20] Production.ERROR: pbx CDR StartTime 2025-01-29 04:21:06 - End Time 2025-01-29 07:21:06 [2025-01-29 07:21:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 07:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354758', 'tblTempUsageDetail_20' ) start [2025-01-29 07:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354758', 'tblTempUsageDetail_20' ) end [2025-01-29 07:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354758', 'tblTempVendorCDR_20' ) start [2025-01-29 07:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354758', 'tblTempVendorCDR_20' ) end [2025-01-29 07:21:20] Production.INFO: ProcessCDR(1,14354758,1,1,2) [2025-01-29 07:21:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14354758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 07:21:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14354758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 07:21:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14354758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 07:21:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14354758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 07:21:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354758', 'tblTempUsageDetail_20' ) start [2025-01-29 07:21:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354758', 'tblTempUsageDetail_20' ) end [2025-01-29 07:21:25] Production.ERROR: pbx prc_insertCDR start [2025-01-29 07:21:25] Production.ERROR: pbx prc_insertCDR end [2025-01-29 07:21:25] Production.INFO: ==1547== Releasing lock... [2025-01-29 07:21:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 07:21:25] Production.INFO: 28.25 MB #Memory Used# [2025-01-29 07:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 04:22:05 [end_date_ymd] => 2025-01-29 07:22:05 [RateCDR] => 1 ) [2025-01-29 07:22:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 04:22:05' and `end` < '2025-01-29 07:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 07:22:19] Production.INFO: count ==117 [2025-01-29 07:22:19] Production.ERROR: pbx CDR StartTime 2025-01-29 04:22:05 - End Time 2025-01-29 07:22:05 [2025-01-29 07:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 07:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354763', 'tblTempUsageDetail_20' ) start [2025-01-29 07:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354763', 'tblTempUsageDetail_20' ) end [2025-01-29 07:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354763', 'tblTempVendorCDR_20' ) start [2025-01-29 07:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354763', 'tblTempVendorCDR_20' ) end [2025-01-29 07:22:19] Production.INFO: ProcessCDR(1,14354763,1,1,2) [2025-01-29 07:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14354763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 07:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14354763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 07:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14354763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 07:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14354763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 07:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354763', 'tblTempUsageDetail_20' ) start [2025-01-29 07:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354763', 'tblTempUsageDetail_20' ) end [2025-01-29 07:22:22] Production.ERROR: pbx prc_insertCDR start [2025-01-29 07:22:22] Production.ERROR: pbx prc_insertCDR end [2025-01-29 07:22:22] Production.INFO: ==1631== Releasing lock... [2025-01-29 07:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 07:22:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-29 07:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 04:23:05 [end_date_ymd] => 2025-01-29 07:23:05 [RateCDR] => 1 ) [2025-01-29 07:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 04:23:05' and `end` < '2025-01-29 07:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 07:23:19] Production.INFO: count ==118 [2025-01-29 07:23:19] Production.ERROR: pbx CDR StartTime 2025-01-29 04:23:05 - End Time 2025-01-29 07:23:05 [2025-01-29 07:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 07:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354768', 'tblTempUsageDetail_20' ) start [2025-01-29 07:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354768', 'tblTempUsageDetail_20' ) end [2025-01-29 07:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354768', 'tblTempVendorCDR_20' ) start [2025-01-29 07:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354768', 'tblTempVendorCDR_20' ) end [2025-01-29 07:23:19] Production.INFO: ProcessCDR(1,14354768,1,1,2) [2025-01-29 07:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14354768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 07:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14354768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 07:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14354768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 07:23:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14354768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 07:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354768', 'tblTempUsageDetail_20' ) start [2025-01-29 07:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354768', 'tblTempUsageDetail_20' ) end [2025-01-29 07:23:23] Production.ERROR: pbx prc_insertCDR start [2025-01-29 07:23:23] Production.ERROR: pbx prc_insertCDR end [2025-01-29 07:23:23] Production.INFO: ==1714== Releasing lock... [2025-01-29 07:23:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 07:23:23] Production.INFO: 28.25 MB #Memory Used# [2025-01-29 07:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 04:24:05 [end_date_ymd] => 2025-01-29 07:24:05 [RateCDR] => 1 ) [2025-01-29 07:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 04:24:05' and `end` < '2025-01-29 07:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 07:24:19] Production.INFO: count ==123 [2025-01-29 07:24:19] Production.ERROR: pbx CDR StartTime 2025-01-29 04:24:05 - End Time 2025-01-29 07:24:05 [2025-01-29 07:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 07:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354773', 'tblTempUsageDetail_20' ) start [2025-01-29 07:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354773', 'tblTempUsageDetail_20' ) end [2025-01-29 07:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354773', 'tblTempVendorCDR_20' ) start [2025-01-29 07:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354773', 'tblTempVendorCDR_20' ) end [2025-01-29 07:24:19] Production.INFO: ProcessCDR(1,14354773,1,1,2) [2025-01-29 07:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14354773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 07:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14354773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 07:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14354773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 07:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14354773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 07:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354773', 'tblTempUsageDetail_20' ) start [2025-01-29 07:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354773', 'tblTempUsageDetail_20' ) end [2025-01-29 07:24:22] Production.ERROR: pbx prc_insertCDR start [2025-01-29 07:24:22] Production.ERROR: pbx prc_insertCDR end [2025-01-29 07:24:22] Production.INFO: ==1792== Releasing lock... [2025-01-29 07:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 07:24:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-29 07:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 04:25:05 [end_date_ymd] => 2025-01-29 07:25:05 [RateCDR] => 1 ) [2025-01-29 07:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 04:25:05' and `end` < '2025-01-29 07:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 07:25:18] Production.INFO: count ==123 [2025-01-29 07:25:18] Production.ERROR: pbx CDR StartTime 2025-01-29 04:25:05 - End Time 2025-01-29 07:25:05 [2025-01-29 07:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354778', 'tblTempUsageDetail_20' ) start [2025-01-29 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354778', 'tblTempUsageDetail_20' ) end [2025-01-29 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354778', 'tblTempVendorCDR_20' ) start [2025-01-29 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354778', 'tblTempVendorCDR_20' ) end [2025-01-29 07:25:18] Production.INFO: ProcessCDR(1,14354778,1,1,2) [2025-01-29 07:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14354778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 07:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14354778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 07:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14354778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 07:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14354778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 07:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354778', 'tblTempUsageDetail_20' ) start [2025-01-29 07:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354778', 'tblTempUsageDetail_20' ) end [2025-01-29 07:25:21] Production.ERROR: pbx prc_insertCDR start [2025-01-29 07:25:21] Production.ERROR: pbx prc_insertCDR end [2025-01-29 07:25:22] Production.INFO: ==1874== Releasing lock... [2025-01-29 07:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 07:25:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-29 07:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 04:26:05 [end_date_ymd] => 2025-01-29 07:26:05 [RateCDR] => 1 ) [2025-01-29 07:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 04:26:05' and `end` < '2025-01-29 07:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 07:26:18] Production.INFO: count ==123 [2025-01-29 07:26:18] Production.ERROR: pbx CDR StartTime 2025-01-29 04:26:05 - End Time 2025-01-29 07:26:05 [2025-01-29 07:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 07:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354783', 'tblTempUsageDetail_20' ) start [2025-01-29 07:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354783', 'tblTempUsageDetail_20' ) end [2025-01-29 07:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354783', 'tblTempVendorCDR_20' ) start [2025-01-29 07:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354783', 'tblTempVendorCDR_20' ) end [2025-01-29 07:26:18] Production.INFO: ProcessCDR(1,14354783,1,1,2) [2025-01-29 07:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14354783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 07:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14354783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 07:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14354783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 07:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14354783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 07:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354783', 'tblTempUsageDetail_20' ) start [2025-01-29 07:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354783', 'tblTempUsageDetail_20' ) end [2025-01-29 07:26:22] Production.ERROR: pbx prc_insertCDR start [2025-01-29 07:26:22] Production.ERROR: pbx prc_insertCDR end [2025-01-29 07:26:22] Production.INFO: ==1986== Releasing lock... [2025-01-29 07:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 07:26:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-29 07:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 04:27:06 [end_date_ymd] => 2025-01-29 07:27:06 [RateCDR] => 1 ) [2025-01-29 07:27:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 04:27:06' and `end` < '2025-01-29 07:27:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 07:27:19] Production.INFO: count ==123 [2025-01-29 07:27:19] Production.ERROR: pbx CDR StartTime 2025-01-29 04:27:06 - End Time 2025-01-29 07:27:06 [2025-01-29 07:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 07:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354788', 'tblTempUsageDetail_20' ) start [2025-01-29 07:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354788', 'tblTempUsageDetail_20' ) end [2025-01-29 07:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354788', 'tblTempVendorCDR_20' ) start [2025-01-29 07:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354788', 'tblTempVendorCDR_20' ) end [2025-01-29 07:27:19] Production.INFO: ProcessCDR(1,14354788,1,1,2) [2025-01-29 07:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14354788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 07:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14354788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 07:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14354788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 07:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14354788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 07:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354788', 'tblTempUsageDetail_20' ) start [2025-01-29 07:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354788', 'tblTempUsageDetail_20' ) end [2025-01-29 07:27:22] Production.ERROR: pbx prc_insertCDR start [2025-01-29 07:27:22] Production.ERROR: pbx prc_insertCDR end [2025-01-29 07:27:22] Production.INFO: ==2064== Releasing lock... [2025-01-29 07:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 07:27:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-29 07:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 04:28:05 [end_date_ymd] => 2025-01-29 07:28:05 [RateCDR] => 1 ) [2025-01-29 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-01-29 04:28:05' and `end` < '2025-01-29 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-01-29 07:28:19] Production.INFO: count ==123 [2025-01-29 07:28:19] Production.ERROR: pbx CDR StartTime 2025-01-29 04:28:05 - End Time 2025-01-29 07:28:05 [2025-01-29 07:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 07:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354793', 'tblTempUsageDetail_20' ) start [2025-01-29 07:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354793', 'tblTempUsageDetail_20' ) end [2025-01-29 07:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354793', 'tblTempVendorCDR_20' ) start [2025-01-29 07:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354793', 'tblTempVendorCDR_20' ) end [2025-01-29 07:28:19] Production.INFO: ProcessCDR(1,14354793,1,1,2) [2025-01-29 07:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14354793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 07:28:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14354793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 07:28:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14354793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 07:28:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14354793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 07:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354793', 'tblTempUsageDetail_20' ) start [2025-01-29 07:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354793', 'tblTempUsageDetail_20' ) end [2025-01-29 07:28:23] Production.ERROR: pbx prc_insertCDR start [2025-01-29 07:28:23] Production.ERROR: pbx prc_insertCDR end [2025-01-29 07:28:23] Production.INFO: ==2138== Releasing lock... [2025-01-29 07:28:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 07:28:23] Production.INFO: 28.25 MB #Memory Used# [2025-01-29 07:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 04:29:05 [end_date_ymd] => 2025-01-29 07:29:05 [RateCDR] => 1 ) [2025-01-29 07:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 04:29:05' and `end` < '2025-01-29 07:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 07:29:20] Production.INFO: count ==122 [2025-01-29 07:29:20] Production.ERROR: pbx CDR StartTime 2025-01-29 04:29:05 - End Time 2025-01-29 07:29:05 [2025-01-29 07:29:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 07:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354798', 'tblTempUsageDetail_20' ) start [2025-01-29 07:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354798', 'tblTempUsageDetail_20' ) end [2025-01-29 07:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354798', 'tblTempVendorCDR_20' ) start [2025-01-29 07:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354798', 'tblTempVendorCDR_20' ) end [2025-01-29 07:29:20] Production.INFO: ProcessCDR(1,14354798,1,1,2) [2025-01-29 07:29:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14354798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 07:29:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14354798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 07:29:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14354798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 07:29:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14354798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 07:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354798', 'tblTempUsageDetail_20' ) start [2025-01-29 07:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354798', 'tblTempUsageDetail_20' ) end [2025-01-29 07:29:23] Production.ERROR: pbx prc_insertCDR start [2025-01-29 07:29:23] Production.ERROR: pbx prc_insertCDR end [2025-01-29 07:29:23] Production.INFO: ==2216== Releasing lock... [2025-01-29 07:29:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 07:29:23] Production.INFO: 28.25 MB #Memory Used# [2025-01-29 07:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 04:30:06 [end_date_ymd] => 2025-01-29 07:30:06 [RateCDR] => 1 ) [2025-01-29 07:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 04:30:06' and `end` < '2025-01-29 07:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 07:30:19] Production.INFO: count ==125 [2025-01-29 07:30:19] Production.ERROR: pbx CDR StartTime 2025-01-29 04:30:06 - End Time 2025-01-29 07:30:06 [2025-01-29 07:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 07:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354804', 'tblTempUsageDetail_20' ) start [2025-01-29 07:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354804', 'tblTempUsageDetail_20' ) end [2025-01-29 07:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354804', 'tblTempVendorCDR_20' ) start [2025-01-29 07:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354804', 'tblTempVendorCDR_20' ) end [2025-01-29 07:30:19] Production.INFO: ProcessCDR(1,14354804,1,1,2) [2025-01-29 07:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14354804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 07:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14354804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 07:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14354804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 07:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14354804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 07:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354804', 'tblTempUsageDetail_20' ) start [2025-01-29 07:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354804', 'tblTempUsageDetail_20' ) end [2025-01-29 07:30:22] Production.ERROR: pbx prc_insertCDR start [2025-01-29 07:30:22] Production.ERROR: pbx prc_insertCDR end [2025-01-29 07:30:22] Production.INFO: ==2298== Releasing lock... [2025-01-29 07:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 07:30:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-29 07:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 04:31:05 [end_date_ymd] => 2025-01-29 07:31:05 [RateCDR] => 1 ) [2025-01-29 07:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 04:31:05' and `end` < '2025-01-29 07:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 07:31:19] Production.INFO: count ==125 [2025-01-29 07:31:19] Production.ERROR: pbx CDR StartTime 2025-01-29 04:31:05 - End Time 2025-01-29 07:31:05 [2025-01-29 07:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 07:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354809', 'tblTempUsageDetail_20' ) start [2025-01-29 07:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354809', 'tblTempUsageDetail_20' ) end [2025-01-29 07:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354809', 'tblTempVendorCDR_20' ) start [2025-01-29 07:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354809', 'tblTempVendorCDR_20' ) end [2025-01-29 07:31:19] Production.INFO: ProcessCDR(1,14354809,1,1,2) [2025-01-29 07:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14354809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 07:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14354809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 07:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14354809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 07:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14354809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 07:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354809', 'tblTempUsageDetail_20' ) start [2025-01-29 07:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354809', 'tblTempUsageDetail_20' ) end [2025-01-29 07:31:22] Production.ERROR: pbx prc_insertCDR start [2025-01-29 07:31:22] Production.ERROR: pbx prc_insertCDR end [2025-01-29 07:31:22] Production.INFO: ==2375== Releasing lock... [2025-01-29 07:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 07:31:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-29 07:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 04:32:05 [end_date_ymd] => 2025-01-29 07:32:05 [RateCDR] => 1 ) [2025-01-29 07:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 04:32:05' and `end` < '2025-01-29 07:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 07:32:18] Production.INFO: count ==125 [2025-01-29 07:32:18] Production.ERROR: pbx CDR StartTime 2025-01-29 04:32:05 - End Time 2025-01-29 07:32:05 [2025-01-29 07:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 07:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354814', 'tblTempUsageDetail_20' ) start [2025-01-29 07:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354814', 'tblTempUsageDetail_20' ) end [2025-01-29 07:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354814', 'tblTempVendorCDR_20' ) start [2025-01-29 07:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354814', 'tblTempVendorCDR_20' ) end [2025-01-29 07:32:18] Production.INFO: ProcessCDR(1,14354814,1,1,2) [2025-01-29 07:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14354814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 07:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14354814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 07:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14354814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 07:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14354814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 07:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354814', 'tblTempUsageDetail_20' ) start [2025-01-29 07:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354814', 'tblTempUsageDetail_20' ) end [2025-01-29 07:32:22] Production.ERROR: pbx prc_insertCDR start [2025-01-29 07:32:22] Production.ERROR: pbx prc_insertCDR end [2025-01-29 07:32:22] Production.INFO: ==2449== Releasing lock... [2025-01-29 07:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 07:32:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-29 07:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 04:33:06 [end_date_ymd] => 2025-01-29 07:33:06 [RateCDR] => 1 ) [2025-01-29 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-01-29 04:33:06' and `end` < '2025-01-29 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-01-29 07:33:19] Production.INFO: count ==125 [2025-01-29 07:33:19] Production.ERROR: pbx CDR StartTime 2025-01-29 04:33:06 - End Time 2025-01-29 07:33:06 [2025-01-29 07:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 07:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354819', 'tblTempUsageDetail_20' ) start [2025-01-29 07:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354819', 'tblTempUsageDetail_20' ) end [2025-01-29 07:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354819', 'tblTempVendorCDR_20' ) start [2025-01-29 07:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354819', 'tblTempVendorCDR_20' ) end [2025-01-29 07:33:19] Production.INFO: ProcessCDR(1,14354819,1,1,2) [2025-01-29 07:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14354819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 07:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14354819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 07:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14354819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 07:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14354819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 07:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354819', 'tblTempUsageDetail_20' ) start [2025-01-29 07:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354819', 'tblTempUsageDetail_20' ) end [2025-01-29 07:33:22] Production.ERROR: pbx prc_insertCDR start [2025-01-29 07:33:22] Production.ERROR: pbx prc_insertCDR end [2025-01-29 07:33:22] Production.INFO: ==2527== Releasing lock... [2025-01-29 07:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 07:33:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-29 07:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 04:34:06 [end_date_ymd] => 2025-01-29 07:34:06 [RateCDR] => 1 ) [2025-01-29 07:34:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 04:34:06' and `end` < '2025-01-29 07:34:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 07:34:19] Production.INFO: count ==125 [2025-01-29 07:34:19] Production.ERROR: pbx CDR StartTime 2025-01-29 04:34:06 - End Time 2025-01-29 07:34:06 [2025-01-29 07:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 07:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354824', 'tblTempUsageDetail_20' ) start [2025-01-29 07:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354824', 'tblTempUsageDetail_20' ) end [2025-01-29 07:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354824', 'tblTempVendorCDR_20' ) start [2025-01-29 07:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354824', 'tblTempVendorCDR_20' ) end [2025-01-29 07:34:19] Production.INFO: ProcessCDR(1,14354824,1,1,2) [2025-01-29 07:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14354824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 07:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14354824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 07:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14354824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 07:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14354824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 07:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354824', 'tblTempUsageDetail_20' ) start [2025-01-29 07:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354824', 'tblTempUsageDetail_20' ) end [2025-01-29 07:34:22] Production.ERROR: pbx prc_insertCDR start [2025-01-29 07:34:22] Production.ERROR: pbx prc_insertCDR end [2025-01-29 07:34:22] Production.INFO: ==2619== Releasing lock... [2025-01-29 07:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 07:34:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-29 07:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 04:35:06 [end_date_ymd] => 2025-01-29 07:35:06 [RateCDR] => 1 ) [2025-01-29 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-01-29 04:35:06' and `end` < '2025-01-29 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-01-29 07:35:19] Production.INFO: count ==125 [2025-01-29 07:35:19] Production.ERROR: pbx CDR StartTime 2025-01-29 04:35:06 - End Time 2025-01-29 07:35:06 [2025-01-29 07:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 07:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354829', 'tblTempUsageDetail_20' ) start [2025-01-29 07:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354829', 'tblTempUsageDetail_20' ) end [2025-01-29 07:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354829', 'tblTempVendorCDR_20' ) start [2025-01-29 07:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354829', 'tblTempVendorCDR_20' ) end [2025-01-29 07:35:19] Production.INFO: ProcessCDR(1,14354829,1,1,2) [2025-01-29 07:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14354829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 07:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14354829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 07:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14354829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 07:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14354829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 07:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354829', 'tblTempUsageDetail_20' ) start [2025-01-29 07:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354829', 'tblTempUsageDetail_20' ) end [2025-01-29 07:35:22] Production.ERROR: pbx prc_insertCDR start [2025-01-29 07:35:22] Production.ERROR: pbx prc_insertCDR end [2025-01-29 07:35:22] Production.INFO: ==2691== Releasing lock... [2025-01-29 07:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 07:35:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-29 07:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 04:36:05 [end_date_ymd] => 2025-01-29 07:36:05 [RateCDR] => 1 ) [2025-01-29 07:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 04:36:05' and `end` < '2025-01-29 07:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 07:36:19] Production.INFO: count ==125 [2025-01-29 07:36:19] Production.ERROR: pbx CDR StartTime 2025-01-29 04:36:05 - End Time 2025-01-29 07:36:05 [2025-01-29 07:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 07:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354834', 'tblTempUsageDetail_20' ) start [2025-01-29 07:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354834', 'tblTempUsageDetail_20' ) end [2025-01-29 07:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354834', 'tblTempVendorCDR_20' ) start [2025-01-29 07:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354834', 'tblTempVendorCDR_20' ) end [2025-01-29 07:36:19] Production.INFO: ProcessCDR(1,14354834,1,1,2) [2025-01-29 07:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14354834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 07:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14354834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 07:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14354834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 07:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14354834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 07:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354834', 'tblTempUsageDetail_20' ) start [2025-01-29 07:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354834', 'tblTempUsageDetail_20' ) end [2025-01-29 07:36:22] Production.ERROR: pbx prc_insertCDR start [2025-01-29 07:36:22] Production.ERROR: pbx prc_insertCDR end [2025-01-29 07:36:22] Production.INFO: ==2768== Releasing lock... [2025-01-29 07:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 07:36:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-29 07:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 04:37:06 [end_date_ymd] => 2025-01-29 07:37:06 [RateCDR] => 1 ) [2025-01-29 07:37:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 04:37:06' and `end` < '2025-01-29 07:37:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 07:37:20] Production.INFO: count ==125 [2025-01-29 07:37:20] Production.ERROR: pbx CDR StartTime 2025-01-29 04:37:06 - End Time 2025-01-29 07:37:06 [2025-01-29 07:37:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 07:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354839', 'tblTempUsageDetail_20' ) start [2025-01-29 07:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354839', 'tblTempUsageDetail_20' ) end [2025-01-29 07:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354839', 'tblTempVendorCDR_20' ) start [2025-01-29 07:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354839', 'tblTempVendorCDR_20' ) end [2025-01-29 07:37:20] Production.INFO: ProcessCDR(1,14354839,1,1,2) [2025-01-29 07:37:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14354839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 07:37:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14354839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 07:37:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14354839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 07:37:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14354839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 07:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354839', 'tblTempUsageDetail_20' ) start [2025-01-29 07:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354839', 'tblTempUsageDetail_20' ) end [2025-01-29 07:37:23] Production.ERROR: pbx prc_insertCDR start [2025-01-29 07:37:23] Production.ERROR: pbx prc_insertCDR end [2025-01-29 07:37:23] Production.INFO: ==2842== Releasing lock... [2025-01-29 07:37:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 07:37:23] Production.INFO: 28.25 MB #Memory Used# [2025-01-29 07:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 04:38:05 [end_date_ymd] => 2025-01-29 07:38:05 [RateCDR] => 1 ) [2025-01-29 07:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 04:38:05' and `end` < '2025-01-29 07:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 07:38:18] Production.INFO: count ==125 [2025-01-29 07:38:18] Production.ERROR: pbx CDR StartTime 2025-01-29 04:38:05 - End Time 2025-01-29 07:38:05 [2025-01-29 07:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 07:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354844', 'tblTempUsageDetail_20' ) start [2025-01-29 07:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354844', 'tblTempUsageDetail_20' ) end [2025-01-29 07:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354844', 'tblTempVendorCDR_20' ) start [2025-01-29 07:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354844', 'tblTempVendorCDR_20' ) end [2025-01-29 07:38:18] Production.INFO: ProcessCDR(1,14354844,1,1,2) [2025-01-29 07:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14354844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 07:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14354844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 07:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14354844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 07:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14354844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 07:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354844', 'tblTempUsageDetail_20' ) start [2025-01-29 07:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354844', 'tblTempUsageDetail_20' ) end [2025-01-29 07:38:21] Production.ERROR: pbx prc_insertCDR start [2025-01-29 07:38:21] Production.ERROR: pbx prc_insertCDR end [2025-01-29 07:38:21] Production.INFO: ==2923== Releasing lock... [2025-01-29 07:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 07:38:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-29 07:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 04:39:05 [end_date_ymd] => 2025-01-29 07:39:05 [RateCDR] => 1 ) [2025-01-29 07:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 04:39:05' and `end` < '2025-01-29 07:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 07:39:19] Production.INFO: count ==125 [2025-01-29 07:39:19] Production.ERROR: pbx CDR StartTime 2025-01-29 04:39:05 - End Time 2025-01-29 07:39:05 [2025-01-29 07:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 07:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354849', 'tblTempUsageDetail_20' ) start [2025-01-29 07:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354849', 'tblTempUsageDetail_20' ) end [2025-01-29 07:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354849', 'tblTempVendorCDR_20' ) start [2025-01-29 07:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354849', 'tblTempVendorCDR_20' ) end [2025-01-29 07:39:19] Production.INFO: ProcessCDR(1,14354849,1,1,2) [2025-01-29 07:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14354849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 07:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14354849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 07:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14354849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 07:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14354849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 07:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354849', 'tblTempUsageDetail_20' ) start [2025-01-29 07:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354849', 'tblTempUsageDetail_20' ) end [2025-01-29 07:39:22] Production.ERROR: pbx prc_insertCDR start [2025-01-29 07:39:22] Production.ERROR: pbx prc_insertCDR end [2025-01-29 07:39:22] Production.INFO: ==2999== Releasing lock... [2025-01-29 07:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 07:39:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-29 07:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 04:40:06 [end_date_ymd] => 2025-01-29 07:40:06 [RateCDR] => 1 ) [2025-01-29 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-01-29 04:40:06' and `end` < '2025-01-29 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-01-29 07:40:19] Production.INFO: count ==125 [2025-01-29 07:40:19] Production.ERROR: pbx CDR StartTime 2025-01-29 04:40:06 - End Time 2025-01-29 07:40:06 [2025-01-29 07:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 07:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354854', 'tblTempUsageDetail_20' ) start [2025-01-29 07:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354854', 'tblTempUsageDetail_20' ) end [2025-01-29 07:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354854', 'tblTempVendorCDR_20' ) start [2025-01-29 07:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354854', 'tblTempVendorCDR_20' ) end [2025-01-29 07:40:19] Production.INFO: ProcessCDR(1,14354854,1,1,2) [2025-01-29 07:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14354854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 07:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14354854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 07:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14354854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 07:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14354854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 07:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354854', 'tblTempUsageDetail_20' ) start [2025-01-29 07:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354854', 'tblTempUsageDetail_20' ) end [2025-01-29 07:40:22] Production.ERROR: pbx prc_insertCDR start [2025-01-29 07:40:22] Production.ERROR: pbx prc_insertCDR end [2025-01-29 07:40:22] Production.INFO: ==3077== Releasing lock... [2025-01-29 07:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 07:40:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-29 07:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 04:41:05 [end_date_ymd] => 2025-01-29 07:41:05 [RateCDR] => 1 ) [2025-01-29 07:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 04:41:05' and `end` < '2025-01-29 07:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 07:41:19] Production.INFO: count ==125 [2025-01-29 07:41:19] Production.ERROR: pbx CDR StartTime 2025-01-29 04:41:05 - End Time 2025-01-29 07:41:05 [2025-01-29 07:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 07:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354860', 'tblTempUsageDetail_20' ) start [2025-01-29 07:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354860', 'tblTempUsageDetail_20' ) end [2025-01-29 07:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354860', 'tblTempVendorCDR_20' ) start [2025-01-29 07:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354860', 'tblTempVendorCDR_20' ) end [2025-01-29 07:41:19] Production.INFO: ProcessCDR(1,14354860,1,1,2) [2025-01-29 07:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14354860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 07:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14354860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 07:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14354860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 07:41:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14354860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 07:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354860', 'tblTempUsageDetail_20' ) start [2025-01-29 07:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354860', 'tblTempUsageDetail_20' ) end [2025-01-29 07:41:23] Production.ERROR: pbx prc_insertCDR start [2025-01-29 07:41:23] Production.ERROR: pbx prc_insertCDR end [2025-01-29 07:41:23] Production.INFO: ==3196== Releasing lock... [2025-01-29 07:41:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 07:41:23] Production.INFO: 28.25 MB #Memory Used# [2025-01-29 07:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 04:42:05 [end_date_ymd] => 2025-01-29 07:42:05 [RateCDR] => 1 ) [2025-01-29 07:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 04:42:05' and `end` < '2025-01-29 07:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 07:42:18] Production.INFO: count ==126 [2025-01-29 07:42:18] Production.ERROR: pbx CDR StartTime 2025-01-29 04:42:05 - End Time 2025-01-29 07:42:05 [2025-01-29 07:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 07:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354865', 'tblTempUsageDetail_20' ) start [2025-01-29 07:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354865', 'tblTempUsageDetail_20' ) end [2025-01-29 07:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354865', 'tblTempVendorCDR_20' ) start [2025-01-29 07:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354865', 'tblTempVendorCDR_20' ) end [2025-01-29 07:42:19] Production.INFO: ProcessCDR(1,14354865,1,1,2) [2025-01-29 07:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14354865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 07:42:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14354865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 07:42:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14354865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 07:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14354865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 07:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354865', 'tblTempUsageDetail_20' ) start [2025-01-29 07:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354865', 'tblTempUsageDetail_20' ) end [2025-01-29 07:42:24] Production.ERROR: pbx prc_insertCDR start [2025-01-29 07:42:24] Production.ERROR: pbx prc_insertCDR end [2025-01-29 07:42:24] Production.INFO: ==3269== Releasing lock... [2025-01-29 07:42:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 07:42:24] Production.INFO: 28.25 MB #Memory Used# [2025-01-29 07:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 04:43:05 [end_date_ymd] => 2025-01-29 07:43:05 [RateCDR] => 1 ) [2025-01-29 07:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 04:43:05' and `end` < '2025-01-29 07:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 07:43:19] Production.INFO: count ==126 [2025-01-29 07:43:19] Production.ERROR: pbx CDR StartTime 2025-01-29 04:43:05 - End Time 2025-01-29 07:43:05 [2025-01-29 07:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 07:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354870', 'tblTempUsageDetail_20' ) start [2025-01-29 07:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354870', 'tblTempUsageDetail_20' ) end [2025-01-29 07:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354870', 'tblTempVendorCDR_20' ) start [2025-01-29 07:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354870', 'tblTempVendorCDR_20' ) end [2025-01-29 07:43:19] Production.INFO: ProcessCDR(1,14354870,1,1,2) [2025-01-29 07:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14354870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 07:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14354870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 07:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14354870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 07:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14354870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 07:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354870', 'tblTempUsageDetail_20' ) start [2025-01-29 07:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354870', 'tblTempUsageDetail_20' ) end [2025-01-29 07:43:22] Production.ERROR: pbx prc_insertCDR start [2025-01-29 07:43:22] Production.ERROR: pbx prc_insertCDR end [2025-01-29 07:43:22] Production.INFO: ==3343== Releasing lock... [2025-01-29 07:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 07:43:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-29 07:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 04:44:05 [end_date_ymd] => 2025-01-29 07:44:05 [RateCDR] => 1 ) [2025-01-29 07:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 04:44:05' and `end` < '2025-01-29 07:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 07:44:18] Production.INFO: count ==127 [2025-01-29 07:44:18] Production.ERROR: pbx CDR StartTime 2025-01-29 04:44:05 - End Time 2025-01-29 07:44:05 [2025-01-29 07:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 07:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354875', 'tblTempUsageDetail_20' ) start [2025-01-29 07:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354875', 'tblTempUsageDetail_20' ) end [2025-01-29 07:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354875', 'tblTempVendorCDR_20' ) start [2025-01-29 07:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354875', 'tblTempVendorCDR_20' ) end [2025-01-29 07:44:18] Production.INFO: ProcessCDR(1,14354875,1,1,2) [2025-01-29 07:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14354875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 07:44:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14354875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 07:44:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14354875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 07:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14354875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 07:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354875', 'tblTempUsageDetail_20' ) start [2025-01-29 07:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354875', 'tblTempUsageDetail_20' ) end [2025-01-29 07:44:23] Production.ERROR: pbx prc_insertCDR start [2025-01-29 07:44:23] Production.ERROR: pbx prc_insertCDR end [2025-01-29 07:44:23] Production.INFO: ==3425== Releasing lock... [2025-01-29 07:44:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 07:44:23] Production.INFO: 28.25 MB #Memory Used# [2025-01-29 07:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 04:45:05 [end_date_ymd] => 2025-01-29 07:45:05 [RateCDR] => 1 ) [2025-01-29 07:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 04:45:05' and `end` < '2025-01-29 07:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 07:45:18] Production.INFO: count ==127 [2025-01-29 07:45:18] Production.ERROR: pbx CDR StartTime 2025-01-29 04:45:05 - End Time 2025-01-29 07:45:05 [2025-01-29 07:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 07:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354880', 'tblTempUsageDetail_20' ) start [2025-01-29 07:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354880', 'tblTempUsageDetail_20' ) end [2025-01-29 07:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354880', 'tblTempVendorCDR_20' ) start [2025-01-29 07:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354880', 'tblTempVendorCDR_20' ) end [2025-01-29 07:45:18] Production.INFO: ProcessCDR(1,14354880,1,1,2) [2025-01-29 07:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14354880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 07:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14354880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 07:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14354880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 07:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14354880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 07:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354880', 'tblTempUsageDetail_20' ) start [2025-01-29 07:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354880', 'tblTempUsageDetail_20' ) end [2025-01-29 07:45:21] Production.ERROR: pbx prc_insertCDR start [2025-01-29 07:45:21] Production.ERROR: pbx prc_insertCDR end [2025-01-29 07:45:21] Production.INFO: ==3500== Releasing lock... [2025-01-29 07:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 07:45:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-29 07:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 04:46:05 [end_date_ymd] => 2025-01-29 07:46:05 [RateCDR] => 1 ) [2025-01-29 07:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 04:46:05' and `end` < '2025-01-29 07:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 07:46:19] Production.INFO: count ==128 [2025-01-29 07:46:19] Production.ERROR: pbx CDR StartTime 2025-01-29 04:46:05 - End Time 2025-01-29 07:46:05 [2025-01-29 07:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 07:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354885', 'tblTempUsageDetail_20' ) start [2025-01-29 07:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354885', 'tblTempUsageDetail_20' ) end [2025-01-29 07:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354885', 'tblTempVendorCDR_20' ) start [2025-01-29 07:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354885', 'tblTempVendorCDR_20' ) end [2025-01-29 07:46:19] Production.INFO: ProcessCDR(1,14354885,1,1,2) [2025-01-29 07:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14354885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 07:46:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14354885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 07:46:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14354885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 07:46:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14354885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 07:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354885', 'tblTempUsageDetail_20' ) start [2025-01-29 07:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354885', 'tblTempUsageDetail_20' ) end [2025-01-29 07:46:24] Production.ERROR: pbx prc_insertCDR start [2025-01-29 07:46:24] Production.ERROR: pbx prc_insertCDR end [2025-01-29 07:46:24] Production.INFO: ==3575== Releasing lock... [2025-01-29 07:46:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 07:46:24] Production.INFO: 28.5 MB #Memory Used# [2025-01-29 07:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 04:47:05 [end_date_ymd] => 2025-01-29 07:47:05 [RateCDR] => 1 ) [2025-01-29 07:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 04:47:05' and `end` < '2025-01-29 07:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 07:47:18] Production.INFO: count ==134 [2025-01-29 07:47:18] Production.ERROR: pbx CDR StartTime 2025-01-29 04:47:05 - End Time 2025-01-29 07:47:05 [2025-01-29 07:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 07:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354890', 'tblTempUsageDetail_20' ) start [2025-01-29 07:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354890', 'tblTempUsageDetail_20' ) end [2025-01-29 07:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354890', 'tblTempVendorCDR_20' ) start [2025-01-29 07:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354890', 'tblTempVendorCDR_20' ) end [2025-01-29 07:47:18] Production.INFO: ProcessCDR(1,14354890,1,1,2) [2025-01-29 07:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14354890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 07:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14354890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 07:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14354890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 07:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14354890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 07:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354890', 'tblTempUsageDetail_20' ) start [2025-01-29 07:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354890', 'tblTempUsageDetail_20' ) end [2025-01-29 07:47:22] Production.ERROR: pbx prc_insertCDR start [2025-01-29 07:47:22] Production.ERROR: pbx prc_insertCDR end [2025-01-29 07:47:22] Production.INFO: ==3654== Releasing lock... [2025-01-29 07:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 07:47:22] Production.INFO: 28.5 MB #Memory Used# [2025-01-29 07:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 04:48:05 [end_date_ymd] => 2025-01-29 07:48:05 [RateCDR] => 1 ) [2025-01-29 07:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 04:48:05' and `end` < '2025-01-29 07:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 07:48:18] Production.INFO: count ==134 [2025-01-29 07:48:18] Production.ERROR: pbx CDR StartTime 2025-01-29 04:48:05 - End Time 2025-01-29 07:48:05 [2025-01-29 07:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 07:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354895', 'tblTempUsageDetail_20' ) start [2025-01-29 07:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354895', 'tblTempUsageDetail_20' ) end [2025-01-29 07:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354895', 'tblTempVendorCDR_20' ) start [2025-01-29 07:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354895', 'tblTempVendorCDR_20' ) end [2025-01-29 07:48:18] Production.INFO: ProcessCDR(1,14354895,1,1,2) [2025-01-29 07:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14354895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 07:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14354895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 07:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14354895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 07:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14354895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 07:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354895', 'tblTempUsageDetail_20' ) start [2025-01-29 07:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354895', 'tblTempUsageDetail_20' ) end [2025-01-29 07:48:21] Production.ERROR: pbx prc_insertCDR start [2025-01-29 07:48:21] Production.ERROR: pbx prc_insertCDR end [2025-01-29 07:48:21] Production.INFO: ==3726== Releasing lock... [2025-01-29 07:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 07:48:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-29 07:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 04:49:05 [end_date_ymd] => 2025-01-29 07:49:05 [RateCDR] => 1 ) [2025-01-29 07:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 04:49:05' and `end` < '2025-01-29 07:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 07:49:18] Production.INFO: count ==135 [2025-01-29 07:49:18] Production.ERROR: pbx CDR StartTime 2025-01-29 04:49:05 - End Time 2025-01-29 07:49:05 [2025-01-29 07:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 07:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354900', 'tblTempUsageDetail_20' ) start [2025-01-29 07:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354900', 'tblTempUsageDetail_20' ) end [2025-01-29 07:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354900', 'tblTempVendorCDR_20' ) start [2025-01-29 07:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354900', 'tblTempVendorCDR_20' ) end [2025-01-29 07:49:18] Production.INFO: ProcessCDR(1,14354900,1,1,2) [2025-01-29 07:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14354900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 07:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14354900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 07:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14354900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 07:49:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14354900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 07:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354900', 'tblTempUsageDetail_20' ) start [2025-01-29 07:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354900', 'tblTempUsageDetail_20' ) end [2025-01-29 07:49:23] Production.ERROR: pbx prc_insertCDR start [2025-01-29 07:49:23] Production.ERROR: pbx prc_insertCDR end [2025-01-29 07:49:23] Production.INFO: ==3798== Releasing lock... [2025-01-29 07:49:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 07:49:23] Production.INFO: 28.5 MB #Memory Used# [2025-01-29 07:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 04:50:06 [end_date_ymd] => 2025-01-29 07:50:06 [RateCDR] => 1 ) [2025-01-29 07:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 04:50:06' and `end` < '2025-01-29 07:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 07:50:20] Production.INFO: count ==135 [2025-01-29 07:50:20] Production.ERROR: pbx CDR StartTime 2025-01-29 04:50:06 - End Time 2025-01-29 07:50:06 [2025-01-29 07:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 07:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354905', 'tblTempUsageDetail_20' ) start [2025-01-29 07:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354905', 'tblTempUsageDetail_20' ) end [2025-01-29 07:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354905', 'tblTempVendorCDR_20' ) start [2025-01-29 07:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354905', 'tblTempVendorCDR_20' ) end [2025-01-29 07:50:20] Production.INFO: ProcessCDR(1,14354905,1,1,2) [2025-01-29 07:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14354905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 07:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14354905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 07:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14354905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 07:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14354905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 07:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354905', 'tblTempUsageDetail_20' ) start [2025-01-29 07:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354905', 'tblTempUsageDetail_20' ) end [2025-01-29 07:50:23] Production.ERROR: pbx prc_insertCDR start [2025-01-29 07:50:23] Production.ERROR: pbx prc_insertCDR end [2025-01-29 07:50:23] Production.INFO: ==3873== Releasing lock... [2025-01-29 07:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 07:50:23] Production.INFO: 28.5 MB #Memory Used# [2025-01-29 07:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 04:51:06 [end_date_ymd] => 2025-01-29 07:51:06 [RateCDR] => 1 ) [2025-01-29 07:51:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 04:51:06' and `end` < '2025-01-29 07:51:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 07:51:18] Production.INFO: count ==135 [2025-01-29 07:51:18] Production.ERROR: pbx CDR StartTime 2025-01-29 04:51:06 - End Time 2025-01-29 07:51:06 [2025-01-29 07:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 07:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354911', 'tblTempUsageDetail_20' ) start [2025-01-29 07:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354911', 'tblTempUsageDetail_20' ) end [2025-01-29 07:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354911', 'tblTempVendorCDR_20' ) start [2025-01-29 07:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354911', 'tblTempVendorCDR_20' ) end [2025-01-29 07:51:18] Production.INFO: ProcessCDR(1,14354911,1,1,2) [2025-01-29 07:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14354911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 07:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14354911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 07:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14354911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 07:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14354911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 07:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354911', 'tblTempUsageDetail_20' ) start [2025-01-29 07:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354911', 'tblTempUsageDetail_20' ) end [2025-01-29 07:51:22] Production.ERROR: pbx prc_insertCDR start [2025-01-29 07:51:22] Production.ERROR: pbx prc_insertCDR end [2025-01-29 07:51:22] Production.INFO: ==3950== Releasing lock... [2025-01-29 07:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 07:51:22] Production.INFO: 28.5 MB #Memory Used# [2025-01-29 07:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 04:52:06 [end_date_ymd] => 2025-01-29 07:52:06 [RateCDR] => 1 ) [2025-01-29 07:52:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 04:52:06' and `end` < '2025-01-29 07:52:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 07:52:18] Production.INFO: count ==135 [2025-01-29 07:52:18] Production.ERROR: pbx CDR StartTime 2025-01-29 04:52:06 - End Time 2025-01-29 07:52:06 [2025-01-29 07:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 07:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354916', 'tblTempUsageDetail_20' ) start [2025-01-29 07:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354916', 'tblTempUsageDetail_20' ) end [2025-01-29 07:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354916', 'tblTempVendorCDR_20' ) start [2025-01-29 07:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354916', 'tblTempVendorCDR_20' ) end [2025-01-29 07:52:18] Production.INFO: ProcessCDR(1,14354916,1,1,2) [2025-01-29 07:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14354916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 07:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14354916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 07:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14354916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 07:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14354916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 07:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354916', 'tblTempUsageDetail_20' ) start [2025-01-29 07:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354916', 'tblTempUsageDetail_20' ) end [2025-01-29 07:52:22] Production.ERROR: pbx prc_insertCDR start [2025-01-29 07:52:22] Production.ERROR: pbx prc_insertCDR end [2025-01-29 07:52:22] Production.INFO: ==4029== Releasing lock... [2025-01-29 07:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 07:52:22] Production.INFO: 28.5 MB #Memory Used# [2025-01-29 07:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 04:53:05 [end_date_ymd] => 2025-01-29 07:53:05 [RateCDR] => 1 ) [2025-01-29 07:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 04:53:05' and `end` < '2025-01-29 07:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 07:53:18] Production.INFO: count ==135 [2025-01-29 07:53:18] Production.ERROR: pbx CDR StartTime 2025-01-29 04:53:05 - End Time 2025-01-29 07:53:05 [2025-01-29 07:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 07:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354921', 'tblTempUsageDetail_20' ) start [2025-01-29 07:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354921', 'tblTempUsageDetail_20' ) end [2025-01-29 07:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354921', 'tblTempVendorCDR_20' ) start [2025-01-29 07:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354921', 'tblTempVendorCDR_20' ) end [2025-01-29 07:53:18] Production.INFO: ProcessCDR(1,14354921,1,1,2) [2025-01-29 07:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14354921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 07:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14354921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 07:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14354921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 07:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14354921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 07:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354921', 'tblTempUsageDetail_20' ) start [2025-01-29 07:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354921', 'tblTempUsageDetail_20' ) end [2025-01-29 07:53:21] Production.ERROR: pbx prc_insertCDR start [2025-01-29 07:53:21] Production.ERROR: pbx prc_insertCDR end [2025-01-29 07:53:21] Production.INFO: ==4114== Releasing lock... [2025-01-29 07:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 07:53:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-29 07:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 04:54:06 [end_date_ymd] => 2025-01-29 07:54:06 [RateCDR] => 1 ) [2025-01-29 07:54:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 04:54:06' and `end` < '2025-01-29 07:54:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 07:54:19] Production.INFO: count ==136 [2025-01-29 07:54:19] Production.ERROR: pbx CDR StartTime 2025-01-29 04:54:06 - End Time 2025-01-29 07:54:06 [2025-01-29 07:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 07:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354926', 'tblTempUsageDetail_20' ) start [2025-01-29 07:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354926', 'tblTempUsageDetail_20' ) end [2025-01-29 07:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354926', 'tblTempVendorCDR_20' ) start [2025-01-29 07:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354926', 'tblTempVendorCDR_20' ) end [2025-01-29 07:54:19] Production.INFO: ProcessCDR(1,14354926,1,1,2) [2025-01-29 07:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14354926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 07:54:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14354926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 07:54:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14354926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 07:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14354926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 07:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354926', 'tblTempUsageDetail_20' ) start [2025-01-29 07:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354926', 'tblTempUsageDetail_20' ) end [2025-01-29 07:54:23] Production.ERROR: pbx prc_insertCDR start [2025-01-29 07:54:23] Production.ERROR: pbx prc_insertCDR end [2025-01-29 07:54:23] Production.INFO: ==4192== Releasing lock... [2025-01-29 07:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 07:54:23] Production.INFO: 28.5 MB #Memory Used# [2025-01-29 07:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 04:55:05 [end_date_ymd] => 2025-01-29 07:55:05 [RateCDR] => 1 ) [2025-01-29 07:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 04:55:05' and `end` < '2025-01-29 07:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 07:55:18] Production.INFO: count ==136 [2025-01-29 07:55:18] Production.ERROR: pbx CDR StartTime 2025-01-29 04:55:05 - End Time 2025-01-29 07:55:05 [2025-01-29 07:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 07:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354931', 'tblTempUsageDetail_20' ) start [2025-01-29 07:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354931', 'tblTempUsageDetail_20' ) end [2025-01-29 07:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354931', 'tblTempVendorCDR_20' ) start [2025-01-29 07:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354931', 'tblTempVendorCDR_20' ) end [2025-01-29 07:55:18] Production.INFO: ProcessCDR(1,14354931,1,1,2) [2025-01-29 07:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14354931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 07:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14354931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 07:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14354931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 07:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14354931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 07:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354931', 'tblTempUsageDetail_20' ) start [2025-01-29 07:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354931', 'tblTempUsageDetail_20' ) end [2025-01-29 07:55:21] Production.ERROR: pbx prc_insertCDR start [2025-01-29 07:55:21] Production.ERROR: pbx prc_insertCDR end [2025-01-29 07:55:21] Production.INFO: ==4267== Releasing lock... [2025-01-29 07:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 07:55:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-29 07:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 04:56:06 [end_date_ymd] => 2025-01-29 07:56:06 [RateCDR] => 1 ) [2025-01-29 07:56:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 04:56:06' and `end` < '2025-01-29 07:56:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 07:56:19] Production.INFO: count ==137 [2025-01-29 07:56:19] Production.ERROR: pbx CDR StartTime 2025-01-29 04:56:06 - End Time 2025-01-29 07:56:06 [2025-01-29 07:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 07:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354936', 'tblTempUsageDetail_20' ) start [2025-01-29 07:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354936', 'tblTempUsageDetail_20' ) end [2025-01-29 07:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354936', 'tblTempVendorCDR_20' ) start [2025-01-29 07:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354936', 'tblTempVendorCDR_20' ) end [2025-01-29 07:56:19] Production.INFO: ProcessCDR(1,14354936,1,1,2) [2025-01-29 07:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14354936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 07:56:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14354936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 07:56:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14354936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 07:56:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14354936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 07:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354936', 'tblTempUsageDetail_20' ) start [2025-01-29 07:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354936', 'tblTempUsageDetail_20' ) end [2025-01-29 07:56:24] Production.ERROR: pbx prc_insertCDR start [2025-01-29 07:56:24] Production.ERROR: pbx prc_insertCDR end [2025-01-29 07:56:24] Production.INFO: ==4345== Releasing lock... [2025-01-29 07:56:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 07:56:24] Production.INFO: 28.5 MB #Memory Used# [2025-01-29 07:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 04:57:05 [end_date_ymd] => 2025-01-29 07:57:05 [RateCDR] => 1 ) [2025-01-29 07:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 04:57:05' and `end` < '2025-01-29 07:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 07:57:18] Production.INFO: count ==137 [2025-01-29 07:57:18] Production.ERROR: pbx CDR StartTime 2025-01-29 04:57:05 - End Time 2025-01-29 07:57:05 [2025-01-29 07:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 07:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354941', 'tblTempUsageDetail_20' ) start [2025-01-29 07:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354941', 'tblTempUsageDetail_20' ) end [2025-01-29 07:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354941', 'tblTempVendorCDR_20' ) start [2025-01-29 07:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354941', 'tblTempVendorCDR_20' ) end [2025-01-29 07:57:18] Production.INFO: ProcessCDR(1,14354941,1,1,2) [2025-01-29 07:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14354941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 07:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14354941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 07:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14354941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 07:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14354941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 07:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354941', 'tblTempUsageDetail_20' ) start [2025-01-29 07:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354941', 'tblTempUsageDetail_20' ) end [2025-01-29 07:57:21] Production.ERROR: pbx prc_insertCDR start [2025-01-29 07:57:21] Production.ERROR: pbx prc_insertCDR end [2025-01-29 07:57:21] Production.INFO: ==4453== Releasing lock... [2025-01-29 07:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 07:57:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-29 07:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 04:58:06 [end_date_ymd] => 2025-01-29 07:58:06 [RateCDR] => 1 ) [2025-01-29 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-01-29 04:58:06' and `end` < '2025-01-29 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-01-29 07:58:19] Production.INFO: count ==137 [2025-01-29 07:58:19] Production.ERROR: pbx CDR StartTime 2025-01-29 04:58:06 - End Time 2025-01-29 07:58:06 [2025-01-29 07:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 07:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354946', 'tblTempUsageDetail_20' ) start [2025-01-29 07:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354946', 'tblTempUsageDetail_20' ) end [2025-01-29 07:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354946', 'tblTempVendorCDR_20' ) start [2025-01-29 07:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354946', 'tblTempVendorCDR_20' ) end [2025-01-29 07:58:19] Production.INFO: ProcessCDR(1,14354946,1,1,2) [2025-01-29 07:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14354946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 07:58:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14354946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 07:58:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14354946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 07:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14354946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 07:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354946', 'tblTempUsageDetail_20' ) start [2025-01-29 07:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354946', 'tblTempUsageDetail_20' ) end [2025-01-29 07:58:23] Production.ERROR: pbx prc_insertCDR start [2025-01-29 07:58:23] Production.ERROR: pbx prc_insertCDR end [2025-01-29 07:58:23] Production.INFO: ==4532== Releasing lock... [2025-01-29 07:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 07:58:23] Production.INFO: 28.5 MB #Memory Used# [2025-01-29 07:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 04:59:05 [end_date_ymd] => 2025-01-29 07:59:05 [RateCDR] => 1 ) [2025-01-29 07:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 04:59:05' and `end` < '2025-01-29 07:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 07:59:19] Production.INFO: count ==151 [2025-01-29 07:59:19] Production.ERROR: pbx CDR StartTime 2025-01-29 04:59:05 - End Time 2025-01-29 07:59:05 [2025-01-29 07:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 07:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354951', 'tblTempUsageDetail_20' ) start [2025-01-29 07:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354951', 'tblTempUsageDetail_20' ) end [2025-01-29 07:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354951', 'tblTempVendorCDR_20' ) start [2025-01-29 07:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354951', 'tblTempVendorCDR_20' ) end [2025-01-29 07:59:19] Production.INFO: ProcessCDR(1,14354951,1,1,2) [2025-01-29 07:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14354951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 07:59:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14354951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 07:59:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14354951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 07:59:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14354951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 07:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354951', 'tblTempUsageDetail_20' ) start [2025-01-29 07:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354951', 'tblTempUsageDetail_20' ) end [2025-01-29 07:59:23] Production.ERROR: pbx prc_insertCDR start [2025-01-29 07:59:23] Production.ERROR: pbx prc_insertCDR end [2025-01-29 07:59:23] Production.INFO: ==4616== Releasing lock... [2025-01-29 07:59:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 07:59:23] Production.INFO: 28.75 MB #Memory Used# [2025-01-29 08:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 05:00:07 [end_date_ymd] => 2025-01-29 08:00:07 [RateCDR] => 1 ) [2025-01-29 08:00:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 05:00:07' and `end` < '2025-01-29 08:00:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 08:00:19] Production.INFO: count ==151 [2025-01-29 08:00:19] Production.ERROR: pbx CDR StartTime 2025-01-29 05:00:07 - End Time 2025-01-29 08:00:07 [2025-01-29 08:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 08:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354957', 'tblTempUsageDetail_20' ) start [2025-01-29 08:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354957', 'tblTempUsageDetail_20' ) end [2025-01-29 08:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354957', 'tblTempVendorCDR_20' ) start [2025-01-29 08:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354957', 'tblTempVendorCDR_20' ) end [2025-01-29 08:00:19] Production.INFO: ProcessCDR(1,14354957,1,1,2) [2025-01-29 08:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14354957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 08:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14354957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 08:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14354957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 08:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14354957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 08:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354957', 'tblTempUsageDetail_20' ) start [2025-01-29 08:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354957', 'tblTempUsageDetail_20' ) end [2025-01-29 08:00:23] Production.ERROR: pbx prc_insertCDR start [2025-01-29 08:00:23] Production.ERROR: pbx prc_insertCDR end [2025-01-29 08:00:23] Production.INFO: ==4699== Releasing lock... [2025-01-29 08:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 08:00:23] Production.INFO: 28.75 MB #Memory Used# [2025-01-29 08:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 05:01:05 [end_date_ymd] => 2025-01-29 08:01:05 [RateCDR] => 1 ) [2025-01-29 08:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 05:01:05' and `end` < '2025-01-29 08:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 08:01:19] Production.INFO: count ==152 [2025-01-29 08:01:19] Production.ERROR: pbx CDR StartTime 2025-01-29 05:01:05 - End Time 2025-01-29 08:01:05 [2025-01-29 08:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 08:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354962', 'tblTempUsageDetail_20' ) start [2025-01-29 08:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354962', 'tblTempUsageDetail_20' ) end [2025-01-29 08:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354962', 'tblTempVendorCDR_20' ) start [2025-01-29 08:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354962', 'tblTempVendorCDR_20' ) end [2025-01-29 08:01:19] Production.INFO: ProcessCDR(1,14354962,1,1,2) [2025-01-29 08:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14354962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 08:01:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14354962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 08:01:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14354962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 08:01:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14354962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 08:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354962', 'tblTempUsageDetail_20' ) start [2025-01-29 08:01:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354962', 'tblTempUsageDetail_20' ) end [2025-01-29 08:01:25] Production.ERROR: pbx prc_insertCDR start [2025-01-29 08:01:25] Production.ERROR: pbx prc_insertCDR end [2025-01-29 08:01:25] Production.INFO: ==4791== Releasing lock... [2025-01-29 08:01:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 08:01:25] Production.INFO: 28.75 MB #Memory Used# [2025-01-29 08:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 05:02:05 [end_date_ymd] => 2025-01-29 08:02:05 [RateCDR] => 1 ) [2025-01-29 08:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 05:02:05' and `end` < '2025-01-29 08:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 08:02:20] Production.INFO: count ==153 [2025-01-29 08:02:20] Production.ERROR: pbx CDR StartTime 2025-01-29 05:02:05 - End Time 2025-01-29 08:02:05 [2025-01-29 08:02:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 08:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354967', 'tblTempUsageDetail_20' ) start [2025-01-29 08:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354967', 'tblTempUsageDetail_20' ) end [2025-01-29 08:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354967', 'tblTempVendorCDR_20' ) start [2025-01-29 08:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354967', 'tblTempVendorCDR_20' ) end [2025-01-29 08:02:20] Production.INFO: ProcessCDR(1,14354967,1,1,2) [2025-01-29 08:02:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14354967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 08:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14354967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 08:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14354967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 08:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14354967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 08:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354967', 'tblTempUsageDetail_20' ) start [2025-01-29 08:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354967', 'tblTempUsageDetail_20' ) end [2025-01-29 08:02:23] Production.ERROR: pbx prc_insertCDR start [2025-01-29 08:02:23] Production.ERROR: pbx prc_insertCDR end [2025-01-29 08:02:23] Production.INFO: ==4866== Releasing lock... [2025-01-29 08:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 08:02:23] Production.INFO: 28.75 MB #Memory Used# [2025-01-29 08:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 05:03:05 [end_date_ymd] => 2025-01-29 08:03:05 [RateCDR] => 1 ) [2025-01-29 08:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 05:03:05' and `end` < '2025-01-29 08:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 08:03:18] Production.INFO: count ==153 [2025-01-29 08:03:18] Production.ERROR: pbx CDR StartTime 2025-01-29 05:03:05 - End Time 2025-01-29 08:03:05 [2025-01-29 08:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 08:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354972', 'tblTempUsageDetail_20' ) start [2025-01-29 08:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354972', 'tblTempUsageDetail_20' ) end [2025-01-29 08:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354972', 'tblTempVendorCDR_20' ) start [2025-01-29 08:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354972', 'tblTempVendorCDR_20' ) end [2025-01-29 08:03:18] Production.INFO: ProcessCDR(1,14354972,1,1,2) [2025-01-29 08:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14354972,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 08:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14354972,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 08:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14354972,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 08:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14354972,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 08:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354972', 'tblTempUsageDetail_20' ) start [2025-01-29 08:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354972', 'tblTempUsageDetail_20' ) end [2025-01-29 08:03:22] Production.ERROR: pbx prc_insertCDR start [2025-01-29 08:03:22] Production.ERROR: pbx prc_insertCDR end [2025-01-29 08:03:22] Production.INFO: ==4945== Releasing lock... [2025-01-29 08:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 08:03:22] Production.INFO: 28.75 MB #Memory Used# [2025-01-29 08:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 05:04:06 [end_date_ymd] => 2025-01-29 08:04:06 [RateCDR] => 1 ) [2025-01-29 08:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 05:04:06' and `end` < '2025-01-29 08:04:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 08:04:21] Production.INFO: count ==156 [2025-01-29 08:04:21] Production.ERROR: pbx CDR StartTime 2025-01-29 05:04:06 - End Time 2025-01-29 08:04:06 [2025-01-29 08:04:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 08:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354977', 'tblTempUsageDetail_20' ) start [2025-01-29 08:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354977', 'tblTempUsageDetail_20' ) end [2025-01-29 08:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354977', 'tblTempVendorCDR_20' ) start [2025-01-29 08:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354977', 'tblTempVendorCDR_20' ) end [2025-01-29 08:04:21] Production.INFO: ProcessCDR(1,14354977,1,1,2) [2025-01-29 08:04:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14354977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 08:04:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14354977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 08:04:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14354977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 08:04:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14354977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 08:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354977', 'tblTempUsageDetail_20' ) start [2025-01-29 08:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354977', 'tblTempUsageDetail_20' ) end [2025-01-29 08:04:24] Production.ERROR: pbx prc_insertCDR start [2025-01-29 08:04:25] Production.ERROR: pbx prc_insertCDR end [2025-01-29 08:04:25] Production.INFO: ==5020== Releasing lock... [2025-01-29 08:04:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 08:04:25] Production.INFO: 29 MB #Memory Used# [2025-01-29 08:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 05:05:05 [end_date_ymd] => 2025-01-29 08:05:05 [RateCDR] => 1 ) [2025-01-29 08:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 05:05:05' and `end` < '2025-01-29 08:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 08:05:19] Production.INFO: count ==162 [2025-01-29 08:05:19] Production.ERROR: pbx CDR StartTime 2025-01-29 05:05:05 - End Time 2025-01-29 08:05:05 [2025-01-29 08:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 08:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354982', 'tblTempUsageDetail_20' ) start [2025-01-29 08:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354982', 'tblTempUsageDetail_20' ) end [2025-01-29 08:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354982', 'tblTempVendorCDR_20' ) start [2025-01-29 08:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354982', 'tblTempVendorCDR_20' ) end [2025-01-29 08:05:19] Production.INFO: ProcessCDR(1,14354982,1,1,2) [2025-01-29 08:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14354982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 08:05:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14354982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 08:05:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14354982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 08:05:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14354982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 08:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354982', 'tblTempUsageDetail_20' ) start [2025-01-29 08:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354982', 'tblTempUsageDetail_20' ) end [2025-01-29 08:05:24] Production.ERROR: pbx prc_insertCDR start [2025-01-29 08:05:24] Production.ERROR: pbx prc_insertCDR end [2025-01-29 08:05:24] Production.INFO: ==5097== Releasing lock... [2025-01-29 08:05:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 08:05:24] Production.INFO: 28.75 MB #Memory Used# [2025-01-29 08:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 05:06:05 [end_date_ymd] => 2025-01-29 08:06:05 [RateCDR] => 1 ) [2025-01-29 08:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 05:06:05' and `end` < '2025-01-29 08:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 08:06:18] Production.INFO: count ==162 [2025-01-29 08:06:18] Production.ERROR: pbx CDR StartTime 2025-01-29 05:06:05 - End Time 2025-01-29 08:06:05 [2025-01-29 08:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 08:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354987', 'tblTempUsageDetail_20' ) start [2025-01-29 08:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354987', 'tblTempUsageDetail_20' ) end [2025-01-29 08:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354987', 'tblTempVendorCDR_20' ) start [2025-01-29 08:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354987', 'tblTempVendorCDR_20' ) end [2025-01-29 08:06:18] Production.INFO: ProcessCDR(1,14354987,1,1,2) [2025-01-29 08:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14354987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 08:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14354987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 08:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14354987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 08:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14354987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 08:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354987', 'tblTempUsageDetail_20' ) start [2025-01-29 08:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354987', 'tblTempUsageDetail_20' ) end [2025-01-29 08:06:21] Production.ERROR: pbx prc_insertCDR start [2025-01-29 08:06:21] Production.ERROR: pbx prc_insertCDR end [2025-01-29 08:06:21] Production.INFO: ==5173== Releasing lock... [2025-01-29 08:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 08:06:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-29 08:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 05:07:06 [end_date_ymd] => 2025-01-29 08:07:06 [RateCDR] => 1 ) [2025-01-29 08:07:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 05:07:06' and `end` < '2025-01-29 08:07:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 08:07:18] Production.INFO: count ==164 [2025-01-29 08:07:18] Production.ERROR: pbx CDR StartTime 2025-01-29 05:07:06 - End Time 2025-01-29 08:07:06 [2025-01-29 08:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 08:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354992', 'tblTempUsageDetail_20' ) start [2025-01-29 08:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354992', 'tblTempUsageDetail_20' ) end [2025-01-29 08:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354992', 'tblTempVendorCDR_20' ) start [2025-01-29 08:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354992', 'tblTempVendorCDR_20' ) end [2025-01-29 08:07:18] Production.INFO: ProcessCDR(1,14354992,1,1,2) [2025-01-29 08:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14354992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 08:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14354992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 08:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14354992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 08:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14354992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 08:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354992', 'tblTempUsageDetail_20' ) start [2025-01-29 08:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354992', 'tblTempUsageDetail_20' ) end [2025-01-29 08:07:22] Production.ERROR: pbx prc_insertCDR start [2025-01-29 08:07:22] Production.ERROR: pbx prc_insertCDR end [2025-01-29 08:07:22] Production.INFO: ==5250== Releasing lock... [2025-01-29 08:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 08:07:22] Production.INFO: 29 MB #Memory Used# [2025-01-29 08:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 05:08:05 [end_date_ymd] => 2025-01-29 08:08:05 [RateCDR] => 1 ) [2025-01-29 08:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 05:08:05' and `end` < '2025-01-29 08:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 08:08:20] Production.INFO: count ==165 [2025-01-29 08:08:20] Production.ERROR: pbx CDR StartTime 2025-01-29 05:08:05 - End Time 2025-01-29 08:08:05 [2025-01-29 08:08:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 08:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354997', 'tblTempUsageDetail_20' ) start [2025-01-29 08:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14354997', 'tblTempUsageDetail_20' ) end [2025-01-29 08:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354997', 'tblTempVendorCDR_20' ) start [2025-01-29 08:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14354997', 'tblTempVendorCDR_20' ) end [2025-01-29 08:08:20] Production.INFO: ProcessCDR(1,14354997,1,1,2) [2025-01-29 08:08:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14354997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 08:08:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14354997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 08:08:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14354997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 08:08:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14354997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 08:08:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354997', 'tblTempUsageDetail_20' ) start [2025-01-29 08:08:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14354997', 'tblTempUsageDetail_20' ) end [2025-01-29 08:08:25] Production.ERROR: pbx prc_insertCDR start [2025-01-29 08:08:25] Production.ERROR: pbx prc_insertCDR end [2025-01-29 08:08:25] Production.INFO: ==5333== Releasing lock... [2025-01-29 08:08:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 08:08:25] Production.INFO: 29 MB #Memory Used# [2025-01-29 08:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 05:09:06 [end_date_ymd] => 2025-01-29 08:09:06 [RateCDR] => 1 ) [2025-01-29 08:09:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 05:09:06' and `end` < '2025-01-29 08:09:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 08:09:19] Production.INFO: count ==180 [2025-01-29 08:09:19] Production.ERROR: pbx CDR StartTime 2025-01-29 05:09:06 - End Time 2025-01-29 08:09:06 [2025-01-29 08:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 08:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355002', 'tblTempUsageDetail_20' ) start [2025-01-29 08:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355002', 'tblTempUsageDetail_20' ) end [2025-01-29 08:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355002', 'tblTempVendorCDR_20' ) start [2025-01-29 08:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355002', 'tblTempVendorCDR_20' ) end [2025-01-29 08:09:19] Production.INFO: ProcessCDR(1,14355002,1,1,2) [2025-01-29 08:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14355002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 08:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14355002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 08:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14355002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 08:09:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14355002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 08:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355002', 'tblTempUsageDetail_20' ) start [2025-01-29 08:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355002', 'tblTempUsageDetail_20' ) end [2025-01-29 08:09:23] Production.ERROR: pbx prc_insertCDR start [2025-01-29 08:09:23] Production.ERROR: pbx prc_insertCDR end [2025-01-29 08:09:23] Production.INFO: ==5404== Releasing lock... [2025-01-29 08:09:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 08:09:23] Production.INFO: 29.25 MB #Memory Used# [2025-01-29 08:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 05:10:06 [end_date_ymd] => 2025-01-29 08:10:06 [RateCDR] => 1 ) [2025-01-29 08:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 05:10:06' and `end` < '2025-01-29 08:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 08:10:18] Production.INFO: count ==188 [2025-01-29 08:10:18] Production.ERROR: pbx CDR StartTime 2025-01-29 05:10:06 - End Time 2025-01-29 08:10:06 [2025-01-29 08:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 08:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355008', 'tblTempUsageDetail_20' ) start [2025-01-29 08:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355008', 'tblTempUsageDetail_20' ) end [2025-01-29 08:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355008', 'tblTempVendorCDR_20' ) start [2025-01-29 08:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355008', 'tblTempVendorCDR_20' ) end [2025-01-29 08:10:18] Production.INFO: ProcessCDR(1,14355008,1,1,2) [2025-01-29 08:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14355008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 08:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14355008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 08:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14355008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 08:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14355008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 08:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355008', 'tblTempUsageDetail_20' ) start [2025-01-29 08:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355008', 'tblTempUsageDetail_20' ) end [2025-01-29 08:10:24] Production.ERROR: pbx prc_insertCDR start [2025-01-29 08:10:24] Production.ERROR: pbx prc_insertCDR end [2025-01-29 08:10:24] Production.INFO: ==5479== Releasing lock... [2025-01-29 08:10:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 08:10:24] Production.INFO: 29.25 MB #Memory Used# [2025-01-29 08:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 05:11:05 [end_date_ymd] => 2025-01-29 08:11:05 [RateCDR] => 1 ) [2025-01-29 08:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 05:11:05' and `end` < '2025-01-29 08:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 08:11:19] Production.INFO: count ==218 [2025-01-29 08:11:19] Production.ERROR: pbx CDR StartTime 2025-01-29 05:11:05 - End Time 2025-01-29 08:11:05 [2025-01-29 08:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 08:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355013', 'tblTempUsageDetail_20' ) start [2025-01-29 08:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355013', 'tblTempUsageDetail_20' ) end [2025-01-29 08:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355013', 'tblTempVendorCDR_20' ) start [2025-01-29 08:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355013', 'tblTempVendorCDR_20' ) end [2025-01-29 08:11:19] Production.INFO: ProcessCDR(1,14355013,1,1,2) [2025-01-29 08:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14355013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 08:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14355013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 08:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14355013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 08:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14355013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 08:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355013', 'tblTempUsageDetail_20' ) start [2025-01-29 08:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355013', 'tblTempUsageDetail_20' ) end [2025-01-29 08:11:23] Production.ERROR: pbx prc_insertCDR start [2025-01-29 08:11:23] Production.ERROR: pbx prc_insertCDR end [2025-01-29 08:11:23] Production.INFO: ==5554== Releasing lock... [2025-01-29 08:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 08:11:23] Production.INFO: 29.25 MB #Memory Used# [2025-01-29 08:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 05:12:05 [end_date_ymd] => 2025-01-29 08:12:05 [RateCDR] => 1 ) [2025-01-29 08:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 05:12:05' and `end` < '2025-01-29 08:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 08:12:18] Production.INFO: count ==239 [2025-01-29 08:12:18] Production.ERROR: pbx CDR StartTime 2025-01-29 05:12:05 - End Time 2025-01-29 08:12:05 [2025-01-29 08:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 08:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355018', 'tblTempUsageDetail_20' ) start [2025-01-29 08:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355018', 'tblTempUsageDetail_20' ) end [2025-01-29 08:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355018', 'tblTempVendorCDR_20' ) start [2025-01-29 08:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355018', 'tblTempVendorCDR_20' ) end [2025-01-29 08:12:18] Production.INFO: ProcessCDR(1,14355018,1,1,2) [2025-01-29 08:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14355018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 08:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14355018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 08:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14355018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 08:12:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14355018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 08:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355018', 'tblTempUsageDetail_20' ) start [2025-01-29 08:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355018', 'tblTempUsageDetail_20' ) end [2025-01-29 08:12:23] Production.ERROR: pbx prc_insertCDR start [2025-01-29 08:12:23] Production.ERROR: pbx prc_insertCDR end [2025-01-29 08:12:23] Production.INFO: ==5667== Releasing lock... [2025-01-29 08:12:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 08:12:23] Production.INFO: 29.75 MB #Memory Used# [2025-01-29 08:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 05:13:06 [end_date_ymd] => 2025-01-29 08:13:06 [RateCDR] => 1 ) [2025-01-29 08:13:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 05:13:06' and `end` < '2025-01-29 08:13:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 08:13:20] Production.INFO: count ==251 [2025-01-29 08:13:20] Production.ERROR: pbx CDR StartTime 2025-01-29 05:13:06 - End Time 2025-01-29 08:13:06 [2025-01-29 08:13:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 08:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355023', 'tblTempUsageDetail_20' ) start [2025-01-29 08:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355023', 'tblTempUsageDetail_20' ) end [2025-01-29 08:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355023', 'tblTempVendorCDR_20' ) start [2025-01-29 08:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355023', 'tblTempVendorCDR_20' ) end [2025-01-29 08:13:20] Production.INFO: ProcessCDR(1,14355023,1,1,2) [2025-01-29 08:13:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14355023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 08:13:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14355023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 08:13:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14355023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 08:13:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14355023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 08:13:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355023', 'tblTempUsageDetail_20' ) start [2025-01-29 08:13:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355023', 'tblTempUsageDetail_20' ) end [2025-01-29 08:13:25] Production.ERROR: pbx prc_insertCDR start [2025-01-29 08:13:25] Production.ERROR: pbx prc_insertCDR end [2025-01-29 08:13:26] Production.INFO: ==5745== Releasing lock... [2025-01-29 08:13:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 08:13:26] Production.INFO: 30.25 MB #Memory Used# [2025-01-29 08:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 05:14:05 [end_date_ymd] => 2025-01-29 08:14:05 [RateCDR] => 1 ) [2025-01-29 08:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 05:14:05' and `end` < '2025-01-29 08:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 08:14:19] Production.INFO: count ==265 [2025-01-29 08:14:19] Production.ERROR: pbx CDR StartTime 2025-01-29 05:14:05 - End Time 2025-01-29 08:14:05 [2025-01-29 08:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 08:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355028', 'tblTempUsageDetail_20' ) start [2025-01-29 08:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355028', 'tblTempUsageDetail_20' ) end [2025-01-29 08:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355028', 'tblTempVendorCDR_20' ) start [2025-01-29 08:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355028', 'tblTempVendorCDR_20' ) end [2025-01-29 08:14:19] Production.INFO: ProcessCDR(1,14355028,1,1,2) [2025-01-29 08:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14355028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 08:14:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14355028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 08:14:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14355028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 08:14:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14355028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 08:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355028', 'tblTempUsageDetail_20' ) start [2025-01-29 08:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355028', 'tblTempUsageDetail_20' ) end [2025-01-29 08:14:24] Production.ERROR: pbx prc_insertCDR start [2025-01-29 08:14:24] Production.ERROR: pbx prc_insertCDR end [2025-01-29 08:14:24] Production.INFO: ==5819== Releasing lock... [2025-01-29 08:14:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 08:14:24] Production.INFO: 30.5 MB #Memory Used# [2025-01-29 08:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 05:15:05 [end_date_ymd] => 2025-01-29 08:15:05 [RateCDR] => 1 ) [2025-01-29 08:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 05:15:05' and `end` < '2025-01-29 08:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 08:15:18] Production.INFO: count ==267 [2025-01-29 08:15:18] Production.ERROR: pbx CDR StartTime 2025-01-29 05:15:05 - End Time 2025-01-29 08:15:05 [2025-01-29 08:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 08:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355033', 'tblTempUsageDetail_20' ) start [2025-01-29 08:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355033', 'tblTempUsageDetail_20' ) end [2025-01-29 08:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355033', 'tblTempVendorCDR_20' ) start [2025-01-29 08:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355033', 'tblTempVendorCDR_20' ) end [2025-01-29 08:15:18] Production.INFO: ProcessCDR(1,14355033,1,1,2) [2025-01-29 08:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14355033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 08:15:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14355033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 08:15:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14355033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 08:15:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14355033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 08:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355033', 'tblTempUsageDetail_20' ) start [2025-01-29 08:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355033', 'tblTempUsageDetail_20' ) end [2025-01-29 08:15:23] Production.ERROR: pbx prc_insertCDR start [2025-01-29 08:15:23] Production.ERROR: pbx prc_insertCDR end [2025-01-29 08:15:23] Production.INFO: ==5893== Releasing lock... [2025-01-29 08:15:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 08:15:23] Production.INFO: 30.25 MB #Memory Used# [2025-01-29 08:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 05:16:06 [end_date_ymd] => 2025-01-29 08:16:06 [RateCDR] => 1 ) [2025-01-29 08:16:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 05:16:06' and `end` < '2025-01-29 08:16:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 08:16:19] Production.INFO: count ==284 [2025-01-29 08:16:19] Production.ERROR: pbx CDR StartTime 2025-01-29 05:16:06 - End Time 2025-01-29 08:16:06 [2025-01-29 08:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 08:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355038', 'tblTempUsageDetail_20' ) start [2025-01-29 08:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355038', 'tblTempUsageDetail_20' ) end [2025-01-29 08:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355038', 'tblTempVendorCDR_20' ) start [2025-01-29 08:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355038', 'tblTempVendorCDR_20' ) end [2025-01-29 08:16:19] Production.INFO: ProcessCDR(1,14355038,1,1,2) [2025-01-29 08:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14355038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 08:16:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14355038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 08:16:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14355038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 08:16:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14355038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 08:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355038', 'tblTempUsageDetail_20' ) start [2025-01-29 08:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355038', 'tblTempUsageDetail_20' ) end [2025-01-29 08:16:25] Production.ERROR: pbx prc_insertCDR start [2025-01-29 08:16:25] Production.ERROR: pbx prc_insertCDR end [2025-01-29 08:16:25] Production.INFO: ==5968== Releasing lock... [2025-01-29 08:16:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 08:16:25] Production.INFO: 30.5 MB #Memory Used# [2025-01-29 08:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 05:17:05 [end_date_ymd] => 2025-01-29 08:17:05 [RateCDR] => 1 ) [2025-01-29 08:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 05:17:05' and `end` < '2025-01-29 08:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 08:17:18] Production.INFO: count ==291 [2025-01-29 08:17:18] Production.ERROR: pbx CDR StartTime 2025-01-29 05:17:05 - End Time 2025-01-29 08:17:05 [2025-01-29 08:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 08:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355043', 'tblTempUsageDetail_20' ) start [2025-01-29 08:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355043', 'tblTempUsageDetail_20' ) end [2025-01-29 08:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355043', 'tblTempVendorCDR_20' ) start [2025-01-29 08:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355043', 'tblTempVendorCDR_20' ) end [2025-01-29 08:17:18] Production.INFO: ProcessCDR(1,14355043,1,1,2) [2025-01-29 08:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14355043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 08:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14355043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 08:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14355043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 08:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14355043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 08:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355043', 'tblTempUsageDetail_20' ) start [2025-01-29 08:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355043', 'tblTempUsageDetail_20' ) end [2025-01-29 08:17:22] Production.ERROR: pbx prc_insertCDR start [2025-01-29 08:17:22] Production.ERROR: pbx prc_insertCDR end [2025-01-29 08:17:22] Production.INFO: ==6040== Releasing lock... [2025-01-29 08:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 08:17:22] Production.INFO: 30.75 MB #Memory Used# [2025-01-29 08:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 05:18:06 [end_date_ymd] => 2025-01-29 08:18:06 [RateCDR] => 1 ) [2025-01-29 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-01-29 05:18:06' and `end` < '2025-01-29 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-01-29 08:18:18] Production.INFO: count ==291 [2025-01-29 08:18:18] Production.ERROR: pbx CDR StartTime 2025-01-29 05:18:06 - End Time 2025-01-29 08:18:06 [2025-01-29 08:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 08:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355048', 'tblTempUsageDetail_20' ) start [2025-01-29 08:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355048', 'tblTempUsageDetail_20' ) end [2025-01-29 08:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355048', 'tblTempVendorCDR_20' ) start [2025-01-29 08:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355048', 'tblTempVendorCDR_20' ) end [2025-01-29 08:18:18] Production.INFO: ProcessCDR(1,14355048,1,1,2) [2025-01-29 08:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14355048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 08:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14355048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 08:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14355048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 08:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14355048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 08:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355048', 'tblTempUsageDetail_20' ) start [2025-01-29 08:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355048', 'tblTempUsageDetail_20' ) end [2025-01-29 08:18:22] Production.ERROR: pbx prc_insertCDR start [2025-01-29 08:18:22] Production.ERROR: pbx prc_insertCDR end [2025-01-29 08:18:22] Production.INFO: ==6129== Releasing lock... [2025-01-29 08:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 08:18:22] Production.INFO: 30.75 MB #Memory Used# [2025-01-29 08:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 05:19:05 [end_date_ymd] => 2025-01-29 08:19:05 [RateCDR] => 1 ) [2025-01-29 08:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 05:19:05' and `end` < '2025-01-29 08:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 08:19:18] Production.INFO: count ==291 [2025-01-29 08:19:18] Production.ERROR: pbx CDR StartTime 2025-01-29 05:19:05 - End Time 2025-01-29 08:19:05 [2025-01-29 08:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 08:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355053', 'tblTempUsageDetail_20' ) start [2025-01-29 08:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355053', 'tblTempUsageDetail_20' ) end [2025-01-29 08:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355053', 'tblTempVendorCDR_20' ) start [2025-01-29 08:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355053', 'tblTempVendorCDR_20' ) end [2025-01-29 08:19:18] Production.INFO: ProcessCDR(1,14355053,1,1,2) [2025-01-29 08:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14355053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 08:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14355053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 08:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14355053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 08:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14355053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 08:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355053', 'tblTempUsageDetail_20' ) start [2025-01-29 08:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355053', 'tblTempUsageDetail_20' ) end [2025-01-29 08:19:22] Production.ERROR: pbx prc_insertCDR start [2025-01-29 08:19:22] Production.ERROR: pbx prc_insertCDR end [2025-01-29 08:19:22] Production.INFO: ==6207== Releasing lock... [2025-01-29 08:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 08:19:22] Production.INFO: 30.75 MB #Memory Used# [2025-01-29 08:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 05:20:06 [end_date_ymd] => 2025-01-29 08:20:06 [RateCDR] => 1 ) [2025-01-29 08:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 05:20:06' and `end` < '2025-01-29 08:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 08:20:20] Production.INFO: count ==296 [2025-01-29 08:20:20] Production.ERROR: pbx CDR StartTime 2025-01-29 05:20:06 - End Time 2025-01-29 08:20:06 [2025-01-29 08:20:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 08:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355058', 'tblTempUsageDetail_20' ) start [2025-01-29 08:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355058', 'tblTempUsageDetail_20' ) end [2025-01-29 08:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355058', 'tblTempVendorCDR_20' ) start [2025-01-29 08:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355058', 'tblTempVendorCDR_20' ) end [2025-01-29 08:20:20] Production.INFO: ProcessCDR(1,14355058,1,1,2) [2025-01-29 08:20:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14355058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 08:20:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14355058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 08:20:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14355058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 08:20:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14355058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 08:20:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355058', 'tblTempUsageDetail_20' ) start [2025-01-29 08:20:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355058', 'tblTempUsageDetail_20' ) end [2025-01-29 08:20:25] Production.ERROR: pbx prc_insertCDR start [2025-01-29 08:20:25] Production.ERROR: pbx prc_insertCDR end [2025-01-29 08:20:25] Production.INFO: ==6283== Releasing lock... [2025-01-29 08:20:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 08:20:25] Production.INFO: 30.75 MB #Memory Used# [2025-01-29 08:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 05:21:05 [end_date_ymd] => 2025-01-29 08:21:05 [RateCDR] => 1 ) [2025-01-29 08:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 05:21:05' and `end` < '2025-01-29 08:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 08:21:19] Production.INFO: count ==311 [2025-01-29 08:21:19] Production.ERROR: pbx CDR StartTime 2025-01-29 05:21:05 - End Time 2025-01-29 08:21:05 [2025-01-29 08:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 08:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355064', 'tblTempUsageDetail_20' ) start [2025-01-29 08:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355064', 'tblTempUsageDetail_20' ) end [2025-01-29 08:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355064', 'tblTempVendorCDR_20' ) start [2025-01-29 08:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355064', 'tblTempVendorCDR_20' ) end [2025-01-29 08:21:19] Production.INFO: ProcessCDR(1,14355064,1,1,2) [2025-01-29 08:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14355064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 08:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14355064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 08:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14355064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 08:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14355064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 08:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355064', 'tblTempUsageDetail_20' ) start [2025-01-29 08:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355064', 'tblTempUsageDetail_20' ) end [2025-01-29 08:21:22] Production.ERROR: pbx prc_insertCDR start [2025-01-29 08:21:22] Production.ERROR: pbx prc_insertCDR end [2025-01-29 08:21:22] Production.INFO: ==6358== Releasing lock... [2025-01-29 08:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 08:21:22] Production.INFO: 30.5 MB #Memory Used# [2025-01-29 08:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 05:22:06 [end_date_ymd] => 2025-01-29 08:22:06 [RateCDR] => 1 ) [2025-01-29 08:22:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 05:22:06' and `end` < '2025-01-29 08:22:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 08:22:20] Production.INFO: count ==311 [2025-01-29 08:22:20] Production.ERROR: pbx CDR StartTime 2025-01-29 05:22:06 - End Time 2025-01-29 08:22:06 [2025-01-29 08:22:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 08:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355069', 'tblTempUsageDetail_20' ) start [2025-01-29 08:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355069', 'tblTempUsageDetail_20' ) end [2025-01-29 08:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355069', 'tblTempVendorCDR_20' ) start [2025-01-29 08:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355069', 'tblTempVendorCDR_20' ) end [2025-01-29 08:22:20] Production.INFO: ProcessCDR(1,14355069,1,1,2) [2025-01-29 08:22:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14355069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 08:22:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14355069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 08:22:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14355069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 08:22:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14355069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 08:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355069', 'tblTempUsageDetail_20' ) start [2025-01-29 08:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355069', 'tblTempUsageDetail_20' ) end [2025-01-29 08:22:23] Production.ERROR: pbx prc_insertCDR start [2025-01-29 08:22:23] Production.ERROR: pbx prc_insertCDR end [2025-01-29 08:22:23] Production.INFO: ==6434== Releasing lock... [2025-01-29 08:22:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 08:22:23] Production.INFO: 30.5 MB #Memory Used# [2025-01-29 08:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 05:23:05 [end_date_ymd] => 2025-01-29 08:23:05 [RateCDR] => 1 ) [2025-01-29 08:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 05:23:05' and `end` < '2025-01-29 08:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 08:23:19] Production.INFO: count ==314 [2025-01-29 08:23:19] Production.ERROR: pbx CDR StartTime 2025-01-29 05:23:05 - End Time 2025-01-29 08:23:05 [2025-01-29 08:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 08:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355074', 'tblTempUsageDetail_20' ) start [2025-01-29 08:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355074', 'tblTempUsageDetail_20' ) end [2025-01-29 08:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355074', 'tblTempVendorCDR_20' ) start [2025-01-29 08:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355074', 'tblTempVendorCDR_20' ) end [2025-01-29 08:23:19] Production.INFO: ProcessCDR(1,14355074,1,1,2) [2025-01-29 08:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14355074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 08:23:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14355074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 08:23:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14355074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 08:23:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14355074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 08:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355074', 'tblTempUsageDetail_20' ) start [2025-01-29 08:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355074', 'tblTempUsageDetail_20' ) end [2025-01-29 08:23:24] Production.ERROR: pbx prc_insertCDR start [2025-01-29 08:23:24] Production.ERROR: pbx prc_insertCDR end [2025-01-29 08:23:24] Production.INFO: ==6516== Releasing lock... [2025-01-29 08:23:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 08:23:24] Production.INFO: 30.75 MB #Memory Used# [2025-01-29 08:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 05:24:06 [end_date_ymd] => 2025-01-29 08:24:06 [RateCDR] => 1 ) [2025-01-29 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-01-29 05:24:06' and `end` < '2025-01-29 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-01-29 08:24:18] Production.INFO: count ==322 [2025-01-29 08:24:18] Production.ERROR: pbx CDR StartTime 2025-01-29 05:24:06 - End Time 2025-01-29 08:24:06 [2025-01-29 08:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 08:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355079', 'tblTempUsageDetail_20' ) start [2025-01-29 08:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355079', 'tblTempUsageDetail_20' ) end [2025-01-29 08:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355079', 'tblTempVendorCDR_20' ) start [2025-01-29 08:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355079', 'tblTempVendorCDR_20' ) end [2025-01-29 08:24:18] Production.INFO: ProcessCDR(1,14355079,1,1,2) [2025-01-29 08:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14355079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 08:24:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14355079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 08:24:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14355079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 08:24:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14355079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 08:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355079', 'tblTempUsageDetail_20' ) start [2025-01-29 08:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355079', 'tblTempUsageDetail_20' ) end [2025-01-29 08:24:23] Production.ERROR: pbx prc_insertCDR start [2025-01-29 08:24:23] Production.ERROR: pbx prc_insertCDR end [2025-01-29 08:24:23] Production.INFO: ==6596== Releasing lock... [2025-01-29 08:24:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 08:24:23] Production.INFO: 30.5 MB #Memory Used# [2025-01-29 08:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 05:25:05 [end_date_ymd] => 2025-01-29 08:25:05 [RateCDR] => 1 ) [2025-01-29 08:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 05:25:05' and `end` < '2025-01-29 08:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 08:25:17] Production.INFO: count ==334 [2025-01-29 08:25:17] Production.ERROR: pbx CDR StartTime 2025-01-29 05:25:05 - End Time 2025-01-29 08:25:05 [2025-01-29 08:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355084', 'tblTempUsageDetail_20' ) start [2025-01-29 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355084', 'tblTempUsageDetail_20' ) end [2025-01-29 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355084', 'tblTempVendorCDR_20' ) start [2025-01-29 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355084', 'tblTempVendorCDR_20' ) end [2025-01-29 08:25:17] Production.INFO: ProcessCDR(1,14355084,1,1,2) [2025-01-29 08:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14355084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 08:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14355084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 08:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14355084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 08:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14355084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 08:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355084', 'tblTempUsageDetail_20' ) start [2025-01-29 08:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355084', 'tblTempUsageDetail_20' ) end [2025-01-29 08:25:23] Production.ERROR: pbx prc_insertCDR start [2025-01-29 08:25:23] Production.ERROR: pbx prc_insertCDR end [2025-01-29 08:25:23] Production.INFO: ==6668== Releasing lock... [2025-01-29 08:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 08:25:23] Production.INFO: 31 MB #Memory Used# [2025-01-29 08:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 05:26:06 [end_date_ymd] => 2025-01-29 08:26:06 [RateCDR] => 1 ) [2025-01-29 08:26:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 05:26:06' and `end` < '2025-01-29 08:26:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 08:26:20] Production.INFO: count ==343 [2025-01-29 08:26:21] Production.ERROR: pbx CDR StartTime 2025-01-29 05:26:06 - End Time 2025-01-29 08:26:06 [2025-01-29 08:26:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 08:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355089', 'tblTempUsageDetail_20' ) start [2025-01-29 08:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355089', 'tblTempUsageDetail_20' ) end [2025-01-29 08:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355089', 'tblTempVendorCDR_20' ) start [2025-01-29 08:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355089', 'tblTempVendorCDR_20' ) end [2025-01-29 08:26:21] Production.INFO: ProcessCDR(1,14355089,1,1,2) [2025-01-29 08:26:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14355089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 08:26:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14355089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 08:26:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14355089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 08:26:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14355089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 08:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355089', 'tblTempUsageDetail_20' ) start [2025-01-29 08:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355089', 'tblTempUsageDetail_20' ) end [2025-01-29 08:26:24] Production.ERROR: pbx prc_insertCDR start [2025-01-29 08:26:24] Production.ERROR: pbx prc_insertCDR end [2025-01-29 08:26:24] Production.INFO: ==6752== Releasing lock... [2025-01-29 08:26:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 08:26:24] Production.INFO: 31.5 MB #Memory Used# [2025-01-29 08:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 05:27:05 [end_date_ymd] => 2025-01-29 08:27:05 [RateCDR] => 1 ) [2025-01-29 08:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 05:27:05' and `end` < '2025-01-29 08:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 08:27:18] Production.INFO: count ==345 [2025-01-29 08:27:18] Production.ERROR: pbx CDR StartTime 2025-01-29 05:27:05 - End Time 2025-01-29 08:27:05 [2025-01-29 08:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 08:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355094', 'tblTempUsageDetail_20' ) start [2025-01-29 08:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355094', 'tblTempUsageDetail_20' ) end [2025-01-29 08:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355094', 'tblTempVendorCDR_20' ) start [2025-01-29 08:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355094', 'tblTempVendorCDR_20' ) end [2025-01-29 08:27:18] Production.INFO: ProcessCDR(1,14355094,1,1,2) [2025-01-29 08:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14355094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 08:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14355094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 08:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14355094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 08:27:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14355094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 08:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355094', 'tblTempUsageDetail_20' ) start [2025-01-29 08:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355094', 'tblTempUsageDetail_20' ) end [2025-01-29 08:27:23] Production.ERROR: pbx prc_insertCDR start [2025-01-29 08:27:23] Production.ERROR: pbx prc_insertCDR end [2025-01-29 08:27:23] Production.INFO: ==6854== Releasing lock... [2025-01-29 08:27:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 08:27:23] Production.INFO: 31.25 MB #Memory Used# [2025-01-29 08:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 05:28:06 [end_date_ymd] => 2025-01-29 08:28:06 [RateCDR] => 1 ) [2025-01-29 08:28:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 05:28:06' and `end` < '2025-01-29 08:28:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 08:28:19] Production.INFO: count ==346 [2025-01-29 08:28:19] Production.ERROR: pbx CDR StartTime 2025-01-29 05:28:06 - End Time 2025-01-29 08:28:06 [2025-01-29 08:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 08:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355099', 'tblTempUsageDetail_20' ) start [2025-01-29 08:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355099', 'tblTempUsageDetail_20' ) end [2025-01-29 08:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355099', 'tblTempVendorCDR_20' ) start [2025-01-29 08:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355099', 'tblTempVendorCDR_20' ) end [2025-01-29 08:28:19] Production.INFO: ProcessCDR(1,14355099,1,1,2) [2025-01-29 08:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14355099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 08:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14355099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 08:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14355099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 08:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14355099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 08:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355099', 'tblTempUsageDetail_20' ) start [2025-01-29 08:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355099', 'tblTempUsageDetail_20' ) end [2025-01-29 08:28:22] Production.ERROR: pbx prc_insertCDR start [2025-01-29 08:28:22] Production.ERROR: pbx prc_insertCDR end [2025-01-29 08:28:22] Production.INFO: ==7010== Releasing lock... [2025-01-29 08:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 08:28:22] Production.INFO: 31.5 MB #Memory Used# [2025-01-29 08:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 05:29:05 [end_date_ymd] => 2025-01-29 08:29:05 [RateCDR] => 1 ) [2025-01-29 08:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 05:29:05' and `end` < '2025-01-29 08:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 08:29:18] Production.INFO: count ==383 [2025-01-29 08:29:18] Production.ERROR: pbx CDR StartTime 2025-01-29 05:29:05 - End Time 2025-01-29 08:29:05 [2025-01-29 08:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 08:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355104', 'tblTempUsageDetail_20' ) start [2025-01-29 08:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355104', 'tblTempUsageDetail_20' ) end [2025-01-29 08:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355104', 'tblTempVendorCDR_20' ) start [2025-01-29 08:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355104', 'tblTempVendorCDR_20' ) end [2025-01-29 08:29:18] Production.INFO: ProcessCDR(1,14355104,1,1,2) [2025-01-29 08:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14355104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 08:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14355104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 08:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14355104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 08:29:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14355104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 08:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355104', 'tblTempUsageDetail_20' ) start [2025-01-29 08:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355104', 'tblTempUsageDetail_20' ) end [2025-01-29 08:29:23] Production.ERROR: pbx prc_insertCDR start [2025-01-29 08:29:23] Production.ERROR: pbx prc_insertCDR end [2025-01-29 08:29:23] Production.INFO: ==7117== Releasing lock... [2025-01-29 08:29:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 08:29:23] Production.INFO: 31.75 MB #Memory Used# [2025-01-29 08:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 05:30:06 [end_date_ymd] => 2025-01-29 08:30:06 [RateCDR] => 1 ) [2025-01-29 08:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 05:30:06' and `end` < '2025-01-29 08:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 08:30:18] Production.INFO: count ==387 [2025-01-29 08:30:19] Production.ERROR: pbx CDR StartTime 2025-01-29 05:30:06 - End Time 2025-01-29 08:30:06 [2025-01-29 08:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 08:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355109', 'tblTempUsageDetail_20' ) start [2025-01-29 08:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355109', 'tblTempUsageDetail_20' ) end [2025-01-29 08:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355109', 'tblTempVendorCDR_20' ) start [2025-01-29 08:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355109', 'tblTempVendorCDR_20' ) end [2025-01-29 08:30:19] Production.INFO: ProcessCDR(1,14355109,1,1,2) [2025-01-29 08:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14355109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 08:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14355109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 08:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14355109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 08:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14355109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 08:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355109', 'tblTempUsageDetail_20' ) start [2025-01-29 08:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355109', 'tblTempUsageDetail_20' ) end [2025-01-29 08:30:22] Production.ERROR: pbx prc_insertCDR start [2025-01-29 08:30:22] Production.ERROR: pbx prc_insertCDR end [2025-01-29 08:30:22] Production.INFO: ==7228== Releasing lock... [2025-01-29 08:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 08:30:22] Production.INFO: 31.75 MB #Memory Used# [2025-01-29 08:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 05:31:05 [end_date_ymd] => 2025-01-29 08:31:05 [RateCDR] => 1 ) [2025-01-29 08:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 05:31:05' and `end` < '2025-01-29 08:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 08:31:18] Production.INFO: count ==408 [2025-01-29 08:31:18] Production.ERROR: pbx CDR StartTime 2025-01-29 05:31:05 - End Time 2025-01-29 08:31:05 [2025-01-29 08:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 08:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355115', 'tblTempUsageDetail_20' ) start [2025-01-29 08:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355115', 'tblTempUsageDetail_20' ) end [2025-01-29 08:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355115', 'tblTempVendorCDR_20' ) start [2025-01-29 08:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355115', 'tblTempVendorCDR_20' ) end [2025-01-29 08:31:18] Production.INFO: ProcessCDR(1,14355115,1,1,2) [2025-01-29 08:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14355115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 08:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14355115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 08:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14355115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 08:31:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14355115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 08:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355115', 'tblTempUsageDetail_20' ) start [2025-01-29 08:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355115', 'tblTempUsageDetail_20' ) end [2025-01-29 08:31:23] Production.ERROR: pbx prc_insertCDR start [2025-01-29 08:31:23] Production.ERROR: pbx prc_insertCDR end [2025-01-29 08:31:23] Production.INFO: ==7333== Releasing lock... [2025-01-29 08:31:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 08:31:23] Production.INFO: 31.75 MB #Memory Used# [2025-01-29 08:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 05:32:06 [end_date_ymd] => 2025-01-29 08:32:06 [RateCDR] => 1 ) [2025-01-29 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-01-29 05:32:06' and `end` < '2025-01-29 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-01-29 08:32:20] Production.INFO: count ==423 [2025-01-29 08:32:20] Production.ERROR: pbx CDR StartTime 2025-01-29 05:32:06 - End Time 2025-01-29 08:32:06 [2025-01-29 08:32:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 08:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355120', 'tblTempUsageDetail_20' ) start [2025-01-29 08:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355120', 'tblTempUsageDetail_20' ) end [2025-01-29 08:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355120', 'tblTempVendorCDR_20' ) start [2025-01-29 08:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355120', 'tblTempVendorCDR_20' ) end [2025-01-29 08:32:20] Production.INFO: ProcessCDR(1,14355120,1,1,2) [2025-01-29 08:32:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14355120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 08:32:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14355120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 08:32:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14355120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 08:32:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14355120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 08:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355120', 'tblTempUsageDetail_20' ) start [2025-01-29 08:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355120', 'tblTempUsageDetail_20' ) end [2025-01-29 08:32:24] Production.ERROR: pbx prc_insertCDR start [2025-01-29 08:32:24] Production.ERROR: pbx prc_insertCDR end [2025-01-29 08:32:24] Production.INFO: ==7434== Releasing lock... [2025-01-29 08:32:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 08:32:24] Production.INFO: 31.75 MB #Memory Used# [2025-01-29 08:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 05:33:05 [end_date_ymd] => 2025-01-29 08:33:05 [RateCDR] => 1 ) [2025-01-29 08:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 05:33:05' and `end` < '2025-01-29 08:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 08:33:18] Production.INFO: count ==423 [2025-01-29 08:33:18] Production.ERROR: pbx CDR StartTime 2025-01-29 05:33:05 - End Time 2025-01-29 08:33:05 [2025-01-29 08:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 08:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355125', 'tblTempUsageDetail_20' ) start [2025-01-29 08:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355125', 'tblTempUsageDetail_20' ) end [2025-01-29 08:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355125', 'tblTempVendorCDR_20' ) start [2025-01-29 08:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355125', 'tblTempVendorCDR_20' ) end [2025-01-29 08:33:18] Production.INFO: ProcessCDR(1,14355125,1,1,2) [2025-01-29 08:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14355125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 08:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14355125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 08:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14355125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 08:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14355125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 08:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355125', 'tblTempUsageDetail_20' ) start [2025-01-29 08:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355125', 'tblTempUsageDetail_20' ) end [2025-01-29 08:33:21] Production.ERROR: pbx prc_insertCDR start [2025-01-29 08:33:21] Production.ERROR: pbx prc_insertCDR end [2025-01-29 08:33:21] Production.INFO: ==7535== Releasing lock... [2025-01-29 08:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 08:33:21] Production.INFO: 31.75 MB #Memory Used# [2025-01-29 08:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 05:34:05 [end_date_ymd] => 2025-01-29 08:34:05 [RateCDR] => 1 ) [2025-01-29 08:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 05:34:05' and `end` < '2025-01-29 08:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 08:34:19] Production.INFO: count ==424 [2025-01-29 08:34:19] Production.ERROR: pbx CDR StartTime 2025-01-29 05:34:05 - End Time 2025-01-29 08:34:05 [2025-01-29 08:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 08:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355130', 'tblTempUsageDetail_20' ) start [2025-01-29 08:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355130', 'tblTempUsageDetail_20' ) end [2025-01-29 08:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355130', 'tblTempVendorCDR_20' ) start [2025-01-29 08:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355130', 'tblTempVendorCDR_20' ) end [2025-01-29 08:34:19] Production.INFO: ProcessCDR(1,14355130,1,1,2) [2025-01-29 08:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14355130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 08:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14355130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 08:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14355130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 08:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14355130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 08:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355130', 'tblTempUsageDetail_20' ) start [2025-01-29 08:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355130', 'tblTempUsageDetail_20' ) end [2025-01-29 08:34:22] Production.ERROR: pbx prc_insertCDR start [2025-01-29 08:34:22] Production.ERROR: pbx prc_insertCDR end [2025-01-29 08:34:22] Production.INFO: ==7641== Releasing lock... [2025-01-29 08:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 08:34:22] Production.INFO: 32 MB #Memory Used# [2025-01-29 08:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 05:35:05 [end_date_ymd] => 2025-01-29 08:35:05 [RateCDR] => 1 ) [2025-01-29 08:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 05:35:05' and `end` < '2025-01-29 08:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 08:35:17] Production.INFO: count ==424 [2025-01-29 08:35:17] Production.ERROR: pbx CDR StartTime 2025-01-29 05:35:05 - End Time 2025-01-29 08:35:05 [2025-01-29 08:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 08:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355135', 'tblTempUsageDetail_20' ) start [2025-01-29 08:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355135', 'tblTempUsageDetail_20' ) end [2025-01-29 08:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355135', 'tblTempVendorCDR_20' ) start [2025-01-29 08:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355135', 'tblTempVendorCDR_20' ) end [2025-01-29 08:35:17] Production.INFO: ProcessCDR(1,14355135,1,1,2) [2025-01-29 08:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14355135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 08:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14355135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 08:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14355135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 08:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14355135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 08:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355135', 'tblTempUsageDetail_20' ) start [2025-01-29 08:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355135', 'tblTempUsageDetail_20' ) end [2025-01-29 08:35:21] Production.ERROR: pbx prc_insertCDR start [2025-01-29 08:35:21] Production.ERROR: pbx prc_insertCDR end [2025-01-29 08:35:21] Production.INFO: ==7741== Releasing lock... [2025-01-29 08:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 08:35:21] Production.INFO: 32 MB #Memory Used# [2025-01-29 08:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 05:36:05 [end_date_ymd] => 2025-01-29 08:36:05 [RateCDR] => 1 ) [2025-01-29 08:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 05:36:05' and `end` < '2025-01-29 08:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 08:36:18] Production.INFO: count ==428 [2025-01-29 08:36:18] Production.ERROR: pbx CDR StartTime 2025-01-29 05:36:05 - End Time 2025-01-29 08:36:05 [2025-01-29 08:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 08:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355140', 'tblTempUsageDetail_20' ) start [2025-01-29 08:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355140', 'tblTempUsageDetail_20' ) end [2025-01-29 08:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355140', 'tblTempVendorCDR_20' ) start [2025-01-29 08:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355140', 'tblTempVendorCDR_20' ) end [2025-01-29 08:36:18] Production.INFO: ProcessCDR(1,14355140,1,1,2) [2025-01-29 08:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14355140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 08:36:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14355140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 08:36:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14355140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 08:36:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14355140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 08:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355140', 'tblTempUsageDetail_20' ) start [2025-01-29 08:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355140', 'tblTempUsageDetail_20' ) end [2025-01-29 08:36:24] Production.ERROR: pbx prc_insertCDR start [2025-01-29 08:36:24] Production.ERROR: pbx prc_insertCDR end [2025-01-29 08:36:24] Production.INFO: ==7847== Releasing lock... [2025-01-29 08:36:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 08:36:24] Production.INFO: 32 MB #Memory Used# [2025-01-29 08:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 05:37:05 [end_date_ymd] => 2025-01-29 08:37:05 [RateCDR] => 1 ) [2025-01-29 08:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 05:37:05' and `end` < '2025-01-29 08:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 08:37:18] Production.INFO: count ==436 [2025-01-29 08:37:18] Production.ERROR: pbx CDR StartTime 2025-01-29 05:37:05 - End Time 2025-01-29 08:37:05 [2025-01-29 08:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 08:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355145', 'tblTempUsageDetail_20' ) start [2025-01-29 08:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355145', 'tblTempUsageDetail_20' ) end [2025-01-29 08:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355145', 'tblTempVendorCDR_20' ) start [2025-01-29 08:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355145', 'tblTempVendorCDR_20' ) end [2025-01-29 08:37:18] Production.INFO: ProcessCDR(1,14355145,1,1,2) [2025-01-29 08:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14355145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 08:37:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14355145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 08:37:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14355145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 08:37:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14355145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 08:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355145', 'tblTempUsageDetail_20' ) start [2025-01-29 08:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355145', 'tblTempUsageDetail_20' ) end [2025-01-29 08:37:23] Production.ERROR: pbx prc_insertCDR start [2025-01-29 08:37:23] Production.ERROR: pbx prc_insertCDR end [2025-01-29 08:37:23] Production.INFO: ==7946== Releasing lock... [2025-01-29 08:37:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 08:37:23] Production.INFO: 32 MB #Memory Used# [2025-01-29 08:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 05:38:05 [end_date_ymd] => 2025-01-29 08:38:05 [RateCDR] => 1 ) [2025-01-29 08:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 05:38:05' and `end` < '2025-01-29 08:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 08:38:19] Production.INFO: count ==442 [2025-01-29 08:38:19] Production.ERROR: pbx CDR StartTime 2025-01-29 05:38:05 - End Time 2025-01-29 08:38:05 [2025-01-29 08:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 08:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355149', 'tblTempUsageDetail_20' ) start [2025-01-29 08:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355149', 'tblTempUsageDetail_20' ) end [2025-01-29 08:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355149', 'tblTempVendorCDR_20' ) start [2025-01-29 08:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355149', 'tblTempVendorCDR_20' ) end [2025-01-29 08:38:19] Production.INFO: ProcessCDR(1,14355149,1,1,2) [2025-01-29 08:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14355149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 08:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14355149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 08:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14355149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 08:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14355149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 08:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355149', 'tblTempUsageDetail_20' ) start [2025-01-29 08:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355149', 'tblTempUsageDetail_20' ) end [2025-01-29 08:38:23] Production.ERROR: pbx prc_insertCDR start [2025-01-29 08:38:23] Production.ERROR: pbx prc_insertCDR end [2025-01-29 08:38:23] Production.INFO: ==8057== Releasing lock... [2025-01-29 08:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 08:38:23] Production.INFO: 31.75 MB #Memory Used# [2025-01-29 08:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 05:39:06 [end_date_ymd] => 2025-01-29 08:39:06 [RateCDR] => 1 ) [2025-01-29 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-01-29 05:39:06' and `end` < '2025-01-29 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-01-29 08:39:19] Production.INFO: count ==445 [2025-01-29 08:39:19] Production.ERROR: pbx CDR StartTime 2025-01-29 05:39:06 - End Time 2025-01-29 08:39:06 [2025-01-29 08:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 08:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355155', 'tblTempUsageDetail_20' ) start [2025-01-29 08:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355155', 'tblTempUsageDetail_20' ) end [2025-01-29 08:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355155', 'tblTempVendorCDR_20' ) start [2025-01-29 08:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355155', 'tblTempVendorCDR_20' ) end [2025-01-29 08:39:19] Production.INFO: ProcessCDR(1,14355155,1,1,2) [2025-01-29 08:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14355155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 08:39:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14355155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 08:39:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14355155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 08:39:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14355155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 08:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355155', 'tblTempUsageDetail_20' ) start [2025-01-29 08:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355155', 'tblTempUsageDetail_20' ) end [2025-01-29 08:39:24] Production.ERROR: pbx prc_insertCDR start [2025-01-29 08:39:24] Production.ERROR: pbx prc_insertCDR end [2025-01-29 08:39:24] Production.INFO: ==8166== Releasing lock... [2025-01-29 08:39:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 08:39:24] Production.INFO: 32.25 MB #Memory Used# [2025-01-29 08:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 05:40:06 [end_date_ymd] => 2025-01-29 08:40:06 [RateCDR] => 1 ) [2025-01-29 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-01-29 05:40:06' and `end` < '2025-01-29 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-01-29 08:40:19] Production.INFO: count ==457 [2025-01-29 08:40:19] Production.ERROR: pbx CDR StartTime 2025-01-29 05:40:06 - End Time 2025-01-29 08:40:06 [2025-01-29 08:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 08:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355161', 'tblTempUsageDetail_20' ) start [2025-01-29 08:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355161', 'tblTempUsageDetail_20' ) end [2025-01-29 08:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355161', 'tblTempVendorCDR_20' ) start [2025-01-29 08:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355161', 'tblTempVendorCDR_20' ) end [2025-01-29 08:40:19] Production.INFO: ProcessCDR(1,14355161,1,1,2) [2025-01-29 08:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14355161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 08:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14355161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 08:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14355161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 08:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14355161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 08:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355161', 'tblTempUsageDetail_20' ) start [2025-01-29 08:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355161', 'tblTempUsageDetail_20' ) end [2025-01-29 08:40:22] Production.ERROR: pbx prc_insertCDR start [2025-01-29 08:40:22] Production.ERROR: pbx prc_insertCDR end [2025-01-29 08:40:22] Production.INFO: ==8265== Releasing lock... [2025-01-29 08:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 08:40:22] Production.INFO: 32.25 MB #Memory Used# [2025-01-29 08:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 05:41:06 [end_date_ymd] => 2025-01-29 08:41:06 [RateCDR] => 1 ) [2025-01-29 08:41:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 05:41:06' and `end` < '2025-01-29 08:41:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 08:41:18] Production.INFO: count ==488 [2025-01-29 08:41:18] Production.ERROR: pbx CDR StartTime 2025-01-29 05:41:06 - End Time 2025-01-29 08:41:06 [2025-01-29 08:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 08:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355166', 'tblTempUsageDetail_20' ) start [2025-01-29 08:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355166', 'tblTempUsageDetail_20' ) end [2025-01-29 08:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355166', 'tblTempVendorCDR_20' ) start [2025-01-29 08:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355166', 'tblTempVendorCDR_20' ) end [2025-01-29 08:41:18] Production.INFO: ProcessCDR(1,14355166,1,1,2) [2025-01-29 08:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14355166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 08:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14355166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 08:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14355166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 08:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14355166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 08:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355166', 'tblTempUsageDetail_20' ) start [2025-01-29 08:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355166', 'tblTempUsageDetail_20' ) end [2025-01-29 08:41:22] Production.ERROR: pbx prc_insertCDR start [2025-01-29 08:41:22] Production.ERROR: pbx prc_insertCDR end [2025-01-29 08:41:22] Production.INFO: ==8371== Releasing lock... [2025-01-29 08:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 08:41:22] Production.INFO: 32.5 MB #Memory Used# [2025-01-29 08:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 05:42:05 [end_date_ymd] => 2025-01-29 08:42:05 [RateCDR] => 1 ) [2025-01-29 08:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 05:42:05' and `end` < '2025-01-29 08:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 08:42:18] Production.INFO: count ==489 [2025-01-29 08:42:18] Production.ERROR: pbx CDR StartTime 2025-01-29 05:42:05 - End Time 2025-01-29 08:42:05 [2025-01-29 08:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 08:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355171', 'tblTempUsageDetail_20' ) start [2025-01-29 08:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355171', 'tblTempUsageDetail_20' ) end [2025-01-29 08:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355171', 'tblTempVendorCDR_20' ) start [2025-01-29 08:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355171', 'tblTempVendorCDR_20' ) end [2025-01-29 08:42:18] Production.INFO: ProcessCDR(1,14355171,1,1,2) [2025-01-29 08:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14355171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 08:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14355171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 08:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14355171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 08:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14355171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 08:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355171', 'tblTempUsageDetail_20' ) start [2025-01-29 08:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355171', 'tblTempUsageDetail_20' ) end [2025-01-29 08:42:22] Production.ERROR: pbx prc_insertCDR start [2025-01-29 08:42:22] Production.ERROR: pbx prc_insertCDR end [2025-01-29 08:42:22] Production.INFO: ==8479== Releasing lock... [2025-01-29 08:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 08:42:22] Production.INFO: 32.5 MB #Memory Used# [2025-01-29 08:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 05:43:05 [end_date_ymd] => 2025-01-29 08:43:05 [RateCDR] => 1 ) [2025-01-29 08:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 05:43:05' and `end` < '2025-01-29 08:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 08:43:18] Production.INFO: count ==490 [2025-01-29 08:43:18] Production.ERROR: pbx CDR StartTime 2025-01-29 05:43:05 - End Time 2025-01-29 08:43:05 [2025-01-29 08:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 08:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355176', 'tblTempUsageDetail_20' ) start [2025-01-29 08:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355176', 'tblTempUsageDetail_20' ) end [2025-01-29 08:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355176', 'tblTempVendorCDR_20' ) start [2025-01-29 08:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355176', 'tblTempVendorCDR_20' ) end [2025-01-29 08:43:18] Production.INFO: ProcessCDR(1,14355176,1,1,2) [2025-01-29 08:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14355176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 08:43:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14355176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 08:43:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14355176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 08:43:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14355176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 08:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355176', 'tblTempUsageDetail_20' ) start [2025-01-29 08:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355176', 'tblTempUsageDetail_20' ) end [2025-01-29 08:43:23] Production.ERROR: pbx prc_insertCDR start [2025-01-29 08:43:23] Production.ERROR: pbx prc_insertCDR end [2025-01-29 08:43:23] Production.INFO: ==8625== Releasing lock... [2025-01-29 08:43:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 08:43:23] Production.INFO: 32.5 MB #Memory Used# [2025-01-29 08:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 05:44:05 [end_date_ymd] => 2025-01-29 08:44:05 [RateCDR] => 1 ) [2025-01-29 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-01-29 05:44:05' and `end` < '2025-01-29 08:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 08:44:18] Production.INFO: count ==504 [2025-01-29 08:44:18] Production.ERROR: pbx CDR StartTime 2025-01-29 05:44:05 - End Time 2025-01-29 08:44:05 [2025-01-29 08:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 08:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355181', 'tblTempUsageDetail_20' ) start [2025-01-29 08:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355181', 'tblTempUsageDetail_20' ) end [2025-01-29 08:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355181', 'tblTempVendorCDR_20' ) start [2025-01-29 08:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355181', 'tblTempVendorCDR_20' ) end [2025-01-29 08:44:18] Production.INFO: ProcessCDR(1,14355181,1,1,2) [2025-01-29 08:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14355181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 08:44:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14355181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 08:44:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14355181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 08:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14355181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 08:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355181', 'tblTempUsageDetail_20' ) start [2025-01-29 08:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355181', 'tblTempUsageDetail_20' ) end [2025-01-29 08:44:23] Production.ERROR: pbx prc_insertCDR start [2025-01-29 08:44:23] Production.ERROR: pbx prc_insertCDR end [2025-01-29 08:44:23] Production.INFO: ==8741== Releasing lock... [2025-01-29 08:44:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 08:44:23] Production.INFO: 32.75 MB #Memory Used# [2025-01-29 08:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 05:45:06 [end_date_ymd] => 2025-01-29 08:45:06 [RateCDR] => 1 ) [2025-01-29 08:45:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 05:45:06' and `end` < '2025-01-29 08:45:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 08:45:19] Production.INFO: count ==505 [2025-01-29 08:45:19] Production.ERROR: pbx CDR StartTime 2025-01-29 05:45:06 - End Time 2025-01-29 08:45:06 [2025-01-29 08:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 08:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355186', 'tblTempUsageDetail_20' ) start [2025-01-29 08:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355186', 'tblTempUsageDetail_20' ) end [2025-01-29 08:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355186', 'tblTempVendorCDR_20' ) start [2025-01-29 08:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355186', 'tblTempVendorCDR_20' ) end [2025-01-29 08:45:19] Production.INFO: ProcessCDR(1,14355186,1,1,2) [2025-01-29 08:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14355186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 08:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14355186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 08:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14355186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 08:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14355186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 08:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355186', 'tblTempUsageDetail_20' ) start [2025-01-29 08:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355186', 'tblTempUsageDetail_20' ) end [2025-01-29 08:45:22] Production.ERROR: pbx prc_insertCDR start [2025-01-29 08:45:22] Production.ERROR: pbx prc_insertCDR end [2025-01-29 08:45:22] Production.INFO: ==8847== Releasing lock... [2025-01-29 08:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 08:45:22] Production.INFO: 32.25 MB #Memory Used# [2025-01-29 08:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 05:46:05 [end_date_ymd] => 2025-01-29 08:46:05 [RateCDR] => 1 ) [2025-01-29 08:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 05:46:05' and `end` < '2025-01-29 08:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 08:46:18] Production.INFO: count ==517 [2025-01-29 08:46:18] Production.ERROR: pbx CDR StartTime 2025-01-29 05:46:05 - End Time 2025-01-29 08:46:05 [2025-01-29 08:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 08:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355191', 'tblTempUsageDetail_20' ) start [2025-01-29 08:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355191', 'tblTempUsageDetail_20' ) end [2025-01-29 08:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355191', 'tblTempVendorCDR_20' ) start [2025-01-29 08:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355191', 'tblTempVendorCDR_20' ) end [2025-01-29 08:46:18] Production.INFO: ProcessCDR(1,14355191,1,1,2) [2025-01-29 08:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14355191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 08:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14355191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 08:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14355191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 08:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14355191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 08:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355191', 'tblTempUsageDetail_20' ) start [2025-01-29 08:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355191', 'tblTempUsageDetail_20' ) end [2025-01-29 08:46:23] Production.ERROR: pbx prc_insertCDR start [2025-01-29 08:46:23] Production.ERROR: pbx prc_insertCDR end [2025-01-29 08:46:23] Production.INFO: ==8938== Releasing lock... [2025-01-29 08:46:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 08:46:23] Production.INFO: 32.75 MB #Memory Used# [2025-01-29 08:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 05:47:05 [end_date_ymd] => 2025-01-29 08:47:05 [RateCDR] => 1 ) [2025-01-29 08:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 05:47:05' and `end` < '2025-01-29 08:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 08:47:18] Production.INFO: count ==520 [2025-01-29 08:47:18] Production.ERROR: pbx CDR StartTime 2025-01-29 05:47:05 - End Time 2025-01-29 08:47:05 [2025-01-29 08:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 08:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355196', 'tblTempUsageDetail_20' ) start [2025-01-29 08:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355196', 'tblTempUsageDetail_20' ) end [2025-01-29 08:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355196', 'tblTempVendorCDR_20' ) start [2025-01-29 08:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355196', 'tblTempVendorCDR_20' ) end [2025-01-29 08:47:18] Production.INFO: ProcessCDR(1,14355196,1,1,2) [2025-01-29 08:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14355196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 08:47:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14355196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 08:47:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14355196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 08:47:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14355196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 08:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355196', 'tblTempUsageDetail_20' ) start [2025-01-29 08:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355196', 'tblTempUsageDetail_20' ) end [2025-01-29 08:47:24] Production.ERROR: pbx prc_insertCDR start [2025-01-29 08:47:24] Production.ERROR: pbx prc_insertCDR end [2025-01-29 08:47:24] Production.INFO: ==9011== Releasing lock... [2025-01-29 08:47:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 08:47:24] Production.INFO: 33 MB #Memory Used# [2025-01-29 08:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 05:48:05 [end_date_ymd] => 2025-01-29 08:48:05 [RateCDR] => 1 ) [2025-01-29 08:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 05:48:05' and `end` < '2025-01-29 08:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 08:48:20] Production.INFO: count ==522 [2025-01-29 08:48:20] Production.ERROR: pbx CDR StartTime 2025-01-29 05:48:05 - End Time 2025-01-29 08:48:05 [2025-01-29 08:48:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 08:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355201', 'tblTempUsageDetail_20' ) start [2025-01-29 08:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355201', 'tblTempUsageDetail_20' ) end [2025-01-29 08:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355201', 'tblTempVendorCDR_20' ) start [2025-01-29 08:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355201', 'tblTempVendorCDR_20' ) end [2025-01-29 08:48:20] Production.INFO: ProcessCDR(1,14355201,1,1,2) [2025-01-29 08:48:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14355201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 08:48:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14355201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 08:48:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14355201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 08:48:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14355201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 08:48:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355201', 'tblTempUsageDetail_20' ) start [2025-01-29 08:48:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355201', 'tblTempUsageDetail_20' ) end [2025-01-29 08:48:25] Production.ERROR: pbx prc_insertCDR start [2025-01-29 08:48:25] Production.ERROR: pbx prc_insertCDR end [2025-01-29 08:48:25] Production.INFO: ==9091== Releasing lock... [2025-01-29 08:48:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 08:48:25] Production.INFO: 32.5 MB #Memory Used# [2025-01-29 08:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 05:49:06 [end_date_ymd] => 2025-01-29 08:49:06 [RateCDR] => 1 ) [2025-01-29 08:49:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 05:49:06' and `end` < '2025-01-29 08:49:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 08:49:19] Production.INFO: count ==546 [2025-01-29 08:49:19] Production.ERROR: pbx CDR StartTime 2025-01-29 05:49:06 - End Time 2025-01-29 08:49:06 [2025-01-29 08:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 08:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355206', 'tblTempUsageDetail_20' ) start [2025-01-29 08:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355206', 'tblTempUsageDetail_20' ) end [2025-01-29 08:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355206', 'tblTempVendorCDR_20' ) start [2025-01-29 08:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355206', 'tblTempVendorCDR_20' ) end [2025-01-29 08:49:19] Production.INFO: ProcessCDR(1,14355206,1,1,2) [2025-01-29 08:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14355206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 08:49:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14355206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 08:49:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14355206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 08:49:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14355206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 08:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355206', 'tblTempUsageDetail_20' ) start [2025-01-29 08:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355206', 'tblTempUsageDetail_20' ) end [2025-01-29 08:49:24] Production.ERROR: pbx prc_insertCDR start [2025-01-29 08:49:24] Production.ERROR: pbx prc_insertCDR end [2025-01-29 08:49:25] Production.INFO: ==9166== Releasing lock... [2025-01-29 08:49:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 08:49:25] Production.INFO: 33 MB #Memory Used# [2025-01-29 08:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 05:50:06 [end_date_ymd] => 2025-01-29 08:50:06 [RateCDR] => 1 ) [2025-01-29 08:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 05:50:06' and `end` < '2025-01-29 08:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 08:50:19] Production.INFO: count ==551 [2025-01-29 08:50:19] Production.ERROR: pbx CDR StartTime 2025-01-29 05:50:06 - End Time 2025-01-29 08:50:06 [2025-01-29 08:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 08:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355212', 'tblTempUsageDetail_20' ) start [2025-01-29 08:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355212', 'tblTempUsageDetail_20' ) end [2025-01-29 08:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355212', 'tblTempVendorCDR_20' ) start [2025-01-29 08:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355212', 'tblTempVendorCDR_20' ) end [2025-01-29 08:50:19] Production.INFO: ProcessCDR(1,14355212,1,1,2) [2025-01-29 08:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14355212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 08:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14355212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 08:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14355212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 08:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14355212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 08:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355212', 'tblTempUsageDetail_20' ) start [2025-01-29 08:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355212', 'tblTempUsageDetail_20' ) end [2025-01-29 08:50:22] Production.ERROR: pbx prc_insertCDR start [2025-01-29 08:50:22] Production.ERROR: pbx prc_insertCDR end [2025-01-29 08:50:23] Production.INFO: ==9244== Releasing lock... [2025-01-29 08:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 08:50:23] Production.INFO: 32.75 MB #Memory Used# [2025-01-29 08:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 05:51:06 [end_date_ymd] => 2025-01-29 08:51:06 [RateCDR] => 1 ) [2025-01-29 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-01-29 05:51:06' and `end` < '2025-01-29 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-01-29 08:51:18] Production.INFO: count ==604 [2025-01-29 08:51:18] Production.ERROR: pbx CDR StartTime 2025-01-29 05:51:06 - End Time 2025-01-29 08:51:06 [2025-01-29 08:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 08:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355217', 'tblTempUsageDetail_20' ) start [2025-01-29 08:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355217', 'tblTempUsageDetail_20' ) end [2025-01-29 08:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355217', 'tblTempVendorCDR_20' ) start [2025-01-29 08:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355217', 'tblTempVendorCDR_20' ) end [2025-01-29 08:51:18] Production.INFO: ProcessCDR(1,14355217,1,1,2) [2025-01-29 08:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14355217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 08:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14355217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 08:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14355217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 08:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14355217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 08:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355217', 'tblTempUsageDetail_20' ) start [2025-01-29 08:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355217', 'tblTempUsageDetail_20' ) end [2025-01-29 08:51:22] Production.ERROR: pbx prc_insertCDR start [2025-01-29 08:51:22] Production.ERROR: pbx prc_insertCDR end [2025-01-29 08:51:22] Production.INFO: ==9318== Releasing lock... [2025-01-29 08:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 08:51:22] Production.INFO: 33.75 MB #Memory Used# [2025-01-29 08:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 05:52:05 [end_date_ymd] => 2025-01-29 08:52:05 [RateCDR] => 1 ) [2025-01-29 08:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 05:52:05' and `end` < '2025-01-29 08:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 08:52:18] Production.INFO: count ==610 [2025-01-29 08:52:18] Production.ERROR: pbx CDR StartTime 2025-01-29 05:52:05 - End Time 2025-01-29 08:52:05 [2025-01-29 08:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 08:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355222', 'tblTempUsageDetail_20' ) start [2025-01-29 08:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355222', 'tblTempUsageDetail_20' ) end [2025-01-29 08:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355222', 'tblTempVendorCDR_20' ) start [2025-01-29 08:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355222', 'tblTempVendorCDR_20' ) end [2025-01-29 08:52:18] Production.INFO: ProcessCDR(1,14355222,1,1,2) [2025-01-29 08:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14355222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 08:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14355222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 08:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14355222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 08:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14355222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 08:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355222', 'tblTempUsageDetail_20' ) start [2025-01-29 08:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355222', 'tblTempUsageDetail_20' ) end [2025-01-29 08:52:21] Production.ERROR: pbx prc_insertCDR start [2025-01-29 08:52:21] Production.ERROR: pbx prc_insertCDR end [2025-01-29 08:52:21] Production.INFO: ==9389== Releasing lock... [2025-01-29 08:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 08:52:21] Production.INFO: 33.5 MB #Memory Used# [2025-01-29 08:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 05:53:05 [end_date_ymd] => 2025-01-29 08:53:05 [RateCDR] => 1 ) [2025-01-29 08:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 05:53:05' and `end` < '2025-01-29 08:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 08:53:19] Production.INFO: count ==610 [2025-01-29 08:53:19] Production.ERROR: pbx CDR StartTime 2025-01-29 05:53:05 - End Time 2025-01-29 08:53:05 [2025-01-29 08:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 08:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355227', 'tblTempUsageDetail_20' ) start [2025-01-29 08:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355227', 'tblTempUsageDetail_20' ) end [2025-01-29 08:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355227', 'tblTempVendorCDR_20' ) start [2025-01-29 08:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355227', 'tblTempVendorCDR_20' ) end [2025-01-29 08:53:19] Production.INFO: ProcessCDR(1,14355227,1,1,2) [2025-01-29 08:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14355227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 08:53:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14355227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 08:53:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14355227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 08:53:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14355227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 08:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355227', 'tblTempUsageDetail_20' ) start [2025-01-29 08:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355227', 'tblTempUsageDetail_20' ) end [2025-01-29 08:53:24] Production.ERROR: pbx prc_insertCDR start [2025-01-29 08:53:24] Production.ERROR: pbx prc_insertCDR end [2025-01-29 08:53:24] Production.INFO: ==9466== Releasing lock... [2025-01-29 08:53:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 08:53:24] Production.INFO: 33.5 MB #Memory Used# [2025-01-29 08:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 05:54:06 [end_date_ymd] => 2025-01-29 08:54:06 [RateCDR] => 1 ) [2025-01-29 08:54:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 05:54:06' and `end` < '2025-01-29 08:54:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 08:54:18] Production.INFO: count ==615 [2025-01-29 08:54:19] Production.ERROR: pbx CDR StartTime 2025-01-29 05:54:06 - End Time 2025-01-29 08:54:06 [2025-01-29 08:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 08:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355232', 'tblTempUsageDetail_20' ) start [2025-01-29 08:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355232', 'tblTempUsageDetail_20' ) end [2025-01-29 08:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355232', 'tblTempVendorCDR_20' ) start [2025-01-29 08:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355232', 'tblTempVendorCDR_20' ) end [2025-01-29 08:54:19] Production.INFO: ProcessCDR(1,14355232,1,1,2) [2025-01-29 08:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14355232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 08:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14355232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 08:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14355232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 08:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14355232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 08:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355232', 'tblTempUsageDetail_20' ) start [2025-01-29 08:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355232', 'tblTempUsageDetail_20' ) end [2025-01-29 08:54:22] Production.ERROR: pbx prc_insertCDR start [2025-01-29 08:54:22] Production.ERROR: pbx prc_insertCDR end [2025-01-29 08:54:22] Production.INFO: ==9543== Releasing lock... [2025-01-29 08:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 08:54:22] Production.INFO: 33 MB #Memory Used# [2025-01-29 08:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 05:55:05 [end_date_ymd] => 2025-01-29 08:55:05 [RateCDR] => 1 ) [2025-01-29 08:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 05:55:05' and `end` < '2025-01-29 08:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 08:55:18] Production.INFO: count ==628 [2025-01-29 08:55:18] Production.ERROR: pbx CDR StartTime 2025-01-29 05:55:05 - End Time 2025-01-29 08:55:05 [2025-01-29 08:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 08:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355237', 'tblTempUsageDetail_20' ) start [2025-01-29 08:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355237', 'tblTempUsageDetail_20' ) end [2025-01-29 08:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355237', 'tblTempVendorCDR_20' ) start [2025-01-29 08:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355237', 'tblTempVendorCDR_20' ) end [2025-01-29 08:55:18] Production.INFO: ProcessCDR(1,14355237,1,1,2) [2025-01-29 08:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14355237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 08:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14355237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 08:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14355237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 08:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14355237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 08:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355237', 'tblTempUsageDetail_20' ) start [2025-01-29 08:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355237', 'tblTempUsageDetail_20' ) end [2025-01-29 08:55:22] Production.ERROR: pbx prc_insertCDR start [2025-01-29 08:55:22] Production.ERROR: pbx prc_insertCDR end [2025-01-29 08:55:22] Production.INFO: ==9616== Releasing lock... [2025-01-29 08:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 08:55:22] Production.INFO: 33.25 MB #Memory Used# [2025-01-29 08:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 05:56:06 [end_date_ymd] => 2025-01-29 08:56:06 [RateCDR] => 1 ) [2025-01-29 08:56:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 05:56:06' and `end` < '2025-01-29 08:56:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 08:56:19] Production.INFO: count ==636 [2025-01-29 08:56:19] Production.ERROR: pbx CDR StartTime 2025-01-29 05:56:06 - End Time 2025-01-29 08:56:06 [2025-01-29 08:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 08:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355242', 'tblTempUsageDetail_20' ) start [2025-01-29 08:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355242', 'tblTempUsageDetail_20' ) end [2025-01-29 08:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355242', 'tblTempVendorCDR_20' ) start [2025-01-29 08:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355242', 'tblTempVendorCDR_20' ) end [2025-01-29 08:56:19] Production.INFO: ProcessCDR(1,14355242,1,1,2) [2025-01-29 08:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14355242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 08:56:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14355242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 08:56:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14355242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 08:56:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14355242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 08:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355242', 'tblTempUsageDetail_20' ) start [2025-01-29 08:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355242', 'tblTempUsageDetail_20' ) end [2025-01-29 08:56:24] Production.ERROR: pbx prc_insertCDR start [2025-01-29 08:56:24] Production.ERROR: pbx prc_insertCDR end [2025-01-29 08:56:24] Production.INFO: ==9690== Releasing lock... [2025-01-29 08:56:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 08:56:24] Production.INFO: 33.75 MB #Memory Used# [2025-01-29 08:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 05:57:05 [end_date_ymd] => 2025-01-29 08:57:05 [RateCDR] => 1 ) [2025-01-29 08:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 05:57:05' and `end` < '2025-01-29 08:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 08:57:19] Production.INFO: count ==641 [2025-01-29 08:57:19] Production.ERROR: pbx CDR StartTime 2025-01-29 05:57:05 - End Time 2025-01-29 08:57:05 [2025-01-29 08:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 08:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355247', 'tblTempUsageDetail_20' ) start [2025-01-29 08:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355247', 'tblTempUsageDetail_20' ) end [2025-01-29 08:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355247', 'tblTempVendorCDR_20' ) start [2025-01-29 08:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355247', 'tblTempVendorCDR_20' ) end [2025-01-29 08:57:19] Production.INFO: ProcessCDR(1,14355247,1,1,2) [2025-01-29 08:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14355247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 08:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14355247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 08:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14355247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 08:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14355247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 08:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355247', 'tblTempUsageDetail_20' ) start [2025-01-29 08:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355247', 'tblTempUsageDetail_20' ) end [2025-01-29 08:57:22] Production.ERROR: pbx prc_insertCDR start [2025-01-29 08:57:22] Production.ERROR: pbx prc_insertCDR end [2025-01-29 08:57:22] Production.INFO: ==9765== Releasing lock... [2025-01-29 08:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 08:57:22] Production.INFO: 33.25 MB #Memory Used# [2025-01-29 08:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 05:58:06 [end_date_ymd] => 2025-01-29 08:58:06 [RateCDR] => 1 ) [2025-01-29 08:58:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 05:58:06' and `end` < '2025-01-29 08:58:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 08:58:18] Production.INFO: count ==647 [2025-01-29 08:58:18] Production.ERROR: pbx CDR StartTime 2025-01-29 05:58:06 - End Time 2025-01-29 08:58:06 [2025-01-29 08:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 08:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355252', 'tblTempUsageDetail_20' ) start [2025-01-29 08:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355252', 'tblTempUsageDetail_20' ) end [2025-01-29 08:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355252', 'tblTempVendorCDR_20' ) start [2025-01-29 08:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355252', 'tblTempVendorCDR_20' ) end [2025-01-29 08:58:19] Production.INFO: ProcessCDR(1,14355252,1,1,2) [2025-01-29 08:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14355252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 08:58:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14355252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 08:58:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14355252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 08:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14355252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 08:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355252', 'tblTempUsageDetail_20' ) start [2025-01-29 08:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355252', 'tblTempUsageDetail_20' ) end [2025-01-29 08:58:24] Production.ERROR: pbx prc_insertCDR start [2025-01-29 08:58:24] Production.ERROR: pbx prc_insertCDR end [2025-01-29 08:58:24] Production.INFO: ==9874== Releasing lock... [2025-01-29 08:58:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 08:58:24] Production.INFO: 33.75 MB #Memory Used# [2025-01-29 08:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 05:59:05 [end_date_ymd] => 2025-01-29 08:59:05 [RateCDR] => 1 ) [2025-01-29 08:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 05:59:05' and `end` < '2025-01-29 08:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 08:59:18] Production.INFO: count ==648 [2025-01-29 08:59:18] Production.ERROR: pbx CDR StartTime 2025-01-29 05:59:05 - End Time 2025-01-29 08:59:05 [2025-01-29 08:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 08:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355257', 'tblTempUsageDetail_20' ) start [2025-01-29 08:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355257', 'tblTempUsageDetail_20' ) end [2025-01-29 08:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355257', 'tblTempVendorCDR_20' ) start [2025-01-29 08:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355257', 'tblTempVendorCDR_20' ) end [2025-01-29 08:59:18] Production.INFO: ProcessCDR(1,14355257,1,1,2) [2025-01-29 08:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14355257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 08:59:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14355257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 08:59:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14355257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 08:59:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14355257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 08:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355257', 'tblTempUsageDetail_20' ) start [2025-01-29 08:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355257', 'tblTempUsageDetail_20' ) end [2025-01-29 08:59:23] Production.ERROR: pbx prc_insertCDR start [2025-01-29 08:59:23] Production.ERROR: pbx prc_insertCDR end [2025-01-29 08:59:23] Production.INFO: ==9947== Releasing lock... [2025-01-29 08:59:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 08:59:23] Production.INFO: 33.75 MB #Memory Used# [2025-01-29 09:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 06:00:06 [end_date_ymd] => 2025-01-29 09:00:06 [RateCDR] => 1 ) [2025-01-29 09:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 06:00:06' and `end` < '2025-01-29 09:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 09:00:19] Production.INFO: count ==657 [2025-01-29 09:00:19] Production.ERROR: pbx CDR StartTime 2025-01-29 06:00:06 - End Time 2025-01-29 09:00:06 [2025-01-29 09:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 09:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355263', 'tblTempUsageDetail_20' ) start [2025-01-29 09:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355263', 'tblTempUsageDetail_20' ) end [2025-01-29 09:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355263', 'tblTempVendorCDR_20' ) start [2025-01-29 09:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355263', 'tblTempVendorCDR_20' ) end [2025-01-29 09:00:19] Production.INFO: ProcessCDR(1,14355263,1,1,2) [2025-01-29 09:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14355263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 09:00:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14355263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 09:00:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14355263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 09:00:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14355263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 09:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355263', 'tblTempUsageDetail_20' ) start [2025-01-29 09:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355263', 'tblTempUsageDetail_20' ) end [2025-01-29 09:00:24] Production.ERROR: pbx prc_insertCDR start [2025-01-29 09:00:24] Production.ERROR: pbx prc_insertCDR end [2025-01-29 09:00:24] Production.INFO: ==10021== Releasing lock... [2025-01-29 09:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 09:00:24] Production.INFO: 33.5 MB #Memory Used# [2025-01-29 09:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 06:01:05 [end_date_ymd] => 2025-01-29 09:01:05 [RateCDR] => 1 ) [2025-01-29 09:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 06:01:05' and `end` < '2025-01-29 09:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 09:01:18] Production.INFO: count ==689 [2025-01-29 09:01:18] Production.ERROR: pbx CDR StartTime 2025-01-29 06:01:05 - End Time 2025-01-29 09:01:05 [2025-01-29 09:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 09:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355268', 'tblTempUsageDetail_20' ) start [2025-01-29 09:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355268', 'tblTempUsageDetail_20' ) end [2025-01-29 09:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355268', 'tblTempVendorCDR_20' ) start [2025-01-29 09:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355268', 'tblTempVendorCDR_20' ) end [2025-01-29 09:01:18] Production.INFO: ProcessCDR(1,14355268,1,1,2) [2025-01-29 09:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14355268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 09:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14355268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 09:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14355268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 09:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14355268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 09:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355268', 'tblTempUsageDetail_20' ) start [2025-01-29 09:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355268', 'tblTempUsageDetail_20' ) end [2025-01-29 09:01:21] Production.ERROR: pbx prc_insertCDR start [2025-01-29 09:01:21] Production.ERROR: pbx prc_insertCDR end [2025-01-29 09:01:21] Production.INFO: ==10109== Releasing lock... [2025-01-29 09:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 09:01:21] Production.INFO: 33.75 MB #Memory Used# [2025-01-29 09:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 06:02:06 [end_date_ymd] => 2025-01-29 09:02:06 [RateCDR] => 1 ) [2025-01-29 09:02:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 06:02:06' and `end` < '2025-01-29 09:02:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 09:02:18] Production.INFO: count ==694 [2025-01-29 09:02:19] Production.ERROR: pbx CDR StartTime 2025-01-29 06:02:06 - End Time 2025-01-29 09:02:06 [2025-01-29 09:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 09:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355273', 'tblTempUsageDetail_20' ) start [2025-01-29 09:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355273', 'tblTempUsageDetail_20' ) end [2025-01-29 09:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355273', 'tblTempVendorCDR_20' ) start [2025-01-29 09:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355273', 'tblTempVendorCDR_20' ) end [2025-01-29 09:02:19] Production.INFO: ProcessCDR(1,14355273,1,1,2) [2025-01-29 09:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14355273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 09:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14355273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 09:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14355273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 09:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14355273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 09:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355273', 'tblTempUsageDetail_20' ) start [2025-01-29 09:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355273', 'tblTempUsageDetail_20' ) end [2025-01-29 09:02:22] Production.ERROR: pbx prc_insertCDR start [2025-01-29 09:02:22] Production.ERROR: pbx prc_insertCDR end [2025-01-29 09:02:22] Production.INFO: ==10179== Releasing lock... [2025-01-29 09:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 09:02:22] Production.INFO: 33.5 MB #Memory Used# [2025-01-29 09:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 06:03:05 [end_date_ymd] => 2025-01-29 09:03:05 [RateCDR] => 1 ) [2025-01-29 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-01-29 06:03:05' and `end` < '2025-01-29 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-01-29 09:03:18] Production.INFO: count ==703 [2025-01-29 09:03:18] Production.ERROR: pbx CDR StartTime 2025-01-29 06:03:05 - End Time 2025-01-29 09:03:05 [2025-01-29 09:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 09:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355278', 'tblTempUsageDetail_20' ) start [2025-01-29 09:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355278', 'tblTempUsageDetail_20' ) end [2025-01-29 09:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355278', 'tblTempVendorCDR_20' ) start [2025-01-29 09:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355278', 'tblTempVendorCDR_20' ) end [2025-01-29 09:03:18] Production.INFO: ProcessCDR(1,14355278,1,1,2) [2025-01-29 09:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14355278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 09:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14355278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 09:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14355278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 09:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14355278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 09:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355278', 'tblTempUsageDetail_20' ) start [2025-01-29 09:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355278', 'tblTempUsageDetail_20' ) end [2025-01-29 09:03:21] Production.ERROR: pbx prc_insertCDR start [2025-01-29 09:03:21] Production.ERROR: pbx prc_insertCDR end [2025-01-29 09:03:21] Production.INFO: ==10257== Releasing lock... [2025-01-29 09:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 09:03:21] Production.INFO: 34 MB #Memory Used# [2025-01-29 09:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 06:04:06 [end_date_ymd] => 2025-01-29 09:04:06 [RateCDR] => 1 ) [2025-01-29 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-01-29 06:04:06' and `end` < '2025-01-29 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-01-29 09:04:20] Production.INFO: count ==720 [2025-01-29 09:04:20] Production.ERROR: pbx CDR StartTime 2025-01-29 06:04:06 - End Time 2025-01-29 09:04:06 [2025-01-29 09:04:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 09:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355283', 'tblTempUsageDetail_20' ) start [2025-01-29 09:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355283', 'tblTempUsageDetail_20' ) end [2025-01-29 09:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355283', 'tblTempVendorCDR_20' ) start [2025-01-29 09:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355283', 'tblTempVendorCDR_20' ) end [2025-01-29 09:04:20] Production.INFO: ProcessCDR(1,14355283,1,1,2) [2025-01-29 09:04:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14355283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 09:04:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14355283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 09:04:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14355283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 09:04:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14355283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 09:04:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355283', 'tblTempUsageDetail_20' ) start [2025-01-29 09:04:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355283', 'tblTempUsageDetail_20' ) end [2025-01-29 09:04:25] Production.ERROR: pbx prc_insertCDR start [2025-01-29 09:04:25] Production.ERROR: pbx prc_insertCDR end [2025-01-29 09:04:25] Production.INFO: ==10334== Releasing lock... [2025-01-29 09:04:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 09:04:25] Production.INFO: 34.25 MB #Memory Used# [2025-01-29 09:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 06:05:05 [end_date_ymd] => 2025-01-29 09:05:05 [RateCDR] => 1 ) [2025-01-29 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-01-29 06:05:05' and `end` < '2025-01-29 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-01-29 09:05:18] Production.INFO: count ==732 [2025-01-29 09:05:18] Production.ERROR: pbx CDR StartTime 2025-01-29 06:05:05 - End Time 2025-01-29 09:05:05 [2025-01-29 09:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 09:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355288', 'tblTempUsageDetail_20' ) start [2025-01-29 09:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355288', 'tblTempUsageDetail_20' ) end [2025-01-29 09:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355288', 'tblTempVendorCDR_20' ) start [2025-01-29 09:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355288', 'tblTempVendorCDR_20' ) end [2025-01-29 09:05:18] Production.INFO: ProcessCDR(1,14355288,1,1,2) [2025-01-29 09:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14355288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 09:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14355288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 09:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14355288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 09:05:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14355288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 09:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355288', 'tblTempUsageDetail_20' ) start [2025-01-29 09:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355288', 'tblTempUsageDetail_20' ) end [2025-01-29 09:05:23] Production.ERROR: pbx prc_insertCDR start [2025-01-29 09:05:23] Production.ERROR: pbx prc_insertCDR end [2025-01-29 09:05:23] Production.INFO: ==10406== Releasing lock... [2025-01-29 09:05:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 09:05:23] Production.INFO: 34 MB #Memory Used# [2025-01-29 09:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 06:06:06 [end_date_ymd] => 2025-01-29 09:06:06 [RateCDR] => 1 ) [2025-01-29 09:06:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 06:06:06' and `end` < '2025-01-29 09:06:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 09:06:19] Production.INFO: count ==740 [2025-01-29 09:06:19] Production.ERROR: pbx CDR StartTime 2025-01-29 06:06:06 - End Time 2025-01-29 09:06:06 [2025-01-29 09:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 09:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355293', 'tblTempUsageDetail_20' ) start [2025-01-29 09:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355293', 'tblTempUsageDetail_20' ) end [2025-01-29 09:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355293', 'tblTempVendorCDR_20' ) start [2025-01-29 09:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355293', 'tblTempVendorCDR_20' ) end [2025-01-29 09:06:19] Production.INFO: ProcessCDR(1,14355293,1,1,2) [2025-01-29 09:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14355293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 09:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14355293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 09:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14355293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 09:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14355293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 09:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355293', 'tblTempUsageDetail_20' ) start [2025-01-29 09:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355293', 'tblTempUsageDetail_20' ) end [2025-01-29 09:06:23] Production.ERROR: pbx prc_insertCDR start [2025-01-29 09:06:23] Production.ERROR: pbx prc_insertCDR end [2025-01-29 09:06:23] Production.INFO: ==10486== Releasing lock... [2025-01-29 09:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 09:06:23] Production.INFO: 34.25 MB #Memory Used# [2025-01-29 09:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 06:07:05 [end_date_ymd] => 2025-01-29 09:07:05 [RateCDR] => 1 ) [2025-01-29 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-01-29 06:07:05' and `end` < '2025-01-29 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-01-29 09:07:18] Production.INFO: count ==744 [2025-01-29 09:07:18] Production.ERROR: pbx CDR StartTime 2025-01-29 06:07:05 - End Time 2025-01-29 09:07:05 [2025-01-29 09:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 09:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355298', 'tblTempUsageDetail_20' ) start [2025-01-29 09:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355298', 'tblTempUsageDetail_20' ) end [2025-01-29 09:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355298', 'tblTempVendorCDR_20' ) start [2025-01-29 09:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355298', 'tblTempVendorCDR_20' ) end [2025-01-29 09:07:18] Production.INFO: ProcessCDR(1,14355298,1,1,2) [2025-01-29 09:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14355298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 09:07:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14355298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 09:07:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14355298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 09:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14355298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 09:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355298', 'tblTempUsageDetail_20' ) start [2025-01-29 09:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355298', 'tblTempUsageDetail_20' ) end [2025-01-29 09:07:23] Production.ERROR: pbx prc_insertCDR start [2025-01-29 09:07:23] Production.ERROR: pbx prc_insertCDR end [2025-01-29 09:07:23] Production.INFO: ==10558== Releasing lock... [2025-01-29 09:07:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 09:07:23] Production.INFO: 33.5 MB #Memory Used# [2025-01-29 09:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 06:08:06 [end_date_ymd] => 2025-01-29 09:08:06 [RateCDR] => 1 ) [2025-01-29 09:08:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 06:08:06' and `end` < '2025-01-29 09:08:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 09:08:19] Production.INFO: count ==749 [2025-01-29 09:08:19] Production.ERROR: pbx CDR StartTime 2025-01-29 06:08:06 - End Time 2025-01-29 09:08:06 [2025-01-29 09:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 09:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355303', 'tblTempUsageDetail_20' ) start [2025-01-29 09:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355303', 'tblTempUsageDetail_20' ) end [2025-01-29 09:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355303', 'tblTempVendorCDR_20' ) start [2025-01-29 09:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355303', 'tblTempVendorCDR_20' ) end [2025-01-29 09:08:19] Production.INFO: ProcessCDR(1,14355303,1,1,2) [2025-01-29 09:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14355303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 09:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14355303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 09:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14355303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 09:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14355303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 09:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355303', 'tblTempUsageDetail_20' ) start [2025-01-29 09:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355303', 'tblTempUsageDetail_20' ) end [2025-01-29 09:08:22] Production.ERROR: pbx prc_insertCDR start [2025-01-29 09:08:22] Production.ERROR: pbx prc_insertCDR end [2025-01-29 09:08:22] Production.INFO: ==10636== Releasing lock... [2025-01-29 09:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 09:08:22] Production.INFO: 33.75 MB #Memory Used# [2025-01-29 09:09:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 06:09:04 [end_date_ymd] => 2025-01-29 09:09:04 [RateCDR] => 1 ) [2025-01-29 09:09:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 06:09:04' and `end` < '2025-01-29 09:09:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 09:09:17] Production.INFO: count ==751 [2025-01-29 09:09:17] Production.ERROR: pbx CDR StartTime 2025-01-29 06:09:04 - End Time 2025-01-29 09:09:04 [2025-01-29 09:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 09:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355308', 'tblTempUsageDetail_20' ) start [2025-01-29 09:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355308', 'tblTempUsageDetail_20' ) end [2025-01-29 09:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355308', 'tblTempVendorCDR_20' ) start [2025-01-29 09:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355308', 'tblTempVendorCDR_20' ) end [2025-01-29 09:09:17] Production.INFO: ProcessCDR(1,14355308,1,1,2) [2025-01-29 09:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14355308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 09:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14355308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 09:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14355308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 09:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14355308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 09:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355308', 'tblTempUsageDetail_20' ) start [2025-01-29 09:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355308', 'tblTempUsageDetail_20' ) end [2025-01-29 09:09:22] Production.ERROR: pbx prc_insertCDR start [2025-01-29 09:09:22] Production.ERROR: pbx prc_insertCDR end [2025-01-29 09:09:22] Production.INFO: ==10715== Releasing lock... [2025-01-29 09:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 09:09:22] Production.INFO: 34 MB #Memory Used# [2025-01-29 09:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 06:10:06 [end_date_ymd] => 2025-01-29 09:10:06 [RateCDR] => 1 ) [2025-01-29 09:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 06:10:06' and `end` < '2025-01-29 09:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 09:10:19] Production.INFO: count ==761 [2025-01-29 09:10:19] Production.ERROR: pbx CDR StartTime 2025-01-29 06:10:06 - End Time 2025-01-29 09:10:06 [2025-01-29 09:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 09:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355313', 'tblTempUsageDetail_20' ) start [2025-01-29 09:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355313', 'tblTempUsageDetail_20' ) end [2025-01-29 09:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355313', 'tblTempVendorCDR_20' ) start [2025-01-29 09:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355313', 'tblTempVendorCDR_20' ) end [2025-01-29 09:10:19] Production.INFO: ProcessCDR(1,14355313,1,1,2) [2025-01-29 09:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14355313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 09:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14355313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 09:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14355313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 09:10:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14355313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 09:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355313', 'tblTempUsageDetail_20' ) start [2025-01-29 09:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355313', 'tblTempUsageDetail_20' ) end [2025-01-29 09:10:24] Production.ERROR: pbx prc_insertCDR start [2025-01-29 09:10:24] Production.ERROR: pbx prc_insertCDR end [2025-01-29 09:10:24] Production.INFO: ==10789== Releasing lock... [2025-01-29 09:10:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 09:10:24] Production.INFO: 33.75 MB #Memory Used# [2025-01-29 09:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 06:11:06 [end_date_ymd] => 2025-01-29 09:11:06 [RateCDR] => 1 ) [2025-01-29 09:11:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 06:11:06' and `end` < '2025-01-29 09:11:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 09:11:19] Production.INFO: count ==872 [2025-01-29 09:11:20] Production.ERROR: pbx CDR StartTime 2025-01-29 06:11:06 - End Time 2025-01-29 09:11:06 [2025-01-29 09:11:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 09:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355319', 'tblTempUsageDetail_20' ) start [2025-01-29 09:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355319', 'tblTempUsageDetail_20' ) end [2025-01-29 09:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355319', 'tblTempVendorCDR_20' ) start [2025-01-29 09:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355319', 'tblTempVendorCDR_20' ) end [2025-01-29 09:11:20] Production.INFO: ProcessCDR(1,14355319,1,1,2) [2025-01-29 09:11:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14355319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 09:11:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14355319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 09:11:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14355319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 09:11:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14355319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 09:11:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355319', 'tblTempUsageDetail_20' ) start [2025-01-29 09:11:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355319', 'tblTempUsageDetail_20' ) end [2025-01-29 09:11:25] Production.ERROR: pbx prc_insertCDR start [2025-01-29 09:11:25] Production.ERROR: pbx prc_insertCDR end [2025-01-29 09:11:25] Production.INFO: ==10866== Releasing lock... [2025-01-29 09:11:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 09:11:25] Production.INFO: 35.5 MB #Memory Used# [2025-01-29 09:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 06:12:05 [end_date_ymd] => 2025-01-29 09:12:05 [RateCDR] => 1 ) [2025-01-29 09:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 06:12:05' and `end` < '2025-01-29 09:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 09:12:18] Production.INFO: count ==881 [2025-01-29 09:12:18] Production.ERROR: pbx CDR StartTime 2025-01-29 06:12:05 - End Time 2025-01-29 09:12:05 [2025-01-29 09:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 09:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355324', 'tblTempUsageDetail_20' ) start [2025-01-29 09:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355324', 'tblTempUsageDetail_20' ) end [2025-01-29 09:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355324', 'tblTempVendorCDR_20' ) start [2025-01-29 09:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355324', 'tblTempVendorCDR_20' ) end [2025-01-29 09:12:19] Production.INFO: ProcessCDR(1,14355324,1,1,2) [2025-01-29 09:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14355324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 09:12:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14355324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 09:12:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14355324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 09:12:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14355324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 09:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355324', 'tblTempUsageDetail_20' ) start [2025-01-29 09:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355324', 'tblTempUsageDetail_20' ) end [2025-01-29 09:12:24] Production.ERROR: pbx prc_insertCDR start [2025-01-29 09:12:24] Production.ERROR: pbx prc_insertCDR end [2025-01-29 09:12:24] Production.INFO: ==10944== Releasing lock... [2025-01-29 09:12:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 09:12:24] Production.INFO: 34.75 MB #Memory Used# [2025-01-29 09:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 06:13:06 [end_date_ymd] => 2025-01-29 09:13:06 [RateCDR] => 1 ) [2025-01-29 09:13:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 06:13:06' and `end` < '2025-01-29 09:13:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 09:13:19] Production.INFO: count ==890 [2025-01-29 09:13:19] Production.ERROR: pbx CDR StartTime 2025-01-29 06:13:06 - End Time 2025-01-29 09:13:06 [2025-01-29 09:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 09:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355329', 'tblTempUsageDetail_20' ) start [2025-01-29 09:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355329', 'tblTempUsageDetail_20' ) end [2025-01-29 09:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355329', 'tblTempVendorCDR_20' ) start [2025-01-29 09:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355329', 'tblTempVendorCDR_20' ) end [2025-01-29 09:13:19] Production.INFO: ProcessCDR(1,14355329,1,1,2) [2025-01-29 09:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14355329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 09:13:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14355329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 09:13:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14355329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 09:13:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14355329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 09:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355329', 'tblTempUsageDetail_20' ) start [2025-01-29 09:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355329', 'tblTempUsageDetail_20' ) end [2025-01-29 09:13:24] Production.ERROR: pbx prc_insertCDR start [2025-01-29 09:13:24] Production.ERROR: pbx prc_insertCDR end [2025-01-29 09:13:24] Production.INFO: ==11017== Releasing lock... [2025-01-29 09:13:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 09:13:24] Production.INFO: 35.25 MB #Memory Used# [2025-01-29 09:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 06:14:05 [end_date_ymd] => 2025-01-29 09:14:05 [RateCDR] => 1 ) [2025-01-29 09:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 06:14:05' and `end` < '2025-01-29 09:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 09:14:18] Production.INFO: count ==903 [2025-01-29 09:14:19] Production.ERROR: pbx CDR StartTime 2025-01-29 06:14:05 - End Time 2025-01-29 09:14:05 [2025-01-29 09:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 09:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355334', 'tblTempUsageDetail_20' ) start [2025-01-29 09:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355334', 'tblTempUsageDetail_20' ) end [2025-01-29 09:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355334', 'tblTempVendorCDR_20' ) start [2025-01-29 09:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355334', 'tblTempVendorCDR_20' ) end [2025-01-29 09:14:19] Production.INFO: ProcessCDR(1,14355334,1,1,2) [2025-01-29 09:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14355334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 09:14:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14355334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 09:14:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14355334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 09:14:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14355334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 09:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355334', 'tblTempUsageDetail_20' ) start [2025-01-29 09:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355334', 'tblTempUsageDetail_20' ) end [2025-01-29 09:14:24] Production.ERROR: pbx prc_insertCDR start [2025-01-29 09:14:24] Production.ERROR: pbx prc_insertCDR end [2025-01-29 09:14:24] Production.INFO: ==11129== Releasing lock... [2025-01-29 09:14:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 09:14:24] Production.INFO: 35.5 MB #Memory Used# [2025-01-29 09:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 06:15:06 [end_date_ymd] => 2025-01-29 09:15:06 [RateCDR] => 1 ) [2025-01-29 09:15:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 06:15:06' and `end` < '2025-01-29 09:15:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 09:15:18] Production.INFO: count ==942 [2025-01-29 09:15:19] Production.ERROR: pbx CDR StartTime 2025-01-29 06:15:06 - End Time 2025-01-29 09:15:06 [2025-01-29 09:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 09:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355339', 'tblTempUsageDetail_20' ) start [2025-01-29 09:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355339', 'tblTempUsageDetail_20' ) end [2025-01-29 09:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355339', 'tblTempVendorCDR_20' ) start [2025-01-29 09:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355339', 'tblTempVendorCDR_20' ) end [2025-01-29 09:15:19] Production.INFO: ProcessCDR(1,14355339,1,1,2) [2025-01-29 09:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14355339,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 09:15:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14355339,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 09:15:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14355339,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 09:15:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14355339,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 09:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355339', 'tblTempUsageDetail_20' ) start [2025-01-29 09:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355339', 'tblTempUsageDetail_20' ) end [2025-01-29 09:15:24] Production.ERROR: pbx prc_insertCDR start [2025-01-29 09:15:24] Production.ERROR: pbx prc_insertCDR end [2025-01-29 09:15:24] Production.INFO: ==11207== Releasing lock... [2025-01-29 09:15:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 09:15:24] Production.INFO: 35.75 MB #Memory Used# [2025-01-29 09:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 06:16:05 [end_date_ymd] => 2025-01-29 09:16:05 [RateCDR] => 1 ) [2025-01-29 09:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 06:16:05' and `end` < '2025-01-29 09:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 09:16:18] Production.INFO: count ==950 [2025-01-29 09:16:18] Production.ERROR: pbx CDR StartTime 2025-01-29 06:16:05 - End Time 2025-01-29 09:16:05 [2025-01-29 09:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 09:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355344', 'tblTempUsageDetail_20' ) start [2025-01-29 09:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355344', 'tblTempUsageDetail_20' ) end [2025-01-29 09:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355344', 'tblTempVendorCDR_20' ) start [2025-01-29 09:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355344', 'tblTempVendorCDR_20' ) end [2025-01-29 09:16:19] Production.INFO: ProcessCDR(1,14355344,1,1,2) [2025-01-29 09:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14355344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 09:16:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14355344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 09:16:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14355344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 09:16:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14355344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 09:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355344', 'tblTempUsageDetail_20' ) start [2025-01-29 09:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355344', 'tblTempUsageDetail_20' ) end [2025-01-29 09:16:24] Production.ERROR: pbx prc_insertCDR start [2025-01-29 09:16:24] Production.ERROR: pbx prc_insertCDR end [2025-01-29 09:16:24] Production.INFO: ==11284== Releasing lock... [2025-01-29 09:16:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 09:16:24] Production.INFO: 35.75 MB #Memory Used# [2025-01-29 09:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 06:17:06 [end_date_ymd] => 2025-01-29 09:17:06 [RateCDR] => 1 ) [2025-01-29 09:17:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 06:17:06' and `end` < '2025-01-29 09:17:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 09:17:19] Production.INFO: count ==961 [2025-01-29 09:17:19] Production.ERROR: pbx CDR StartTime 2025-01-29 06:17:06 - End Time 2025-01-29 09:17:06 [2025-01-29 09:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 09:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355349', 'tblTempUsageDetail_20' ) start [2025-01-29 09:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355349', 'tblTempUsageDetail_20' ) end [2025-01-29 09:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355349', 'tblTempVendorCDR_20' ) start [2025-01-29 09:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355349', 'tblTempVendorCDR_20' ) end [2025-01-29 09:17:19] Production.INFO: ProcessCDR(1,14355349,1,1,2) [2025-01-29 09:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14355349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 09:17:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14355349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 09:17:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14355349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 09:17:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14355349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 09:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355349', 'tblTempUsageDetail_20' ) start [2025-01-29 09:17:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355349', 'tblTempUsageDetail_20' ) end [2025-01-29 09:17:25] Production.ERROR: pbx prc_insertCDR start [2025-01-29 09:17:25] Production.ERROR: pbx prc_insertCDR end [2025-01-29 09:17:25] Production.INFO: ==11357== Releasing lock... [2025-01-29 09:17:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 09:17:25] Production.INFO: 35.75 MB #Memory Used# [2025-01-29 09:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 06:18:05 [end_date_ymd] => 2025-01-29 09:18:05 [RateCDR] => 1 ) [2025-01-29 09:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 06:18:05' and `end` < '2025-01-29 09:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 09:18:18] Production.INFO: count ==962 [2025-01-29 09:18:18] Production.ERROR: pbx CDR StartTime 2025-01-29 06:18:05 - End Time 2025-01-29 09:18:05 [2025-01-29 09:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 09:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355354', 'tblTempUsageDetail_20' ) start [2025-01-29 09:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355354', 'tblTempUsageDetail_20' ) end [2025-01-29 09:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355354', 'tblTempVendorCDR_20' ) start [2025-01-29 09:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355354', 'tblTempVendorCDR_20' ) end [2025-01-29 09:18:18] Production.INFO: ProcessCDR(1,14355354,1,1,2) [2025-01-29 09:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14355354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 09:18:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14355354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 09:18:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14355354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 09:18:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14355354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 09:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355354', 'tblTempUsageDetail_20' ) start [2025-01-29 09:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355354', 'tblTempUsageDetail_20' ) end [2025-01-29 09:18:23] Production.ERROR: pbx prc_insertCDR start [2025-01-29 09:18:23] Production.ERROR: pbx prc_insertCDR end [2025-01-29 09:18:23] Production.INFO: ==11434== Releasing lock... [2025-01-29 09:18:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 09:18:23] Production.INFO: 35.75 MB #Memory Used# [2025-01-29 09:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 06:19:05 [end_date_ymd] => 2025-01-29 09:19:05 [RateCDR] => 1 ) [2025-01-29 09:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 06:19:05' and `end` < '2025-01-29 09:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 09:19:18] Production.INFO: count ==974 [2025-01-29 09:19:18] Production.ERROR: pbx CDR StartTime 2025-01-29 06:19:05 - End Time 2025-01-29 09:19:05 [2025-01-29 09:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 09:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355359', 'tblTempUsageDetail_20' ) start [2025-01-29 09:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355359', 'tblTempUsageDetail_20' ) end [2025-01-29 09:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355359', 'tblTempVendorCDR_20' ) start [2025-01-29 09:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355359', 'tblTempVendorCDR_20' ) end [2025-01-29 09:19:18] Production.INFO: ProcessCDR(1,14355359,1,1,2) [2025-01-29 09:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14355359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 09:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14355359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 09:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14355359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 09:19:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14355359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 09:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355359', 'tblTempUsageDetail_20' ) start [2025-01-29 09:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355359', 'tblTempUsageDetail_20' ) end [2025-01-29 09:19:23] Production.ERROR: pbx prc_insertCDR start [2025-01-29 09:19:23] Production.ERROR: pbx prc_insertCDR end [2025-01-29 09:19:23] Production.INFO: ==11508== Releasing lock... [2025-01-29 09:19:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 09:19:23] Production.INFO: 36 MB #Memory Used# [2025-01-29 09:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 06:20:05 [end_date_ymd] => 2025-01-29 09:20:05 [RateCDR] => 1 ) [2025-01-29 09:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 06:20:05' and `end` < '2025-01-29 09:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 09:20:18] Production.INFO: count ==986 [2025-01-29 09:20:19] Production.ERROR: pbx CDR StartTime 2025-01-29 06:20:05 - End Time 2025-01-29 09:20:05 [2025-01-29 09:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 09:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355364', 'tblTempUsageDetail_20' ) start [2025-01-29 09:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355364', 'tblTempUsageDetail_20' ) end [2025-01-29 09:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355364', 'tblTempVendorCDR_20' ) start [2025-01-29 09:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355364', 'tblTempVendorCDR_20' ) end [2025-01-29 09:20:19] Production.INFO: ProcessCDR(1,14355364,1,1,2) [2025-01-29 09:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14355364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 09:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14355364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 09:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14355364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 09:20:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14355364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 09:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355364', 'tblTempUsageDetail_20' ) start [2025-01-29 09:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355364', 'tblTempUsageDetail_20' ) end [2025-01-29 09:20:24] Production.ERROR: pbx prc_insertCDR start [2025-01-29 09:20:24] Production.ERROR: pbx prc_insertCDR end [2025-01-29 09:20:24] Production.INFO: ==11589== Releasing lock... [2025-01-29 09:20:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 09:20:24] Production.INFO: 36.25 MB #Memory Used# [2025-01-29 09:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 06:21:05 [end_date_ymd] => 2025-01-29 09:21:05 [RateCDR] => 1 ) [2025-01-29 09:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 06:21:05' and `end` < '2025-01-29 09:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 09:21:18] Production.INFO: count ==1033 [2025-01-29 09:21:19] Production.ERROR: pbx CDR StartTime 2025-01-29 06:21:05 - End Time 2025-01-29 09:21:05 [2025-01-29 09:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 09:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355370', 'tblTempUsageDetail_20' ) start [2025-01-29 09:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355370', 'tblTempUsageDetail_20' ) end [2025-01-29 09:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355370', 'tblTempVendorCDR_20' ) start [2025-01-29 09:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355370', 'tblTempVendorCDR_20' ) end [2025-01-29 09:21:19] Production.INFO: ProcessCDR(1,14355370,1,1,2) [2025-01-29 09:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14355370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 09:21:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14355370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 09:21:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14355370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 09:21:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14355370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 09:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355370', 'tblTempUsageDetail_20' ) start [2025-01-29 09:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355370', 'tblTempUsageDetail_20' ) end [2025-01-29 09:21:24] Production.ERROR: pbx prc_insertCDR start [2025-01-29 09:21:24] Production.ERROR: pbx prc_insertCDR end [2025-01-29 09:21:24] Production.INFO: ==11675== Releasing lock... [2025-01-29 09:21:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 09:21:24] Production.INFO: 36.75 MB #Memory Used# [2025-01-29 09:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 06:22:06 [end_date_ymd] => 2025-01-29 09:22:06 [RateCDR] => 1 ) [2025-01-29 09:22:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 06:22:06' and `end` < '2025-01-29 09:22:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 09:22:19] Production.INFO: count ==1041 [2025-01-29 09:22:19] Production.ERROR: pbx CDR StartTime 2025-01-29 06:22:06 - End Time 2025-01-29 09:22:06 [2025-01-29 09:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 09:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355375', 'tblTempUsageDetail_20' ) start [2025-01-29 09:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355375', 'tblTempUsageDetail_20' ) end [2025-01-29 09:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355375', 'tblTempVendorCDR_20' ) start [2025-01-29 09:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355375', 'tblTempVendorCDR_20' ) end [2025-01-29 09:22:19] Production.INFO: ProcessCDR(1,14355375,1,1,2) [2025-01-29 09:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14355375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 09:22:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14355375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 09:22:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14355375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 09:22:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14355375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 09:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355375', 'tblTempUsageDetail_20' ) start [2025-01-29 09:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355375', 'tblTempUsageDetail_20' ) end [2025-01-29 09:22:24] Production.ERROR: pbx prc_insertCDR start [2025-01-29 09:22:24] Production.ERROR: pbx prc_insertCDR end [2025-01-29 09:22:24] Production.INFO: ==11756== Releasing lock... [2025-01-29 09:22:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 09:22:24] Production.INFO: 36.25 MB #Memory Used# [2025-01-29 09:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 06:23:05 [end_date_ymd] => 2025-01-29 09:23:05 [RateCDR] => 1 ) [2025-01-29 09:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 06:23:05' and `end` < '2025-01-29 09:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 09:23:18] Production.INFO: count ==1042 [2025-01-29 09:23:19] Production.ERROR: pbx CDR StartTime 2025-01-29 06:23:05 - End Time 2025-01-29 09:23:05 [2025-01-29 09:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 09:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355380', 'tblTempUsageDetail_20' ) start [2025-01-29 09:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355380', 'tblTempUsageDetail_20' ) end [2025-01-29 09:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355380', 'tblTempVendorCDR_20' ) start [2025-01-29 09:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355380', 'tblTempVendorCDR_20' ) end [2025-01-29 09:23:19] Production.INFO: ProcessCDR(1,14355380,1,1,2) [2025-01-29 09:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14355380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 09:23:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14355380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 09:23:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14355380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 09:23:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14355380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 09:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355380', 'tblTempUsageDetail_20' ) start [2025-01-29 09:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355380', 'tblTempUsageDetail_20' ) end [2025-01-29 09:23:23] Production.ERROR: pbx prc_insertCDR start [2025-01-29 09:23:23] Production.ERROR: pbx prc_insertCDR end [2025-01-29 09:23:23] Production.INFO: ==11832== Releasing lock... [2025-01-29 09:23:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 09:23:23] Production.INFO: 36.5 MB #Memory Used# [2025-01-29 09:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 06:24:06 [end_date_ymd] => 2025-01-29 09:24:06 [RateCDR] => 1 ) [2025-01-29 09:24:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 06:24:06' and `end` < '2025-01-29 09:24:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 09:24:19] Production.INFO: count ==1051 [2025-01-29 09:24:19] Production.ERROR: pbx CDR StartTime 2025-01-29 06:24:06 - End Time 2025-01-29 09:24:06 [2025-01-29 09:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 09:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355385', 'tblTempUsageDetail_20' ) start [2025-01-29 09:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355385', 'tblTempUsageDetail_20' ) end [2025-01-29 09:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355385', 'tblTempVendorCDR_20' ) start [2025-01-29 09:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355385', 'tblTempVendorCDR_20' ) end [2025-01-29 09:24:19] Production.INFO: ProcessCDR(1,14355385,1,1,2) [2025-01-29 09:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14355385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 09:24:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14355385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 09:24:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14355385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 09:24:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14355385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 09:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355385', 'tblTempUsageDetail_20' ) start [2025-01-29 09:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355385', 'tblTempUsageDetail_20' ) end [2025-01-29 09:24:24] Production.ERROR: pbx prc_insertCDR start [2025-01-29 09:24:24] Production.ERROR: pbx prc_insertCDR end [2025-01-29 09:24:24] Production.INFO: ==11911== Releasing lock... [2025-01-29 09:24:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 09:24:24] Production.INFO: 36.75 MB #Memory Used# [2025-01-29 09:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 06:25:05 [end_date_ymd] => 2025-01-29 09:25:05 [RateCDR] => 1 ) [2025-01-29 09:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 06:25:05' and `end` < '2025-01-29 09:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 09:25:18] Production.INFO: count ==1053 [2025-01-29 09:25:18] Production.ERROR: pbx CDR StartTime 2025-01-29 06:25:05 - End Time 2025-01-29 09:25:05 [2025-01-29 09:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355390', 'tblTempUsageDetail_20' ) start [2025-01-29 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355390', 'tblTempUsageDetail_20' ) end [2025-01-29 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355390', 'tblTempVendorCDR_20' ) start [2025-01-29 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355390', 'tblTempVendorCDR_20' ) end [2025-01-29 09:25:18] Production.INFO: ProcessCDR(1,14355390,1,1,2) [2025-01-29 09:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14355390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 09:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14355390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 09:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14355390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 09:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14355390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 09:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355390', 'tblTempUsageDetail_20' ) start [2025-01-29 09:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355390', 'tblTempUsageDetail_20' ) end [2025-01-29 09:25:23] Production.ERROR: pbx prc_insertCDR start [2025-01-29 09:25:23] Production.ERROR: pbx prc_insertCDR end [2025-01-29 09:25:23] Production.INFO: ==11986== Releasing lock... [2025-01-29 09:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 09:25:23] Production.INFO: 37 MB #Memory Used# [2025-01-29 09:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 06:26:05 [end_date_ymd] => 2025-01-29 09:26:05 [RateCDR] => 1 ) [2025-01-29 09:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 06:26:05' and `end` < '2025-01-29 09:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 09:26:19] Production.INFO: count ==1058 [2025-01-29 09:26:20] Production.ERROR: pbx CDR StartTime 2025-01-29 06:26:05 - End Time 2025-01-29 09:26:05 [2025-01-29 09:26:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 09:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355395', 'tblTempUsageDetail_20' ) start [2025-01-29 09:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355395', 'tblTempUsageDetail_20' ) end [2025-01-29 09:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355395', 'tblTempVendorCDR_20' ) start [2025-01-29 09:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355395', 'tblTempVendorCDR_20' ) end [2025-01-29 09:26:20] Production.INFO: ProcessCDR(1,14355395,1,1,2) [2025-01-29 09:26:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14355395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 09:26:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14355395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 09:26:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14355395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 09:26:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14355395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 09:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355395', 'tblTempUsageDetail_20' ) start [2025-01-29 09:26:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355395', 'tblTempUsageDetail_20' ) end [2025-01-29 09:26:25] Production.ERROR: pbx prc_insertCDR start [2025-01-29 09:26:25] Production.ERROR: pbx prc_insertCDR end [2025-01-29 09:26:25] Production.INFO: ==12060== Releasing lock... [2025-01-29 09:26:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 09:26:25] Production.INFO: 36.5 MB #Memory Used# [2025-01-29 09:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 06:27:05 [end_date_ymd] => 2025-01-29 09:27:05 [RateCDR] => 1 ) [2025-01-29 09:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 06:27:05' and `end` < '2025-01-29 09:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 09:27:17] Production.INFO: count ==1070 [2025-01-29 09:27:18] Production.ERROR: pbx CDR StartTime 2025-01-29 06:27:05 - End Time 2025-01-29 09:27:05 [2025-01-29 09:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 09:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355399', 'tblTempUsageDetail_20' ) start [2025-01-29 09:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355399', 'tblTempUsageDetail_20' ) end [2025-01-29 09:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355399', 'tblTempVendorCDR_20' ) start [2025-01-29 09:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355399', 'tblTempVendorCDR_20' ) end [2025-01-29 09:27:18] Production.INFO: ProcessCDR(1,14355399,1,1,2) [2025-01-29 09:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14355399,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 09:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14355399,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 09:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14355399,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 09:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14355399,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 09:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355399', 'tblTempUsageDetail_20' ) start [2025-01-29 09:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355399', 'tblTempUsageDetail_20' ) end [2025-01-29 09:27:23] Production.ERROR: pbx prc_insertCDR start [2025-01-29 09:27:23] Production.ERROR: pbx prc_insertCDR end [2025-01-29 09:27:23] Production.INFO: ==12136== Releasing lock... [2025-01-29 09:27:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 09:27:23] Production.INFO: 36.5 MB #Memory Used# [2025-01-29 09:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 06:28:05 [end_date_ymd] => 2025-01-29 09:28:05 [RateCDR] => 1 ) [2025-01-29 09:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 06:28:05' and `end` < '2025-01-29 09:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 09:28:18] Production.INFO: count ==1076 [2025-01-29 09:28:19] Production.ERROR: pbx CDR StartTime 2025-01-29 06:28:05 - End Time 2025-01-29 09:28:05 [2025-01-29 09:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 09:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355405', 'tblTempUsageDetail_20' ) start [2025-01-29 09:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355405', 'tblTempUsageDetail_20' ) end [2025-01-29 09:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355405', 'tblTempVendorCDR_20' ) start [2025-01-29 09:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355405', 'tblTempVendorCDR_20' ) end [2025-01-29 09:28:19] Production.INFO: ProcessCDR(1,14355405,1,1,2) [2025-01-29 09:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14355405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 09:28:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14355405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 09:28:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14355405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 09:28:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14355405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 09:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355405', 'tblTempUsageDetail_20' ) start [2025-01-29 09:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355405', 'tblTempUsageDetail_20' ) end [2025-01-29 09:28:24] Production.ERROR: pbx prc_insertCDR start [2025-01-29 09:28:24] Production.ERROR: pbx prc_insertCDR end [2025-01-29 09:28:24] Production.INFO: ==12212== Releasing lock... [2025-01-29 09:28:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 09:28:24] Production.INFO: 36.5 MB #Memory Used# [2025-01-29 09:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 06:29:05 [end_date_ymd] => 2025-01-29 09:29:05 [RateCDR] => 1 ) [2025-01-29 09:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 06:29:05' and `end` < '2025-01-29 09:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 09:29:18] Production.INFO: count ==1088 [2025-01-29 09:29:18] Production.ERROR: pbx CDR StartTime 2025-01-29 06:29:05 - End Time 2025-01-29 09:29:05 [2025-01-29 09:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 09:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355410', 'tblTempUsageDetail_20' ) start [2025-01-29 09:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355410', 'tblTempUsageDetail_20' ) end [2025-01-29 09:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355410', 'tblTempVendorCDR_20' ) start [2025-01-29 09:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355410', 'tblTempVendorCDR_20' ) end [2025-01-29 09:29:18] Production.INFO: ProcessCDR(1,14355410,1,1,2) [2025-01-29 09:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14355410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 09:29:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14355410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 09:29:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14355410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 09:29:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14355410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 09:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355410', 'tblTempUsageDetail_20' ) start [2025-01-29 09:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355410', 'tblTempUsageDetail_20' ) end [2025-01-29 09:29:24] Production.ERROR: pbx prc_insertCDR start [2025-01-29 09:29:24] Production.ERROR: pbx prc_insertCDR end [2025-01-29 09:29:24] Production.INFO: ==12322== Releasing lock... [2025-01-29 09:29:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 09:29:24] Production.INFO: 37 MB #Memory Used# [2025-01-29 09:30:07] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 06:30:07 [end_date_ymd] => 2025-01-29 09:30:07 [RateCDR] => 1 ) [2025-01-29 09:30:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 06:30:07' and `end` < '2025-01-29 09:30:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 09:30:20] Production.INFO: count ==1106 [2025-01-29 09:30:20] Production.ERROR: pbx CDR StartTime 2025-01-29 06:30:07 - End Time 2025-01-29 09:30:07 [2025-01-29 09:30:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 09:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355416', 'tblTempUsageDetail_20' ) start [2025-01-29 09:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355416', 'tblTempUsageDetail_20' ) end [2025-01-29 09:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355416', 'tblTempVendorCDR_20' ) start [2025-01-29 09:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355416', 'tblTempVendorCDR_20' ) end [2025-01-29 09:30:20] Production.INFO: ProcessCDR(1,14355416,1,1,2) [2025-01-29 09:30:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14355416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 09:30:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14355416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 09:30:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14355416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 09:30:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14355416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 09:30:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355416', 'tblTempUsageDetail_20' ) start [2025-01-29 09:30:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355416', 'tblTempUsageDetail_20' ) end [2025-01-29 09:30:26] Production.ERROR: pbx prc_insertCDR start [2025-01-29 09:30:26] Production.ERROR: pbx prc_insertCDR end [2025-01-29 09:30:26] Production.INFO: ==12406== Releasing lock... [2025-01-29 09:30:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 09:30:26] Production.INFO: 36.75 MB #Memory Used# [2025-01-29 09:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 06:31:05 [end_date_ymd] => 2025-01-29 09:31:05 [RateCDR] => 1 ) [2025-01-29 09:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 06:31:05' and `end` < '2025-01-29 09:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 09:31:18] Production.INFO: count ==1181 [2025-01-29 09:31:18] Production.ERROR: pbx CDR StartTime 2025-01-29 06:31:05 - End Time 2025-01-29 09:31:05 [2025-01-29 09:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 09:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355421', 'tblTempUsageDetail_20' ) start [2025-01-29 09:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355421', 'tblTempUsageDetail_20' ) end [2025-01-29 09:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355421', 'tblTempVendorCDR_20' ) start [2025-01-29 09:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355421', 'tblTempVendorCDR_20' ) end [2025-01-29 09:31:18] Production.INFO: ProcessCDR(1,14355421,1,1,2) [2025-01-29 09:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14355421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 09:31:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14355421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 09:31:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14355421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 09:31:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14355421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 09:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355421', 'tblTempUsageDetail_20' ) start [2025-01-29 09:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355421', 'tblTempUsageDetail_20' ) end [2025-01-29 09:31:23] Production.ERROR: pbx prc_insertCDR start [2025-01-29 09:31:23] Production.ERROR: pbx prc_insertCDR end [2025-01-29 09:31:23] Production.INFO: ==12479== Releasing lock... [2025-01-29 09:31:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 09:31:23] Production.INFO: 37.5 MB #Memory Used# [2025-01-29 09:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 06:32:05 [end_date_ymd] => 2025-01-29 09:32:05 [RateCDR] => 1 ) [2025-01-29 09:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 06:32:05' and `end` < '2025-01-29 09:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 09:32:23] Production.INFO: count ==1199 [2025-01-29 09:32:24] Production.ERROR: pbx CDR StartTime 2025-01-29 06:32:05 - End Time 2025-01-29 09:32:05 [2025-01-29 09:32:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 09:32:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355426', 'tblTempUsageDetail_20' ) start [2025-01-29 09:32:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355426', 'tblTempUsageDetail_20' ) end [2025-01-29 09:32:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355426', 'tblTempVendorCDR_20' ) start [2025-01-29 09:32:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355426', 'tblTempVendorCDR_20' ) end [2025-01-29 09:32:24] Production.INFO: ProcessCDR(1,14355426,1,1,2) [2025-01-29 09:32:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14355426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 09:32:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14355426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 09:32:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14355426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 09:32:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14355426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 09:32:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355426', 'tblTempUsageDetail_20' ) start [2025-01-29 09:32:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355426', 'tblTempUsageDetail_20' ) end [2025-01-29 09:32:29] Production.ERROR: pbx prc_insertCDR start [2025-01-29 09:32:29] Production.ERROR: pbx prc_insertCDR end [2025-01-29 09:32:29] Production.INFO: ==12555== Releasing lock... [2025-01-29 09:32:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 09:32:29] Production.INFO: 37.25 MB #Memory Used# [2025-01-29 09:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 06:33:05 [end_date_ymd] => 2025-01-29 09:33:05 [RateCDR] => 1 ) [2025-01-29 09:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 06:33:05' and `end` < '2025-01-29 09:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 09:33:25] Production.INFO: count ==1211 [2025-01-29 09:33:25] Production.ERROR: pbx CDR StartTime 2025-01-29 06:33:05 - End Time 2025-01-29 09:33:05 [2025-01-29 09:33:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 09:33:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355431', 'tblTempUsageDetail_20' ) start [2025-01-29 09:33:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355431', 'tblTempUsageDetail_20' ) end [2025-01-29 09:33:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355431', 'tblTempVendorCDR_20' ) start [2025-01-29 09:33:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355431', 'tblTempVendorCDR_20' ) end [2025-01-29 09:33:25] Production.INFO: ProcessCDR(1,14355431,1,1,2) [2025-01-29 09:33:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14355431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 09:33:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14355431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 09:33:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14355431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 09:33:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14355431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 09:33:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355431', 'tblTempUsageDetail_20' ) start [2025-01-29 09:33:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355431', 'tblTempUsageDetail_20' ) end [2025-01-29 09:33:31] Production.ERROR: pbx prc_insertCDR start [2025-01-29 09:33:31] Production.ERROR: pbx prc_insertCDR end [2025-01-29 09:33:31] Production.INFO: ==12630== Releasing lock... [2025-01-29 09:33:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 09:33:31] Production.INFO: 37.75 MB #Memory Used# [2025-01-29 09:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 06:34:05 [end_date_ymd] => 2025-01-29 09:34:05 [RateCDR] => 1 ) [2025-01-29 09:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 06:34:05' and `end` < '2025-01-29 09:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 09:34:18] Production.INFO: count ==1235 [2025-01-29 09:34:18] Production.ERROR: pbx CDR StartTime 2025-01-29 06:34:05 - End Time 2025-01-29 09:34:05 [2025-01-29 09:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 09:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355436', 'tblTempUsageDetail_20' ) start [2025-01-29 09:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355436', 'tblTempUsageDetail_20' ) end [2025-01-29 09:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355436', 'tblTempVendorCDR_20' ) start [2025-01-29 09:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355436', 'tblTempVendorCDR_20' ) end [2025-01-29 09:34:18] Production.INFO: ProcessCDR(1,14355436,1,1,2) [2025-01-29 09:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14355436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 09:34:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14355436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 09:34:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14355436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 09:34:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14355436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 09:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355436', 'tblTempUsageDetail_20' ) start [2025-01-29 09:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355436', 'tblTempUsageDetail_20' ) end [2025-01-29 09:34:24] Production.ERROR: pbx prc_insertCDR start [2025-01-29 09:34:24] Production.ERROR: pbx prc_insertCDR end [2025-01-29 09:34:24] Production.INFO: ==12708== Releasing lock... [2025-01-29 09:34:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 09:34:24] Production.INFO: 38 MB #Memory Used# [2025-01-29 09:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 06:35:06 [end_date_ymd] => 2025-01-29 09:35:06 [RateCDR] => 1 ) [2025-01-29 09:35:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 06:35:06' and `end` < '2025-01-29 09:35:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 09:35:20] Production.INFO: count ==1247 [2025-01-29 09:35:20] Production.ERROR: pbx CDR StartTime 2025-01-29 06:35:06 - End Time 2025-01-29 09:35:06 [2025-01-29 09:35:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 09:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355441', 'tblTempUsageDetail_20' ) start [2025-01-29 09:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355441', 'tblTempUsageDetail_20' ) end [2025-01-29 09:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355441', 'tblTempVendorCDR_20' ) start [2025-01-29 09:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355441', 'tblTempVendorCDR_20' ) end [2025-01-29 09:35:20] Production.INFO: ProcessCDR(1,14355441,1,1,2) [2025-01-29 09:35:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14355441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 09:35:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14355441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 09:35:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14355441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 09:35:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14355441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 09:35:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355441', 'tblTempUsageDetail_20' ) start [2025-01-29 09:35:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355441', 'tblTempUsageDetail_20' ) end [2025-01-29 09:35:25] Production.ERROR: pbx prc_insertCDR start [2025-01-29 09:35:25] Production.ERROR: pbx prc_insertCDR end [2025-01-29 09:35:25] Production.INFO: ==12781== Releasing lock... [2025-01-29 09:35:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 09:35:25] Production.INFO: 37.75 MB #Memory Used# [2025-01-29 09:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 06:36:05 [end_date_ymd] => 2025-01-29 09:36:05 [RateCDR] => 1 ) [2025-01-29 09:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 06:36:05' and `end` < '2025-01-29 09:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 09:36:20] Production.INFO: count ==1256 [2025-01-29 09:36:20] Production.ERROR: pbx CDR StartTime 2025-01-29 06:36:05 - End Time 2025-01-29 09:36:05 [2025-01-29 09:36:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 09:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355446', 'tblTempUsageDetail_20' ) start [2025-01-29 09:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355446', 'tblTempUsageDetail_20' ) end [2025-01-29 09:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355446', 'tblTempVendorCDR_20' ) start [2025-01-29 09:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355446', 'tblTempVendorCDR_20' ) end [2025-01-29 09:36:20] Production.INFO: ProcessCDR(1,14355446,1,1,2) [2025-01-29 09:36:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14355446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 09:36:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14355446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 09:36:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14355446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 09:36:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14355446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 09:36:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355446', 'tblTempUsageDetail_20' ) start [2025-01-29 09:36:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355446', 'tblTempUsageDetail_20' ) end [2025-01-29 09:36:26] Production.ERROR: pbx prc_insertCDR start [2025-01-29 09:36:26] Production.ERROR: pbx prc_insertCDR end [2025-01-29 09:36:26] Production.INFO: ==12861== Releasing lock... [2025-01-29 09:36:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 09:36:26] Production.INFO: 38 MB #Memory Used# [2025-01-29 09:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 06:37:05 [end_date_ymd] => 2025-01-29 09:37:05 [RateCDR] => 1 ) [2025-01-29 09:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 06:37:05' and `end` < '2025-01-29 09:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 09:37:18] Production.INFO: count ==1264 [2025-01-29 09:37:19] Production.ERROR: pbx CDR StartTime 2025-01-29 06:37:05 - End Time 2025-01-29 09:37:05 [2025-01-29 09:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 09:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355451', 'tblTempUsageDetail_20' ) start [2025-01-29 09:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355451', 'tblTempUsageDetail_20' ) end [2025-01-29 09:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355451', 'tblTempVendorCDR_20' ) start [2025-01-29 09:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355451', 'tblTempVendorCDR_20' ) end [2025-01-29 09:37:19] Production.INFO: ProcessCDR(1,14355451,1,1,2) [2025-01-29 09:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14355451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 09:37:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14355451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 09:37:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14355451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 09:37:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14355451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 09:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355451', 'tblTempUsageDetail_20' ) start [2025-01-29 09:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355451', 'tblTempUsageDetail_20' ) end [2025-01-29 09:37:24] Production.ERROR: pbx prc_insertCDR start [2025-01-29 09:37:24] Production.ERROR: pbx prc_insertCDR end [2025-01-29 09:37:24] Production.INFO: ==12940== Releasing lock... [2025-01-29 09:37:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 09:37:24] Production.INFO: 38.25 MB #Memory Used# [2025-01-29 09:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 06:38:05 [end_date_ymd] => 2025-01-29 09:38:05 [RateCDR] => 1 ) [2025-01-29 09:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 06:38:05' and `end` < '2025-01-29 09:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 09:38:23] Production.INFO: count ==1282 [2025-01-29 09:38:23] Production.ERROR: pbx CDR StartTime 2025-01-29 06:38:05 - End Time 2025-01-29 09:38:05 [2025-01-29 09:38:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 09:38:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355456', 'tblTempUsageDetail_20' ) start [2025-01-29 09:38:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355456', 'tblTempUsageDetail_20' ) end [2025-01-29 09:38:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355456', 'tblTempVendorCDR_20' ) start [2025-01-29 09:38:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355456', 'tblTempVendorCDR_20' ) end [2025-01-29 09:38:23] Production.INFO: ProcessCDR(1,14355456,1,1,2) [2025-01-29 09:38:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14355456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 09:38:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14355456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 09:38:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14355456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 09:38:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14355456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 09:38:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355456', 'tblTempUsageDetail_20' ) start [2025-01-29 09:38:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355456', 'tblTempUsageDetail_20' ) end [2025-01-29 09:38:29] Production.ERROR: pbx prc_insertCDR start [2025-01-29 09:38:29] Production.ERROR: pbx prc_insertCDR end [2025-01-29 09:38:29] Production.INFO: ==13019== Releasing lock... [2025-01-29 09:38:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 09:38:29] Production.INFO: 38 MB #Memory Used# [2025-01-29 09:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 06:39:06 [end_date_ymd] => 2025-01-29 09:39:06 [RateCDR] => 1 ) [2025-01-29 09:39:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 06:39:06' and `end` < '2025-01-29 09:39:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 09:39:22] Production.INFO: count ==1296 [2025-01-29 09:39:23] Production.ERROR: pbx CDR StartTime 2025-01-29 06:39:06 - End Time 2025-01-29 09:39:06 [2025-01-29 09:39:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 09:39:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355461', 'tblTempUsageDetail_20' ) start [2025-01-29 09:39:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355461', 'tblTempUsageDetail_20' ) end [2025-01-29 09:39:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355461', 'tblTempVendorCDR_20' ) start [2025-01-29 09:39:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355461', 'tblTempVendorCDR_20' ) end [2025-01-29 09:39:23] Production.INFO: ProcessCDR(1,14355461,1,1,2) [2025-01-29 09:39:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14355461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 09:39:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14355461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 09:39:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14355461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 09:39:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14355461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 09:39:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355461', 'tblTempUsageDetail_20' ) start [2025-01-29 09:39:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355461', 'tblTempUsageDetail_20' ) end [2025-01-29 09:39:28] Production.ERROR: pbx prc_insertCDR start [2025-01-29 09:39:28] Production.ERROR: pbx prc_insertCDR end [2025-01-29 09:39:28] Production.INFO: ==13098== Releasing lock... [2025-01-29 09:39:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 09:39:28] Production.INFO: 38.25 MB #Memory Used# [2025-01-29 09:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 06:40:06 [end_date_ymd] => 2025-01-29 09:40:06 [RateCDR] => 1 ) [2025-01-29 09:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 06:40:06' and `end` < '2025-01-29 09:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 09:40:19] Production.INFO: count ==1310 [2025-01-29 09:40:19] Production.ERROR: pbx CDR StartTime 2025-01-29 06:40:06 - End Time 2025-01-29 09:40:06 [2025-01-29 09:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 09:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355467', 'tblTempUsageDetail_20' ) start [2025-01-29 09:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355467', 'tblTempUsageDetail_20' ) end [2025-01-29 09:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355467', 'tblTempVendorCDR_20' ) start [2025-01-29 09:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355467', 'tblTempVendorCDR_20' ) end [2025-01-29 09:40:20] Production.INFO: ProcessCDR(1,14355467,1,1,2) [2025-01-29 09:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14355467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 09:40:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14355467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 09:40:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14355467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 09:40:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14355467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 09:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355467', 'tblTempUsageDetail_20' ) start [2025-01-29 09:40:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355467', 'tblTempUsageDetail_20' ) end [2025-01-29 09:40:25] Production.ERROR: pbx prc_insertCDR start [2025-01-29 09:40:25] Production.ERROR: pbx prc_insertCDR end [2025-01-29 09:40:25] Production.INFO: ==13185== Releasing lock... [2025-01-29 09:40:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 09:40:25] Production.INFO: 38.25 MB #Memory Used# [2025-01-29 09:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 06:41:06 [end_date_ymd] => 2025-01-29 09:41:06 [RateCDR] => 1 ) [2025-01-29 09:41:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 06:41:06' and `end` < '2025-01-29 09:41:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 09:41:21] Production.INFO: count ==1367 [2025-01-29 09:41:22] Production.ERROR: pbx CDR StartTime 2025-01-29 06:41:06 - End Time 2025-01-29 09:41:06 [2025-01-29 09:41:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 09:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355472', 'tblTempUsageDetail_20' ) start [2025-01-29 09:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355472', 'tblTempUsageDetail_20' ) end [2025-01-29 09:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355472', 'tblTempVendorCDR_20' ) start [2025-01-29 09:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355472', 'tblTempVendorCDR_20' ) end [2025-01-29 09:41:22] Production.INFO: ProcessCDR(1,14355472,1,1,2) [2025-01-29 09:41:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14355472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 09:41:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14355472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 09:41:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14355472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 09:41:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14355472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 09:41:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355472', 'tblTempUsageDetail_20' ) start [2025-01-29 09:41:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355472', 'tblTempUsageDetail_20' ) end [2025-01-29 09:41:27] Production.ERROR: pbx prc_insertCDR start [2025-01-29 09:41:27] Production.ERROR: pbx prc_insertCDR end [2025-01-29 09:41:27] Production.INFO: ==13268== Releasing lock... [2025-01-29 09:41:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 09:41:27] Production.INFO: 38.75 MB #Memory Used# [2025-01-29 09:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 06:42:06 [end_date_ymd] => 2025-01-29 09:42:06 [RateCDR] => 1 ) [2025-01-29 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-01-29 06:42:06' and `end` < '2025-01-29 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-01-29 09:42:19] Production.INFO: count ==1375 [2025-01-29 09:42:20] Production.ERROR: pbx CDR StartTime 2025-01-29 06:42:06 - End Time 2025-01-29 09:42:06 [2025-01-29 09:42:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 09:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355477', 'tblTempUsageDetail_20' ) start [2025-01-29 09:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355477', 'tblTempUsageDetail_20' ) end [2025-01-29 09:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355477', 'tblTempVendorCDR_20' ) start [2025-01-29 09:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355477', 'tblTempVendorCDR_20' ) end [2025-01-29 09:42:20] Production.INFO: ProcessCDR(1,14355477,1,1,2) [2025-01-29 09:42:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14355477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 09:42:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14355477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 09:42:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14355477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 09:42:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14355477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 09:42:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355477', 'tblTempUsageDetail_20' ) start [2025-01-29 09:42:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355477', 'tblTempUsageDetail_20' ) end [2025-01-29 09:42:25] Production.ERROR: pbx prc_insertCDR start [2025-01-29 09:42:25] Production.ERROR: pbx prc_insertCDR end [2025-01-29 09:42:25] Production.INFO: ==13352== Releasing lock... [2025-01-29 09:42:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 09:42:25] Production.INFO: 38.75 MB #Memory Used# [2025-01-29 09:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 06:43:06 [end_date_ymd] => 2025-01-29 09:43:06 [RateCDR] => 1 ) [2025-01-29 09:43:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 06:43:06' and `end` < '2025-01-29 09:43:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 09:43:19] Production.INFO: count ==1392 [2025-01-29 09:43:19] Production.ERROR: pbx CDR StartTime 2025-01-29 06:43:06 - End Time 2025-01-29 09:43:06 [2025-01-29 09:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 09:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355482', 'tblTempUsageDetail_20' ) start [2025-01-29 09:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355482', 'tblTempUsageDetail_20' ) end [2025-01-29 09:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355482', 'tblTempVendorCDR_20' ) start [2025-01-29 09:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355482', 'tblTempVendorCDR_20' ) end [2025-01-29 09:43:20] Production.INFO: ProcessCDR(1,14355482,1,1,2) [2025-01-29 09:43:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14355482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 09:43:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14355482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 09:43:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14355482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 09:43:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14355482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 09:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355482', 'tblTempUsageDetail_20' ) start [2025-01-29 09:43:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355482', 'tblTempUsageDetail_20' ) end [2025-01-29 09:43:25] Production.ERROR: pbx prc_insertCDR start [2025-01-29 09:43:25] Production.ERROR: pbx prc_insertCDR end [2025-01-29 09:43:25] Production.INFO: ==13433== Releasing lock... [2025-01-29 09:43:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 09:43:25] Production.INFO: 38.75 MB #Memory Used# [2025-01-29 09:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 06:44:05 [end_date_ymd] => 2025-01-29 09:44:05 [RateCDR] => 1 ) [2025-01-29 09:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 06:44:05' and `end` < '2025-01-29 09:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 09:44:25] Production.INFO: count ==1398 [2025-01-29 09:44:26] Production.ERROR: pbx CDR StartTime 2025-01-29 06:44:05 - End Time 2025-01-29 09:44:05 [2025-01-29 09:44:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 09:44:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355487', 'tblTempUsageDetail_20' ) start [2025-01-29 09:44:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355487', 'tblTempUsageDetail_20' ) end [2025-01-29 09:44:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355487', 'tblTempVendorCDR_20' ) start [2025-01-29 09:44:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355487', 'tblTempVendorCDR_20' ) end [2025-01-29 09:44:26] Production.INFO: ProcessCDR(1,14355487,1,1,2) [2025-01-29 09:44:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14355487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 09:44:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14355487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 09:44:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14355487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 09:44:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14355487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 09:44:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355487', 'tblTempUsageDetail_20' ) start [2025-01-29 09:44:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355487', 'tblTempUsageDetail_20' ) end [2025-01-29 09:44:31] Production.ERROR: pbx prc_insertCDR start [2025-01-29 09:44:31] Production.ERROR: pbx prc_insertCDR end [2025-01-29 09:44:31] Production.INFO: ==13514== Releasing lock... [2025-01-29 09:44:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 09:44:31] Production.INFO: 39 MB #Memory Used# [2025-01-29 09:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 06:45:05 [end_date_ymd] => 2025-01-29 09:45:05 [RateCDR] => 1 ) [2025-01-29 09:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 06:45:05' and `end` < '2025-01-29 09:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 09:45:23] Production.INFO: count ==1414 [2025-01-29 09:45:24] Production.ERROR: pbx CDR StartTime 2025-01-29 06:45:05 - End Time 2025-01-29 09:45:05 [2025-01-29 09:45:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 09:45:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355492', 'tblTempUsageDetail_20' ) start [2025-01-29 09:45:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355492', 'tblTempUsageDetail_20' ) end [2025-01-29 09:45:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355492', 'tblTempVendorCDR_20' ) start [2025-01-29 09:45:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355492', 'tblTempVendorCDR_20' ) end [2025-01-29 09:45:24] Production.INFO: ProcessCDR(1,14355492,1,1,2) [2025-01-29 09:45:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14355492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 09:45:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14355492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 09:45:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14355492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 09:45:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14355492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 09:45:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355492', 'tblTempUsageDetail_20' ) start [2025-01-29 09:45:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355492', 'tblTempUsageDetail_20' ) end [2025-01-29 09:45:29] Production.ERROR: pbx prc_insertCDR start [2025-01-29 09:45:29] Production.ERROR: pbx prc_insertCDR end [2025-01-29 09:45:29] Production.INFO: ==13640== Releasing lock... [2025-01-29 09:45:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 09:45:29] Production.INFO: 39 MB #Memory Used# [2025-01-29 09:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 06:46:05 [end_date_ymd] => 2025-01-29 09:46:05 [RateCDR] => 1 ) [2025-01-29 09:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 06:46:05' and `end` < '2025-01-29 09:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 09:46:20] Production.INFO: count ==1417 [2025-01-29 09:46:21] Production.ERROR: pbx CDR StartTime 2025-01-29 06:46:05 - End Time 2025-01-29 09:46:05 [2025-01-29 09:46:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 09:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355497', 'tblTempUsageDetail_20' ) start [2025-01-29 09:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355497', 'tblTempUsageDetail_20' ) end [2025-01-29 09:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355497', 'tblTempVendorCDR_20' ) start [2025-01-29 09:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355497', 'tblTempVendorCDR_20' ) end [2025-01-29 09:46:21] Production.INFO: ProcessCDR(1,14355497,1,1,2) [2025-01-29 09:46:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14355497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 09:46:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14355497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 09:46:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14355497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 09:46:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14355497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 09:46:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355497', 'tblTempUsageDetail_20' ) start [2025-01-29 09:46:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355497', 'tblTempUsageDetail_20' ) end [2025-01-29 09:46:26] Production.ERROR: pbx prc_insertCDR start [2025-01-29 09:46:26] Production.ERROR: pbx prc_insertCDR end [2025-01-29 09:46:26] Production.INFO: ==13725== Releasing lock... [2025-01-29 09:46:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 09:46:26] Production.INFO: 38.75 MB #Memory Used# [2025-01-29 09:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 06:47:05 [end_date_ymd] => 2025-01-29 09:47:05 [RateCDR] => 1 ) [2025-01-29 09:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 06:47:05' and `end` < '2025-01-29 09:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 09:47:19] Production.INFO: count ==1420 [2025-01-29 09:47:19] Production.ERROR: pbx CDR StartTime 2025-01-29 06:47:05 - End Time 2025-01-29 09:47:05 [2025-01-29 09:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 09:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355502', 'tblTempUsageDetail_20' ) start [2025-01-29 09:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355502', 'tblTempUsageDetail_20' ) end [2025-01-29 09:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355502', 'tblTempVendorCDR_20' ) start [2025-01-29 09:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355502', 'tblTempVendorCDR_20' ) end [2025-01-29 09:47:19] Production.INFO: ProcessCDR(1,14355502,1,1,2) [2025-01-29 09:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14355502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 09:47:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14355502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 09:47:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14355502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 09:47:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14355502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 09:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355502', 'tblTempUsageDetail_20' ) start [2025-01-29 09:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355502', 'tblTempUsageDetail_20' ) end [2025-01-29 09:47:24] Production.ERROR: pbx prc_insertCDR start [2025-01-29 09:47:24] Production.ERROR: pbx prc_insertCDR end [2025-01-29 09:47:24] Production.INFO: ==13811== Releasing lock... [2025-01-29 09:47:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 09:47:24] Production.INFO: 38.5 MB #Memory Used# [2025-01-29 09:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 06:48:06 [end_date_ymd] => 2025-01-29 09:48:06 [RateCDR] => 1 ) [2025-01-29 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-01-29 06:48:06' and `end` < '2025-01-29 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-01-29 09:48:21] Production.INFO: count ==1428 [2025-01-29 09:48:22] Production.ERROR: pbx CDR StartTime 2025-01-29 06:48:06 - End Time 2025-01-29 09:48:06 [2025-01-29 09:48:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 09:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355507', 'tblTempUsageDetail_20' ) start [2025-01-29 09:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355507', 'tblTempUsageDetail_20' ) end [2025-01-29 09:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355507', 'tblTempVendorCDR_20' ) start [2025-01-29 09:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355507', 'tblTempVendorCDR_20' ) end [2025-01-29 09:48:22] Production.INFO: ProcessCDR(1,14355507,1,1,2) [2025-01-29 09:48:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14355507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 09:48:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14355507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 09:48:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14355507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 09:48:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14355507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 09:48:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355507', 'tblTempUsageDetail_20' ) start [2025-01-29 09:48:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355507', 'tblTempUsageDetail_20' ) end [2025-01-29 09:48:26] Production.ERROR: pbx prc_insertCDR start [2025-01-29 09:48:26] Production.ERROR: pbx prc_insertCDR end [2025-01-29 09:48:26] Production.INFO: ==13898== Releasing lock... [2025-01-29 09:48:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 09:48:26] Production.INFO: 39.5 MB #Memory Used# [2025-01-29 09:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 06:49:05 [end_date_ymd] => 2025-01-29 09:49:05 [RateCDR] => 1 ) [2025-01-29 09:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 06:49:05' and `end` < '2025-01-29 09:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 09:49:19] Production.INFO: count ==1454 [2025-01-29 09:49:19] Production.ERROR: pbx CDR StartTime 2025-01-29 06:49:05 - End Time 2025-01-29 09:49:05 [2025-01-29 09:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 09:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355512', 'tblTempUsageDetail_20' ) start [2025-01-29 09:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355512', 'tblTempUsageDetail_20' ) end [2025-01-29 09:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355512', 'tblTempVendorCDR_20' ) start [2025-01-29 09:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355512', 'tblTempVendorCDR_20' ) end [2025-01-29 09:49:19] Production.INFO: ProcessCDR(1,14355512,1,1,2) [2025-01-29 09:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14355512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 09:49:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14355512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 09:49:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14355512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 09:49:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14355512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 09:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355512', 'tblTempUsageDetail_20' ) start [2025-01-29 09:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355512', 'tblTempUsageDetail_20' ) end [2025-01-29 09:49:23] Production.ERROR: pbx prc_insertCDR start [2025-01-29 09:49:23] Production.ERROR: pbx prc_insertCDR end [2025-01-29 09:49:23] Production.INFO: ==13986== Releasing lock... [2025-01-29 09:49:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 09:49:23] Production.INFO: 38.75 MB #Memory Used# [2025-01-29 09:50:07] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 06:50:07 [end_date_ymd] => 2025-01-29 09:50:07 [RateCDR] => 1 ) [2025-01-29 09:50:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 06:50:07' and `end` < '2025-01-29 09:50:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 09:50:20] Production.INFO: count ==1474 [2025-01-29 09:50:20] Production.ERROR: pbx CDR StartTime 2025-01-29 06:50:07 - End Time 2025-01-29 09:50:07 [2025-01-29 09:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 09:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355518', 'tblTempUsageDetail_20' ) start [2025-01-29 09:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355518', 'tblTempUsageDetail_20' ) end [2025-01-29 09:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355518', 'tblTempVendorCDR_20' ) start [2025-01-29 09:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355518', 'tblTempVendorCDR_20' ) end [2025-01-29 09:50:20] Production.INFO: ProcessCDR(1,14355518,1,1,2) [2025-01-29 09:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14355518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 09:50:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14355518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 09:50:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14355518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 09:50:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14355518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 09:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355518', 'tblTempUsageDetail_20' ) start [2025-01-29 09:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355518', 'tblTempUsageDetail_20' ) end [2025-01-29 09:50:25] Production.ERROR: pbx prc_insertCDR start [2025-01-29 09:50:26] Production.ERROR: pbx prc_insertCDR end [2025-01-29 09:50:26] Production.INFO: ==14071== Releasing lock... [2025-01-29 09:50:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 09:50:26] Production.INFO: 39 MB #Memory Used# [2025-01-29 09:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 06:51:05 [end_date_ymd] => 2025-01-29 09:51:05 [RateCDR] => 1 ) [2025-01-29 09:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 06:51:05' and `end` < '2025-01-29 09:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 09:51:19] Production.INFO: count ==1536 [2025-01-29 09:51:20] Production.ERROR: pbx CDR StartTime 2025-01-29 06:51:05 - End Time 2025-01-29 09:51:05 [2025-01-29 09:51:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 09:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355523', 'tblTempUsageDetail_20' ) start [2025-01-29 09:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355523', 'tblTempUsageDetail_20' ) end [2025-01-29 09:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355523', 'tblTempVendorCDR_20' ) start [2025-01-29 09:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355523', 'tblTempVendorCDR_20' ) end [2025-01-29 09:51:20] Production.INFO: ProcessCDR(1,14355523,1,1,2) [2025-01-29 09:51:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14355523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 09:51:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14355523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 09:51:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14355523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 09:51:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14355523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 09:51:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355523', 'tblTempUsageDetail_20' ) start [2025-01-29 09:51:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355523', 'tblTempUsageDetail_20' ) end [2025-01-29 09:51:25] Production.ERROR: pbx prc_insertCDR start [2025-01-29 09:51:25] Production.ERROR: pbx prc_insertCDR end [2025-01-29 09:51:25] Production.INFO: ==14154== Releasing lock... [2025-01-29 09:51:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 09:51:25] Production.INFO: 39.5 MB #Memory Used# [2025-01-29 09:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 06:52:06 [end_date_ymd] => 2025-01-29 09:52:06 [RateCDR] => 1 ) [2025-01-29 09:52:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 06:52:06' and `end` < '2025-01-29 09:52:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 09:52:23] Production.INFO: count ==1549 [2025-01-29 09:52:24] Production.ERROR: pbx CDR StartTime 2025-01-29 06:52:06 - End Time 2025-01-29 09:52:06 [2025-01-29 09:52:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 09:52:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355528', 'tblTempUsageDetail_20' ) start [2025-01-29 09:52:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355528', 'tblTempUsageDetail_20' ) end [2025-01-29 09:52:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355528', 'tblTempVendorCDR_20' ) start [2025-01-29 09:52:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355528', 'tblTempVendorCDR_20' ) end [2025-01-29 09:52:24] Production.INFO: ProcessCDR(1,14355528,1,1,2) [2025-01-29 09:52:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14355528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 09:52:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14355528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 09:52:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14355528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 09:52:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14355528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 09:52:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355528', 'tblTempUsageDetail_20' ) start [2025-01-29 09:52:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355528', 'tblTempUsageDetail_20' ) end [2025-01-29 09:52:29] Production.ERROR: pbx prc_insertCDR start [2025-01-29 09:52:29] Production.ERROR: pbx prc_insertCDR end [2025-01-29 09:52:29] Production.INFO: ==14239== Releasing lock... [2025-01-29 09:52:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 09:52:29] Production.INFO: 39.75 MB #Memory Used# [2025-01-29 09:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 06:53:05 [end_date_ymd] => 2025-01-29 09:53:05 [RateCDR] => 1 ) [2025-01-29 09:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 06:53:05' and `end` < '2025-01-29 09:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 09:53:21] Production.INFO: count ==1566 [2025-01-29 09:53:22] Production.ERROR: pbx CDR StartTime 2025-01-29 06:53:05 - End Time 2025-01-29 09:53:05 [2025-01-29 09:53:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 09:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355533', 'tblTempUsageDetail_20' ) start [2025-01-29 09:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355533', 'tblTempUsageDetail_20' ) end [2025-01-29 09:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355533', 'tblTempVendorCDR_20' ) start [2025-01-29 09:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355533', 'tblTempVendorCDR_20' ) end [2025-01-29 09:53:22] Production.INFO: ProcessCDR(1,14355533,1,1,2) [2025-01-29 09:53:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14355533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 09:53:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14355533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 09:53:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14355533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 09:53:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14355533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 09:53:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355533', 'tblTempUsageDetail_20' ) start [2025-01-29 09:53:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355533', 'tblTempUsageDetail_20' ) end [2025-01-29 09:53:27] Production.ERROR: pbx prc_insertCDR start [2025-01-29 09:53:27] Production.ERROR: pbx prc_insertCDR end [2025-01-29 09:53:27] Production.INFO: ==14320== Releasing lock... [2025-01-29 09:53:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 09:53:27] Production.INFO: 39.75 MB #Memory Used# [2025-01-29 09:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 06:54:06 [end_date_ymd] => 2025-01-29 09:54:06 [RateCDR] => 1 ) [2025-01-29 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-01-29 06:54:06' and `end` < '2025-01-29 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-01-29 09:54:22] Production.INFO: count ==1579 [2025-01-29 09:54:23] Production.ERROR: pbx CDR StartTime 2025-01-29 06:54:06 - End Time 2025-01-29 09:54:06 [2025-01-29 09:54:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 09:54:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355538', 'tblTempUsageDetail_20' ) start [2025-01-29 09:54:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355538', 'tblTempUsageDetail_20' ) end [2025-01-29 09:54:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355538', 'tblTempVendorCDR_20' ) start [2025-01-29 09:54:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355538', 'tblTempVendorCDR_20' ) end [2025-01-29 09:54:23] Production.INFO: ProcessCDR(1,14355538,1,1,2) [2025-01-29 09:54:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14355538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 09:54:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14355538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 09:54:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14355538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 09:54:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14355538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 09:54:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355538', 'tblTempUsageDetail_20' ) start [2025-01-29 09:54:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355538', 'tblTempUsageDetail_20' ) end [2025-01-29 09:54:29] Production.ERROR: pbx prc_insertCDR start [2025-01-29 09:54:29] Production.ERROR: pbx prc_insertCDR end [2025-01-29 09:54:29] Production.INFO: ==14413== Releasing lock... [2025-01-29 09:54:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 09:54:29] Production.INFO: 40 MB #Memory Used# [2025-01-29 09:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 06:55:05 [end_date_ymd] => 2025-01-29 09:55:05 [RateCDR] => 1 ) [2025-01-29 09:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 06:55:05' and `end` < '2025-01-29 09:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 09:55:22] Production.INFO: count ==1603 [2025-01-29 09:55:23] Production.ERROR: pbx CDR StartTime 2025-01-29 06:55:05 - End Time 2025-01-29 09:55:05 [2025-01-29 09:55:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 09:55:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355543', 'tblTempUsageDetail_20' ) start [2025-01-29 09:55:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355543', 'tblTempUsageDetail_20' ) end [2025-01-29 09:55:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355543', 'tblTempVendorCDR_20' ) start [2025-01-29 09:55:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355543', 'tblTempVendorCDR_20' ) end [2025-01-29 09:55:23] Production.INFO: ProcessCDR(1,14355543,1,1,2) [2025-01-29 09:55:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14355543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 09:55:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14355543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 09:55:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14355543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 09:55:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14355543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 09:55:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355543', 'tblTempUsageDetail_20' ) start [2025-01-29 09:55:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355543', 'tblTempUsageDetail_20' ) end [2025-01-29 09:55:28] Production.ERROR: pbx prc_insertCDR start [2025-01-29 09:55:28] Production.ERROR: pbx prc_insertCDR end [2025-01-29 09:55:28] Production.INFO: ==14500== Releasing lock... [2025-01-29 09:55:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 09:55:28] Production.INFO: 40 MB #Memory Used# [2025-01-29 09:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 06:56:06 [end_date_ymd] => 2025-01-29 09:56:06 [RateCDR] => 1 ) [2025-01-29 09:56:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 06:56:06' and `end` < '2025-01-29 09:56:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 09:56:19] Production.INFO: count ==1610 [2025-01-29 09:56:20] Production.ERROR: pbx CDR StartTime 2025-01-29 06:56:06 - End Time 2025-01-29 09:56:06 [2025-01-29 09:56:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 09:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355548', 'tblTempUsageDetail_20' ) start [2025-01-29 09:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355548', 'tblTempUsageDetail_20' ) end [2025-01-29 09:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355548', 'tblTempVendorCDR_20' ) start [2025-01-29 09:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355548', 'tblTempVendorCDR_20' ) end [2025-01-29 09:56:20] Production.INFO: ProcessCDR(1,14355548,1,1,2) [2025-01-29 09:56:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14355548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 09:56:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14355548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 09:56:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14355548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 09:56:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14355548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 09:56:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355548', 'tblTempUsageDetail_20' ) start [2025-01-29 09:56:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355548', 'tblTempUsageDetail_20' ) end [2025-01-29 09:56:25] Production.ERROR: pbx prc_insertCDR start [2025-01-29 09:56:25] Production.ERROR: pbx prc_insertCDR end [2025-01-29 09:56:25] Production.INFO: ==14582== Releasing lock... [2025-01-29 09:56:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 09:56:25] Production.INFO: 40.5 MB #Memory Used# [2025-01-29 09:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 06:57:05 [end_date_ymd] => 2025-01-29 09:57:05 [RateCDR] => 1 ) [2025-01-29 09:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 06:57:05' and `end` < '2025-01-29 09:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 09:57:19] Production.INFO: count ==1612 [2025-01-29 09:57:19] Production.ERROR: pbx CDR StartTime 2025-01-29 06:57:05 - End Time 2025-01-29 09:57:05 [2025-01-29 09:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 09:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355553', 'tblTempUsageDetail_20' ) start [2025-01-29 09:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355553', 'tblTempUsageDetail_20' ) end [2025-01-29 09:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355553', 'tblTempVendorCDR_20' ) start [2025-01-29 09:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355553', 'tblTempVendorCDR_20' ) end [2025-01-29 09:57:19] Production.INFO: ProcessCDR(1,14355553,1,1,2) [2025-01-29 09:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14355553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 09:57:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14355553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 09:57:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14355553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 09:57:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14355553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 09:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355553', 'tblTempUsageDetail_20' ) start [2025-01-29 09:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355553', 'tblTempUsageDetail_20' ) end [2025-01-29 09:57:24] Production.ERROR: pbx prc_insertCDR start [2025-01-29 09:57:24] Production.ERROR: pbx prc_insertCDR end [2025-01-29 09:57:24] Production.INFO: ==14663== Releasing lock... [2025-01-29 09:57:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 09:57:24] Production.INFO: 40.25 MB #Memory Used# [2025-01-29 09:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 06:58:06 [end_date_ymd] => 2025-01-29 09:58:06 [RateCDR] => 1 ) [2025-01-29 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-01-29 06:58:06' and `end` < '2025-01-29 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-01-29 09:58:19] Production.INFO: count ==1617 [2025-01-29 09:58:20] Production.ERROR: pbx CDR StartTime 2025-01-29 06:58:06 - End Time 2025-01-29 09:58:06 [2025-01-29 09:58:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 09:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355558', 'tblTempUsageDetail_20' ) start [2025-01-29 09:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355558', 'tblTempUsageDetail_20' ) end [2025-01-29 09:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355558', 'tblTempVendorCDR_20' ) start [2025-01-29 09:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355558', 'tblTempVendorCDR_20' ) end [2025-01-29 09:58:20] Production.INFO: ProcessCDR(1,14355558,1,1,2) [2025-01-29 09:58:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14355558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 09:58:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14355558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 09:58:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14355558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 09:58:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14355558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 09:58:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355558', 'tblTempUsageDetail_20' ) start [2025-01-29 09:58:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355558', 'tblTempUsageDetail_20' ) end [2025-01-29 09:58:25] Production.ERROR: pbx prc_insertCDR start [2025-01-29 09:58:25] Production.ERROR: pbx prc_insertCDR end [2025-01-29 09:58:25] Production.INFO: ==14749== Releasing lock... [2025-01-29 09:58:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 09:58:25] Production.INFO: 40.75 MB #Memory Used# [2025-01-29 09:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 06:59:05 [end_date_ymd] => 2025-01-29 09:59:05 [RateCDR] => 1 ) [2025-01-29 09:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 06:59:05' and `end` < '2025-01-29 09:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 09:59:18] Production.INFO: count ==1645 [2025-01-29 09:59:19] Production.ERROR: pbx CDR StartTime 2025-01-29 06:59:05 - End Time 2025-01-29 09:59:05 [2025-01-29 09:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 09:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355563', 'tblTempUsageDetail_20' ) start [2025-01-29 09:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355563', 'tblTempUsageDetail_20' ) end [2025-01-29 09:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355563', 'tblTempVendorCDR_20' ) start [2025-01-29 09:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355563', 'tblTempVendorCDR_20' ) end [2025-01-29 09:59:19] Production.INFO: ProcessCDR(1,14355563,1,1,2) [2025-01-29 09:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14355563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 09:59:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14355563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 09:59:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14355563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 09:59:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14355563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 09:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355563', 'tblTempUsageDetail_20' ) start [2025-01-29 09:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355563', 'tblTempUsageDetail_20' ) end [2025-01-29 09:59:24] Production.ERROR: pbx prc_insertCDR start [2025-01-29 09:59:24] Production.ERROR: pbx prc_insertCDR end [2025-01-29 09:59:24] Production.INFO: ==14838== Releasing lock... [2025-01-29 09:59:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 09:59:24] Production.INFO: 41 MB #Memory Used# [2025-01-29 10:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 07:00:07 [end_date_ymd] => 2025-01-29 10:00:07 [RateCDR] => 1 ) [2025-01-29 10:00:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 07:00:07' and `end` < '2025-01-29 10:00:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 10:00:28] Production.INFO: count ==1675 [2025-01-29 10:00:28] Production.ERROR: pbx CDR StartTime 2025-01-29 07:00:07 - End Time 2025-01-29 10:00:07 [2025-01-29 10:00:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 10:00:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355568', 'tblTempUsageDetail_20' ) start [2025-01-29 10:00:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355568', 'tblTempUsageDetail_20' ) end [2025-01-29 10:00:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355568', 'tblTempVendorCDR_20' ) start [2025-01-29 10:00:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355568', 'tblTempVendorCDR_20' ) end [2025-01-29 10:00:28] Production.INFO: ProcessCDR(1,14355568,1,1,2) [2025-01-29 10:00:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14355568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 10:00:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14355568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 10:00:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14355568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 10:00:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14355568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 10:00:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355568', 'tblTempUsageDetail_20' ) start [2025-01-29 10:00:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355568', 'tblTempUsageDetail_20' ) end [2025-01-29 10:00:35] Production.ERROR: pbx prc_insertCDR start [2025-01-29 10:00:35] Production.ERROR: pbx prc_insertCDR end [2025-01-29 10:00:35] Production.INFO: ==14970== Releasing lock... [2025-01-29 10:00:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 10:00:35] Production.INFO: 40.75 MB #Memory Used# [2025-01-29 10:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 07:01:05 [end_date_ymd] => 2025-01-29 10:01:05 [RateCDR] => 1 ) [2025-01-29 10:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 07:01:05' and `end` < '2025-01-29 10:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 10:01:21] Production.INFO: count ==1753 [2025-01-29 10:01:22] Production.ERROR: pbx CDR StartTime 2025-01-29 07:01:05 - End Time 2025-01-29 10:01:05 [2025-01-29 10:01:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 10:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355574', 'tblTempUsageDetail_20' ) start [2025-01-29 10:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355574', 'tblTempUsageDetail_20' ) end [2025-01-29 10:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355574', 'tblTempVendorCDR_20' ) start [2025-01-29 10:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355574', 'tblTempVendorCDR_20' ) end [2025-01-29 10:01:22] Production.INFO: ProcessCDR(1,14355574,1,1,2) [2025-01-29 10:01:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14355574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 10:01:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14355574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 10:01:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14355574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 10:01:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14355574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 10:01:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355574', 'tblTempUsageDetail_20' ) start [2025-01-29 10:01:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355574', 'tblTempUsageDetail_20' ) end [2025-01-29 10:01:27] Production.ERROR: pbx prc_insertCDR start [2025-01-29 10:01:27] Production.ERROR: pbx prc_insertCDR end [2025-01-29 10:01:27] Production.INFO: ==15071== Releasing lock... [2025-01-29 10:01:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 10:01:27] Production.INFO: 41.25 MB #Memory Used# [2025-01-29 10:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 07:02:05 [end_date_ymd] => 2025-01-29 10:02:05 [RateCDR] => 1 ) [2025-01-29 10:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 07:02:05' and `end` < '2025-01-29 10:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 10:02:22] Production.INFO: count ==1768 [2025-01-29 10:02:23] Production.ERROR: pbx CDR StartTime 2025-01-29 07:02:05 - End Time 2025-01-29 10:02:05 [2025-01-29 10:02:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 10:02:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355579', 'tblTempUsageDetail_20' ) start [2025-01-29 10:02:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355579', 'tblTempUsageDetail_20' ) end [2025-01-29 10:02:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355579', 'tblTempVendorCDR_20' ) start [2025-01-29 10:02:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355579', 'tblTempVendorCDR_20' ) end [2025-01-29 10:02:23] Production.INFO: ProcessCDR(1,14355579,1,1,2) [2025-01-29 10:02:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14355579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 10:02:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14355579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 10:02:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14355579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 10:02:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14355579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 10:02:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355579', 'tblTempUsageDetail_20' ) start [2025-01-29 10:02:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355579', 'tblTempUsageDetail_20' ) end [2025-01-29 10:02:28] Production.ERROR: pbx prc_insertCDR start [2025-01-29 10:02:28] Production.ERROR: pbx prc_insertCDR end [2025-01-29 10:02:28] Production.INFO: ==15156== Releasing lock... [2025-01-29 10:02:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 10:02:28] Production.INFO: 41.25 MB #Memory Used# [2025-01-29 10:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 07:03:05 [end_date_ymd] => 2025-01-29 10:03:05 [RateCDR] => 1 ) [2025-01-29 10:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 07:03:05' and `end` < '2025-01-29 10:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 10:03:24] Production.INFO: count ==1794 [2025-01-29 10:03:25] Production.ERROR: pbx CDR StartTime 2025-01-29 07:03:05 - End Time 2025-01-29 10:03:05 [2025-01-29 10:03:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 10:03:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355584', 'tblTempUsageDetail_20' ) start [2025-01-29 10:03:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355584', 'tblTempUsageDetail_20' ) end [2025-01-29 10:03:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355584', 'tblTempVendorCDR_20' ) start [2025-01-29 10:03:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355584', 'tblTempVendorCDR_20' ) end [2025-01-29 10:03:25] Production.INFO: ProcessCDR(1,14355584,1,1,2) [2025-01-29 10:03:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14355584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 10:03:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14355584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 10:03:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14355584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 10:03:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14355584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 10:03:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355584', 'tblTempUsageDetail_20' ) start [2025-01-29 10:03:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355584', 'tblTempUsageDetail_20' ) end [2025-01-29 10:03:31] Production.ERROR: pbx prc_insertCDR start [2025-01-29 10:03:31] Production.ERROR: pbx prc_insertCDR end [2025-01-29 10:03:31] Production.INFO: ==15237== Releasing lock... [2025-01-29 10:03:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 10:03:31] Production.INFO: 41.5 MB #Memory Used# [2025-01-29 10:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 07:04:06 [end_date_ymd] => 2025-01-29 10:04:06 [RateCDR] => 1 ) [2025-01-29 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-01-29 07:04:06' and `end` < '2025-01-29 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-01-29 10:04:21] Production.INFO: count ==1807 [2025-01-29 10:04:22] Production.ERROR: pbx CDR StartTime 2025-01-29 07:04:06 - End Time 2025-01-29 10:04:06 [2025-01-29 10:04:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 10:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355589', 'tblTempUsageDetail_20' ) start [2025-01-29 10:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355589', 'tblTempUsageDetail_20' ) end [2025-01-29 10:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355589', 'tblTempVendorCDR_20' ) start [2025-01-29 10:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355589', 'tblTempVendorCDR_20' ) end [2025-01-29 10:04:22] Production.INFO: ProcessCDR(1,14355589,1,1,2) [2025-01-29 10:04:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14355589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 10:04:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14355589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 10:04:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14355589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 10:04:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14355589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 10:04:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355589', 'tblTempUsageDetail_20' ) start [2025-01-29 10:04:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355589', 'tblTempUsageDetail_20' ) end [2025-01-29 10:04:27] Production.ERROR: pbx prc_insertCDR start [2025-01-29 10:04:27] Production.ERROR: pbx prc_insertCDR end [2025-01-29 10:04:27] Production.INFO: ==15327== Releasing lock... [2025-01-29 10:04:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 10:04:27] Production.INFO: 42 MB #Memory Used# [2025-01-29 10:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 07:05:05 [end_date_ymd] => 2025-01-29 10:05:05 [RateCDR] => 1 ) [2025-01-29 10:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 07:05:05' and `end` < '2025-01-29 10:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 10:05:19] Production.INFO: count ==1818 [2025-01-29 10:05:20] Production.ERROR: pbx CDR StartTime 2025-01-29 07:05:05 - End Time 2025-01-29 10:05:05 [2025-01-29 10:05:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 10:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355590', 'tblTempUsageDetail_20' ) start [2025-01-29 10:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355590', 'tblTempUsageDetail_20' ) end [2025-01-29 10:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355590', 'tblTempVendorCDR_20' ) start [2025-01-29 10:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355590', 'tblTempVendorCDR_20' ) end [2025-01-29 10:05:20] Production.INFO: ProcessCDR(1,14355590,1,1,2) [2025-01-29 10:05:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14355590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 10:05:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14355590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 10:05:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14355590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 10:05:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14355590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 10:05:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355590', 'tblTempUsageDetail_20' ) start [2025-01-29 10:05:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355590', 'tblTempUsageDetail_20' ) end [2025-01-29 10:05:25] Production.ERROR: pbx prc_insertCDR start [2025-01-29 10:05:26] Production.ERROR: pbx prc_insertCDR end [2025-01-29 10:05:26] Production.INFO: ==15405== Releasing lock... [2025-01-29 10:05:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 10:05:26] Production.INFO: 42 MB #Memory Used# [2025-01-29 10:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 07:06:06 [end_date_ymd] => 2025-01-29 10:06:06 [RateCDR] => 1 ) [2025-01-29 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-01-29 07:06:06' and `end` < '2025-01-29 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-01-29 10:06:19] Production.INFO: count ==1821 [2025-01-29 10:06:20] Production.ERROR: pbx CDR StartTime 2025-01-29 07:06:06 - End Time 2025-01-29 10:06:06 [2025-01-29 10:06:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 10:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355599', 'tblTempUsageDetail_20' ) start [2025-01-29 10:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355599', 'tblTempUsageDetail_20' ) end [2025-01-29 10:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355599', 'tblTempVendorCDR_20' ) start [2025-01-29 10:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355599', 'tblTempVendorCDR_20' ) end [2025-01-29 10:06:20] Production.INFO: ProcessCDR(1,14355599,1,1,2) [2025-01-29 10:06:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14355599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 10:06:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14355599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 10:06:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14355599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 10:06:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14355599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 10:06:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355599', 'tblTempUsageDetail_20' ) start [2025-01-29 10:06:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355599', 'tblTempUsageDetail_20' ) end [2025-01-29 10:06:25] Production.ERROR: pbx prc_insertCDR start [2025-01-29 10:06:25] Production.ERROR: pbx prc_insertCDR end [2025-01-29 10:06:25] Production.INFO: ==15489== Releasing lock... [2025-01-29 10:06:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 10:06:25] Production.INFO: 41.75 MB #Memory Used# [2025-01-29 10:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 07:07:05 [end_date_ymd] => 2025-01-29 10:07:05 [RateCDR] => 1 ) [2025-01-29 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-01-29 07:07:05' and `end` < '2025-01-29 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-01-29 10:07:18] Production.INFO: count ==1829 [2025-01-29 10:07:19] Production.ERROR: pbx CDR StartTime 2025-01-29 07:07:05 - End Time 2025-01-29 10:07:05 [2025-01-29 10:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 10:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355604', 'tblTempUsageDetail_20' ) start [2025-01-29 10:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355604', 'tblTempUsageDetail_20' ) end [2025-01-29 10:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355604', 'tblTempVendorCDR_20' ) start [2025-01-29 10:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355604', 'tblTempVendorCDR_20' ) end [2025-01-29 10:07:19] Production.INFO: ProcessCDR(1,14355604,1,1,2) [2025-01-29 10:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14355604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 10:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14355604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 10:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14355604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 10:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14355604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 10:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355604', 'tblTempUsageDetail_20' ) start [2025-01-29 10:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355604', 'tblTempUsageDetail_20' ) end [2025-01-29 10:07:23] Production.ERROR: pbx prc_insertCDR start [2025-01-29 10:07:23] Production.ERROR: pbx prc_insertCDR end [2025-01-29 10:07:23] Production.INFO: ==15577== Releasing lock... [2025-01-29 10:07:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 10:07:23] Production.INFO: 41.75 MB #Memory Used# [2025-01-29 10:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 07:08:06 [end_date_ymd] => 2025-01-29 10:08:06 [RateCDR] => 1 ) [2025-01-29 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-01-29 07:08:06' and `end` < '2025-01-29 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-01-29 10:08:19] Production.INFO: count ==1835 [2025-01-29 10:08:19] Production.ERROR: pbx CDR StartTime 2025-01-29 07:08:06 - End Time 2025-01-29 10:08:06 [2025-01-29 10:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 10:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355609', 'tblTempUsageDetail_20' ) start [2025-01-29 10:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355609', 'tblTempUsageDetail_20' ) end [2025-01-29 10:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355609', 'tblTempVendorCDR_20' ) start [2025-01-29 10:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355609', 'tblTempVendorCDR_20' ) end [2025-01-29 10:08:20] Production.INFO: ProcessCDR(1,14355609,1,1,2) [2025-01-29 10:08:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14355609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 10:08:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14355609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 10:08:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14355609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 10:08:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14355609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 10:08:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355609', 'tblTempUsageDetail_20' ) start [2025-01-29 10:08:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355609', 'tblTempUsageDetail_20' ) end [2025-01-29 10:08:25] Production.ERROR: pbx prc_insertCDR start [2025-01-29 10:08:25] Production.ERROR: pbx prc_insertCDR end [2025-01-29 10:08:25] Production.INFO: ==15660== Releasing lock... [2025-01-29 10:08:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 10:08:25] Production.INFO: 41.75 MB #Memory Used# [2025-01-29 10:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 07:09:05 [end_date_ymd] => 2025-01-29 10:09:05 [RateCDR] => 1 ) [2025-01-29 10:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 07:09:05' and `end` < '2025-01-29 10:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 10:09:18] Production.INFO: count ==1851 [2025-01-29 10:09:19] Production.ERROR: pbx CDR StartTime 2025-01-29 07:09:05 - End Time 2025-01-29 10:09:05 [2025-01-29 10:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 10:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355614', 'tblTempUsageDetail_20' ) start [2025-01-29 10:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355614', 'tblTempUsageDetail_20' ) end [2025-01-29 10:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355614', 'tblTempVendorCDR_20' ) start [2025-01-29 10:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355614', 'tblTempVendorCDR_20' ) end [2025-01-29 10:09:19] Production.INFO: ProcessCDR(1,14355614,1,1,2) [2025-01-29 10:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14355614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 10:09:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14355614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 10:09:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14355614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 10:09:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14355614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 10:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355614', 'tblTempUsageDetail_20' ) start [2025-01-29 10:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355614', 'tblTempUsageDetail_20' ) end [2025-01-29 10:09:24] Production.ERROR: pbx prc_insertCDR start [2025-01-29 10:09:24] Production.ERROR: pbx prc_insertCDR end [2025-01-29 10:09:24] Production.INFO: ==15750== Releasing lock... [2025-01-29 10:09:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 10:09:24] Production.INFO: 42 MB #Memory Used# [2025-01-29 10:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 07:10:06 [end_date_ymd] => 2025-01-29 10:10:06 [RateCDR] => 1 ) [2025-01-29 10:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 07:10:06' and `end` < '2025-01-29 10:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 10:10:19] Production.INFO: count ==1863 [2025-01-29 10:10:20] Production.ERROR: pbx CDR StartTime 2025-01-29 07:10:06 - End Time 2025-01-29 10:10:06 [2025-01-29 10:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 10:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355620', 'tblTempUsageDetail_20' ) start [2025-01-29 10:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355620', 'tblTempUsageDetail_20' ) end [2025-01-29 10:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355620', 'tblTempVendorCDR_20' ) start [2025-01-29 10:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355620', 'tblTempVendorCDR_20' ) end [2025-01-29 10:10:20] Production.INFO: ProcessCDR(1,14355620,1,1,2) [2025-01-29 10:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14355620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 10:10:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14355620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 10:10:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14355620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 10:10:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14355620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 10:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355620', 'tblTempUsageDetail_20' ) start [2025-01-29 10:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355620', 'tblTempUsageDetail_20' ) end [2025-01-29 10:10:25] Production.ERROR: pbx prc_insertCDR start [2025-01-29 10:10:25] Production.ERROR: pbx prc_insertCDR end [2025-01-29 10:10:25] Production.INFO: ==15837== Releasing lock... [2025-01-29 10:10:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 10:10:25] Production.INFO: 42 MB #Memory Used# [2025-01-29 10:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 07:11:05 [end_date_ymd] => 2025-01-29 10:11:05 [RateCDR] => 1 ) [2025-01-29 10:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 07:11:05' and `end` < '2025-01-29 10:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 10:11:20] Production.INFO: count ==1939 [2025-01-29 10:11:21] Production.ERROR: pbx CDR StartTime 2025-01-29 07:11:05 - End Time 2025-01-29 10:11:05 [2025-01-29 10:11:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 10:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355625', 'tblTempUsageDetail_20' ) start [2025-01-29 10:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355625', 'tblTempUsageDetail_20' ) end [2025-01-29 10:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355625', 'tblTempVendorCDR_20' ) start [2025-01-29 10:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355625', 'tblTempVendorCDR_20' ) end [2025-01-29 10:11:21] Production.INFO: ProcessCDR(1,14355625,1,1,2) [2025-01-29 10:11:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14355625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 10:11:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14355625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 10:11:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14355625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 10:11:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14355625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 10:11:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355625', 'tblTempUsageDetail_20' ) start [2025-01-29 10:11:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355625', 'tblTempUsageDetail_20' ) end [2025-01-29 10:11:27] Production.ERROR: pbx prc_insertCDR start [2025-01-29 10:11:27] Production.ERROR: pbx prc_insertCDR end [2025-01-29 10:11:27] Production.INFO: ==15920== Releasing lock... [2025-01-29 10:11:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 10:11:27] Production.INFO: 42.75 MB #Memory Used# [2025-01-29 10:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 07:12:06 [end_date_ymd] => 2025-01-29 10:12:06 [RateCDR] => 1 ) [2025-01-29 10:12:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 07:12:06' and `end` < '2025-01-29 10:12:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 10:12:22] Production.INFO: count ==1953 [2025-01-29 10:12:23] Production.ERROR: pbx CDR StartTime 2025-01-29 07:12:06 - End Time 2025-01-29 10:12:06 [2025-01-29 10:12:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 10:12:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355630', 'tblTempUsageDetail_20' ) start [2025-01-29 10:12:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355630', 'tblTempUsageDetail_20' ) end [2025-01-29 10:12:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355630', 'tblTempVendorCDR_20' ) start [2025-01-29 10:12:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355630', 'tblTempVendorCDR_20' ) end [2025-01-29 10:12:23] Production.INFO: ProcessCDR(1,14355630,1,1,2) [2025-01-29 10:12:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14355630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 10:12:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14355630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 10:12:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14355630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 10:12:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14355630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 10:12:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355630', 'tblTempUsageDetail_20' ) start [2025-01-29 10:12:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355630', 'tblTempUsageDetail_20' ) end [2025-01-29 10:12:28] Production.ERROR: pbx prc_insertCDR start [2025-01-29 10:12:28] Production.ERROR: pbx prc_insertCDR end [2025-01-29 10:12:28] Production.INFO: ==16007== Releasing lock... [2025-01-29 10:12:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 10:12:28] Production.INFO: 42.75 MB #Memory Used# [2025-01-29 10:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 07:13:05 [end_date_ymd] => 2025-01-29 10:13:05 [RateCDR] => 1 ) [2025-01-29 10:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 07:13:05' and `end` < '2025-01-29 10:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 10:13:18] Production.INFO: count ==1963 [2025-01-29 10:13:19] Production.ERROR: pbx CDR StartTime 2025-01-29 07:13:05 - End Time 2025-01-29 10:13:05 [2025-01-29 10:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 10:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355635', 'tblTempUsageDetail_20' ) start [2025-01-29 10:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355635', 'tblTempUsageDetail_20' ) end [2025-01-29 10:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355635', 'tblTempVendorCDR_20' ) start [2025-01-29 10:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355635', 'tblTempVendorCDR_20' ) end [2025-01-29 10:13:19] Production.INFO: ProcessCDR(1,14355635,1,1,2) [2025-01-29 10:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14355635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 10:13:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14355635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 10:13:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14355635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 10:13:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14355635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 10:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355635', 'tblTempUsageDetail_20' ) start [2025-01-29 10:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355635', 'tblTempUsageDetail_20' ) end [2025-01-29 10:13:24] Production.ERROR: pbx prc_insertCDR start [2025-01-29 10:13:24] Production.ERROR: pbx prc_insertCDR end [2025-01-29 10:13:24] Production.INFO: ==16094== Releasing lock... [2025-01-29 10:13:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 10:13:24] Production.INFO: 42.75 MB #Memory Used# [2025-01-29 10:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 07:14:06 [end_date_ymd] => 2025-01-29 10:14:06 [RateCDR] => 1 ) [2025-01-29 10:14:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 07:14:06' and `end` < '2025-01-29 10:14:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 10:14:21] Production.INFO: count ==1973 [2025-01-29 10:14:21] Production.ERROR: pbx CDR StartTime 2025-01-29 07:14:06 - End Time 2025-01-29 10:14:06 [2025-01-29 10:14:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 10:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355640', 'tblTempUsageDetail_20' ) start [2025-01-29 10:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355640', 'tblTempUsageDetail_20' ) end [2025-01-29 10:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355640', 'tblTempVendorCDR_20' ) start [2025-01-29 10:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355640', 'tblTempVendorCDR_20' ) end [2025-01-29 10:14:21] Production.INFO: ProcessCDR(1,14355640,1,1,2) [2025-01-29 10:14:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14355640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 10:14:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14355640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 10:14:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14355640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 10:14:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14355640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 10:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355640', 'tblTempUsageDetail_20' ) start [2025-01-29 10:14:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355640', 'tblTempUsageDetail_20' ) end [2025-01-29 10:14:27] Production.ERROR: pbx prc_insertCDR start [2025-01-29 10:14:27] Production.ERROR: pbx prc_insertCDR end [2025-01-29 10:14:27] Production.INFO: ==16174== Releasing lock... [2025-01-29 10:14:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 10:14:27] Production.INFO: 43 MB #Memory Used# [2025-01-29 10:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 07:15:05 [end_date_ymd] => 2025-01-29 10:15:05 [RateCDR] => 1 ) [2025-01-29 10:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 07:15:05' and `end` < '2025-01-29 10:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 10:15:23] Production.INFO: count ==1983 [2025-01-29 10:15:24] Production.ERROR: pbx CDR StartTime 2025-01-29 07:15:05 - End Time 2025-01-29 10:15:05 [2025-01-29 10:15:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 10:15:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355645', 'tblTempUsageDetail_20' ) start [2025-01-29 10:15:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355645', 'tblTempUsageDetail_20' ) end [2025-01-29 10:15:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355645', 'tblTempVendorCDR_20' ) start [2025-01-29 10:15:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355645', 'tblTempVendorCDR_20' ) end [2025-01-29 10:15:24] Production.INFO: ProcessCDR(1,14355645,1,1,2) [2025-01-29 10:15:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14355645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 10:15:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14355645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 10:15:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14355645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 10:15:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14355645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 10:15:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355645', 'tblTempUsageDetail_20' ) start [2025-01-29 10:15:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355645', 'tblTempUsageDetail_20' ) end [2025-01-29 10:15:29] Production.ERROR: pbx prc_insertCDR start [2025-01-29 10:15:29] Production.ERROR: pbx prc_insertCDR end [2025-01-29 10:15:29] Production.INFO: ==16258== Releasing lock... [2025-01-29 10:15:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 10:15:29] Production.INFO: 43 MB #Memory Used# [2025-01-29 10:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 07:16:05 [end_date_ymd] => 2025-01-29 10:16:05 [RateCDR] => 1 ) [2025-01-29 10:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 07:16:05' and `end` < '2025-01-29 10:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 10:16:18] Production.INFO: count ==1986 [2025-01-29 10:16:19] Production.ERROR: pbx CDR StartTime 2025-01-29 07:16:05 - End Time 2025-01-29 10:16:05 [2025-01-29 10:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 10:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355650', 'tblTempUsageDetail_20' ) start [2025-01-29 10:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355650', 'tblTempUsageDetail_20' ) end [2025-01-29 10:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355650', 'tblTempVendorCDR_20' ) start [2025-01-29 10:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355650', 'tblTempVendorCDR_20' ) end [2025-01-29 10:16:19] Production.INFO: ProcessCDR(1,14355650,1,1,2) [2025-01-29 10:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14355650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 10:16:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14355650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 10:16:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14355650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 10:16:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14355650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 10:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355650', 'tblTempUsageDetail_20' ) start [2025-01-29 10:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355650', 'tblTempUsageDetail_20' ) end [2025-01-29 10:16:24] Production.ERROR: pbx prc_insertCDR start [2025-01-29 10:16:24] Production.ERROR: pbx prc_insertCDR end [2025-01-29 10:16:24] Production.INFO: ==16380== Releasing lock... [2025-01-29 10:16:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 10:16:24] Production.INFO: 43.25 MB #Memory Used# [2025-01-29 10:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 07:17:05 [end_date_ymd] => 2025-01-29 10:17:05 [RateCDR] => 1 ) [2025-01-29 10:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 07:17:05' and `end` < '2025-01-29 10:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 10:17:23] Production.INFO: count ==1998 [2025-01-29 10:17:24] Production.ERROR: pbx CDR StartTime 2025-01-29 07:17:05 - End Time 2025-01-29 10:17:05 [2025-01-29 10:17:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 10:17:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355655', 'tblTempUsageDetail_20' ) start [2025-01-29 10:17:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355655', 'tblTempUsageDetail_20' ) end [2025-01-29 10:17:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355655', 'tblTempVendorCDR_20' ) start [2025-01-29 10:17:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355655', 'tblTempVendorCDR_20' ) end [2025-01-29 10:17:24] Production.INFO: ProcessCDR(1,14355655,1,1,2) [2025-01-29 10:17:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14355655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 10:17:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14355655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 10:17:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14355655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 10:17:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14355655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 10:17:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355655', 'tblTempUsageDetail_20' ) start [2025-01-29 10:17:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355655', 'tblTempUsageDetail_20' ) end [2025-01-29 10:17:30] Production.ERROR: pbx prc_insertCDR start [2025-01-29 10:17:30] Production.ERROR: pbx prc_insertCDR end [2025-01-29 10:17:30] Production.INFO: ==16460== Releasing lock... [2025-01-29 10:17:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 10:17:30] Production.INFO: 43 MB #Memory Used# [2025-01-29 10:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 07:18:06 [end_date_ymd] => 2025-01-29 10:18:06 [RateCDR] => 1 ) [2025-01-29 10:18:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 07:18:06' and `end` < '2025-01-29 10:18:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 10:18:28] Production.INFO: count ==2018 [2025-01-29 10:18:28] Production.ERROR: pbx CDR StartTime 2025-01-29 07:18:06 - End Time 2025-01-29 10:18:06 [2025-01-29 10:18:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 10:18:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355660', 'tblTempUsageDetail_20' ) start [2025-01-29 10:18:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355660', 'tblTempUsageDetail_20' ) end [2025-01-29 10:18:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355660', 'tblTempVendorCDR_20' ) start [2025-01-29 10:18:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355660', 'tblTempVendorCDR_20' ) end [2025-01-29 10:18:28] Production.INFO: ProcessCDR(1,14355660,1,1,2) [2025-01-29 10:18:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14355660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 10:18:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14355660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 10:18:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14355660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 10:18:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14355660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 10:18:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355660', 'tblTempUsageDetail_20' ) start [2025-01-29 10:18:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355660', 'tblTempUsageDetail_20' ) end [2025-01-29 10:18:34] Production.ERROR: pbx prc_insertCDR start [2025-01-29 10:18:34] Production.ERROR: pbx prc_insertCDR end [2025-01-29 10:18:34] Production.INFO: ==16533== Releasing lock... [2025-01-29 10:18:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 10:18:34] Production.INFO: 43.25 MB #Memory Used# [2025-01-29 10:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 07:19:05 [end_date_ymd] => 2025-01-29 10:19:05 [RateCDR] => 1 ) [2025-01-29 10:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 07:19:05' and `end` < '2025-01-29 10:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 10:19:22] Production.INFO: count ==2041 [2025-01-29 10:19:23] Production.ERROR: pbx CDR StartTime 2025-01-29 07:19:05 - End Time 2025-01-29 10:19:05 [2025-01-29 10:19:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 10:19:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355665', 'tblTempUsageDetail_20' ) start [2025-01-29 10:19:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355665', 'tblTempUsageDetail_20' ) end [2025-01-29 10:19:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355665', 'tblTempVendorCDR_20' ) start [2025-01-29 10:19:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355665', 'tblTempVendorCDR_20' ) end [2025-01-29 10:19:23] Production.INFO: ProcessCDR(1,14355665,1,1,2) [2025-01-29 10:19:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14355665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 10:19:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14355665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 10:19:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14355665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 10:19:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14355665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 10:19:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355665', 'tblTempUsageDetail_20' ) start [2025-01-29 10:19:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355665', 'tblTempUsageDetail_20' ) end [2025-01-29 10:19:28] Production.ERROR: pbx prc_insertCDR start [2025-01-29 10:19:28] Production.ERROR: pbx prc_insertCDR end [2025-01-29 10:19:28] Production.INFO: ==16622== Releasing lock... [2025-01-29 10:19:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 10:19:28] Production.INFO: 43.5 MB #Memory Used# [2025-01-29 10:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 07:20:06 [end_date_ymd] => 2025-01-29 10:20:06 [RateCDR] => 1 ) [2025-01-29 10:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 07:20:06' and `end` < '2025-01-29 10:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 10:20:25] Production.INFO: count ==2056 [2025-01-29 10:20:26] Production.ERROR: pbx CDR StartTime 2025-01-29 07:20:06 - End Time 2025-01-29 10:20:06 [2025-01-29 10:20:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 10:20:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355671', 'tblTempUsageDetail_20' ) start [2025-01-29 10:20:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355671', 'tblTempUsageDetail_20' ) end [2025-01-29 10:20:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355671', 'tblTempVendorCDR_20' ) start [2025-01-29 10:20:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355671', 'tblTempVendorCDR_20' ) end [2025-01-29 10:20:26] Production.INFO: ProcessCDR(1,14355671,1,1,2) [2025-01-29 10:20:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14355671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 10:20:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14355671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 10:20:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14355671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 10:20:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14355671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 10:20:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355671', 'tblTempUsageDetail_20' ) start [2025-01-29 10:20:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355671', 'tblTempUsageDetail_20' ) end [2025-01-29 10:20:32] Production.ERROR: pbx prc_insertCDR start [2025-01-29 10:20:32] Production.ERROR: pbx prc_insertCDR end [2025-01-29 10:20:32] Production.INFO: ==16700== Releasing lock... [2025-01-29 10:20:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 10:20:32] Production.INFO: 43.75 MB #Memory Used# [2025-01-29 10:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 07:21:06 [end_date_ymd] => 2025-01-29 10:21:06 [RateCDR] => 1 ) [2025-01-29 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-01-29 07:21:06' and `end` < '2025-01-29 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-01-29 10:21:20] Production.INFO: count ==2131 [2025-01-29 10:21:20] Production.ERROR: pbx CDR StartTime 2025-01-29 07:21:06 - End Time 2025-01-29 10:21:06 [2025-01-29 10:21:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 10:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355676', 'tblTempUsageDetail_20' ) start [2025-01-29 10:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355676', 'tblTempUsageDetail_20' ) end [2025-01-29 10:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355676', 'tblTempVendorCDR_20' ) start [2025-01-29 10:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355676', 'tblTempVendorCDR_20' ) end [2025-01-29 10:21:21] Production.INFO: ProcessCDR(1,14355676,1,1,2) [2025-01-29 10:21:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14355676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 10:21:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14355676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 10:21:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14355676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 10:21:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14355676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 10:21:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355676', 'tblTempUsageDetail_20' ) start [2025-01-29 10:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355676', 'tblTempUsageDetail_20' ) end [2025-01-29 10:21:26] Production.ERROR: pbx prc_insertCDR start [2025-01-29 10:21:26] Production.ERROR: pbx prc_insertCDR end [2025-01-29 10:21:26] Production.INFO: ==16778== Releasing lock... [2025-01-29 10:21:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 10:21:26] Production.INFO: 44 MB #Memory Used# [2025-01-29 10:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 07:22:06 [end_date_ymd] => 2025-01-29 10:22:06 [RateCDR] => 1 ) [2025-01-29 10:22:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 07:22:06' and `end` < '2025-01-29 10:22:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 10:22:23] Production.INFO: count ==2159 [2025-01-29 10:22:23] Production.ERROR: pbx CDR StartTime 2025-01-29 07:22:06 - End Time 2025-01-29 10:22:06 [2025-01-29 10:22:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 10:22:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355681', 'tblTempUsageDetail_20' ) start [2025-01-29 10:22:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355681', 'tblTempUsageDetail_20' ) end [2025-01-29 10:22:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355681', 'tblTempVendorCDR_20' ) start [2025-01-29 10:22:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355681', 'tblTempVendorCDR_20' ) end [2025-01-29 10:22:24] Production.INFO: ProcessCDR(1,14355681,1,1,2) [2025-01-29 10:22:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14355681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 10:22:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14355681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 10:22:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14355681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 10:22:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14355681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 10:22:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355681', 'tblTempUsageDetail_20' ) start [2025-01-29 10:22:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355681', 'tblTempUsageDetail_20' ) end [2025-01-29 10:22:29] Production.ERROR: pbx prc_insertCDR start [2025-01-29 10:22:29] Production.ERROR: pbx prc_insertCDR end [2025-01-29 10:22:29] Production.INFO: ==16855== Releasing lock... [2025-01-29 10:22:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 10:22:29] Production.INFO: 44.25 MB #Memory Used# [2025-01-29 10:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 07:23:06 [end_date_ymd] => 2025-01-29 10:23:06 [RateCDR] => 1 ) [2025-01-29 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-01-29 07:23:06' and `end` < '2025-01-29 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-01-29 10:23:24] Production.INFO: count ==2174 [2025-01-29 10:23:25] Production.ERROR: pbx CDR StartTime 2025-01-29 07:23:06 - End Time 2025-01-29 10:23:06 [2025-01-29 10:23:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 10:23:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355686', 'tblTempUsageDetail_20' ) start [2025-01-29 10:23:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355686', 'tblTempUsageDetail_20' ) end [2025-01-29 10:23:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355686', 'tblTempVendorCDR_20' ) start [2025-01-29 10:23:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355686', 'tblTempVendorCDR_20' ) end [2025-01-29 10:23:25] Production.INFO: ProcessCDR(1,14355686,1,1,2) [2025-01-29 10:23:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14355686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 10:23:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14355686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 10:23:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14355686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 10:23:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14355686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 10:23:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355686', 'tblTempUsageDetail_20' ) start [2025-01-29 10:23:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355686', 'tblTempUsageDetail_20' ) end [2025-01-29 10:23:30] Production.ERROR: pbx prc_insertCDR start [2025-01-29 10:23:30] Production.ERROR: pbx prc_insertCDR end [2025-01-29 10:23:30] Production.INFO: ==16929== Releasing lock... [2025-01-29 10:23:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 10:23:30] Production.INFO: 44.75 MB #Memory Used# [2025-01-29 10:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 07:24:05 [end_date_ymd] => 2025-01-29 10:24:05 [RateCDR] => 1 ) [2025-01-29 10:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 07:24:05' and `end` < '2025-01-29 10:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 10:24:19] Production.INFO: count ==2194 [2025-01-29 10:24:20] Production.ERROR: pbx CDR StartTime 2025-01-29 07:24:05 - End Time 2025-01-29 10:24:05 [2025-01-29 10:24:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 10:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355691', 'tblTempUsageDetail_20' ) start [2025-01-29 10:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355691', 'tblTempUsageDetail_20' ) end [2025-01-29 10:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355691', 'tblTempVendorCDR_20' ) start [2025-01-29 10:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355691', 'tblTempVendorCDR_20' ) end [2025-01-29 10:24:20] Production.INFO: ProcessCDR(1,14355691,1,1,2) [2025-01-29 10:24:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14355691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 10:24:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14355691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 10:24:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14355691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 10:24:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14355691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 10:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355691', 'tblTempUsageDetail_20' ) start [2025-01-29 10:24:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355691', 'tblTempUsageDetail_20' ) end [2025-01-29 10:24:26] Production.ERROR: pbx prc_insertCDR start [2025-01-29 10:24:26] Production.ERROR: pbx prc_insertCDR end [2025-01-29 10:24:26] Production.INFO: ==17008== Releasing lock... [2025-01-29 10:24:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 10:24:26] Production.INFO: 44.75 MB #Memory Used# [2025-01-29 10:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 07:25:06 [end_date_ymd] => 2025-01-29 10:25:06 [RateCDR] => 1 ) [2025-01-29 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-01-29 07:25:06' and `end` < '2025-01-29 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-01-29 10:25:22] Production.INFO: count ==2207 [2025-01-29 10:25:22] Production.ERROR: pbx CDR StartTime 2025-01-29 07:25:06 - End Time 2025-01-29 10:25:06 [2025-01-29 10:25:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 10:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355696', 'tblTempUsageDetail_20' ) start [2025-01-29 10:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355696', 'tblTempUsageDetail_20' ) end [2025-01-29 10:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355696', 'tblTempVendorCDR_20' ) start [2025-01-29 10:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355696', 'tblTempVendorCDR_20' ) end [2025-01-29 10:25:23] Production.INFO: ProcessCDR(1,14355696,1,1,2) [2025-01-29 10:25:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14355696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 10:25:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14355696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 10:25:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14355696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 10:25:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14355696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 10:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355696', 'tblTempUsageDetail_20' ) start [2025-01-29 10:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355696', 'tblTempUsageDetail_20' ) end [2025-01-29 10:25:28] Production.ERROR: pbx prc_insertCDR start [2025-01-29 10:25:28] Production.ERROR: pbx prc_insertCDR end [2025-01-29 10:25:28] Production.INFO: ==17088== Releasing lock... [2025-01-29 10:25:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 10:25:28] Production.INFO: 44.75 MB #Memory Used# [2025-01-29 10:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 07:26:05 [end_date_ymd] => 2025-01-29 10:26:05 [RateCDR] => 1 ) [2025-01-29 10:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 07:26:05' and `end` < '2025-01-29 10:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 10:26:23] Production.INFO: count ==2236 [2025-01-29 10:26:24] Production.ERROR: pbx CDR StartTime 2025-01-29 07:26:05 - End Time 2025-01-29 10:26:05 [2025-01-29 10:26:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 10:26:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355701', 'tblTempUsageDetail_20' ) start [2025-01-29 10:26:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355701', 'tblTempUsageDetail_20' ) end [2025-01-29 10:26:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355701', 'tblTempVendorCDR_20' ) start [2025-01-29 10:26:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355701', 'tblTempVendorCDR_20' ) end [2025-01-29 10:26:24] Production.INFO: ProcessCDR(1,14355701,1,1,2) [2025-01-29 10:26:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14355701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 10:26:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14355701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 10:26:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14355701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 10:26:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14355701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 10:26:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355701', 'tblTempUsageDetail_20' ) start [2025-01-29 10:26:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355701', 'tblTempUsageDetail_20' ) end [2025-01-29 10:26:29] Production.ERROR: pbx prc_insertCDR start [2025-01-29 10:26:29] Production.ERROR: pbx prc_insertCDR end [2025-01-29 10:26:29] Production.INFO: ==17165== Releasing lock... [2025-01-29 10:26:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 10:26:29] Production.INFO: 44.75 MB #Memory Used# [2025-01-29 10:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 07:27:06 [end_date_ymd] => 2025-01-29 10:27:06 [RateCDR] => 1 ) [2025-01-29 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-01-29 07:27:06' and `end` < '2025-01-29 10:27:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 10:27:19] Production.INFO: count ==2259 [2025-01-29 10:27:20] Production.ERROR: pbx CDR StartTime 2025-01-29 07:27:06 - End Time 2025-01-29 10:27:06 [2025-01-29 10:27:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 10:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355706', 'tblTempUsageDetail_20' ) start [2025-01-29 10:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355706', 'tblTempUsageDetail_20' ) end [2025-01-29 10:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355706', 'tblTempVendorCDR_20' ) start [2025-01-29 10:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355706', 'tblTempVendorCDR_20' ) end [2025-01-29 10:27:20] Production.INFO: ProcessCDR(1,14355706,1,1,2) [2025-01-29 10:27:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14355706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 10:27:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14355706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 10:27:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14355706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 10:27:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14355706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 10:27:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355706', 'tblTempUsageDetail_20' ) start [2025-01-29 10:27:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355706', 'tblTempUsageDetail_20' ) end [2025-01-29 10:27:25] Production.ERROR: pbx prc_insertCDR start [2025-01-29 10:27:25] Production.ERROR: pbx prc_insertCDR end [2025-01-29 10:27:25] Production.INFO: ==17236== Releasing lock... [2025-01-29 10:27:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 10:27:25] Production.INFO: 45 MB #Memory Used# [2025-01-29 10:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 07:28:05 [end_date_ymd] => 2025-01-29 10:28:05 [RateCDR] => 1 ) [2025-01-29 10:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 07:28:05' and `end` < '2025-01-29 10:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 10:28:20] Production.INFO: count ==2301 [2025-01-29 10:28:21] Production.ERROR: pbx CDR StartTime 2025-01-29 07:28:05 - End Time 2025-01-29 10:28:05 [2025-01-29 10:28:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 10:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355711', 'tblTempUsageDetail_20' ) start [2025-01-29 10:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355711', 'tblTempUsageDetail_20' ) end [2025-01-29 10:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355711', 'tblTempVendorCDR_20' ) start [2025-01-29 10:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355711', 'tblTempVendorCDR_20' ) end [2025-01-29 10:28:21] Production.INFO: ProcessCDR(1,14355711,1,1,2) [2025-01-29 10:28:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14355711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 10:28:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14355711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 10:28:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14355711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 10:28:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14355711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 10:28:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355711', 'tblTempUsageDetail_20' ) start [2025-01-29 10:28:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355711', 'tblTempUsageDetail_20' ) end [2025-01-29 10:28:26] Production.ERROR: pbx prc_insertCDR start [2025-01-29 10:28:26] Production.ERROR: pbx prc_insertCDR end [2025-01-29 10:28:26] Production.INFO: ==17312== Releasing lock... [2025-01-29 10:28:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 10:28:26] Production.INFO: 45.25 MB #Memory Used# [2025-01-29 10:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 07:29:06 [end_date_ymd] => 2025-01-29 10:29:06 [RateCDR] => 1 ) [2025-01-29 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-01-29 07:29:06' and `end` < '2025-01-29 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-01-29 10:29:24] Production.INFO: count ==2323 [2025-01-29 10:29:25] Production.ERROR: pbx CDR StartTime 2025-01-29 07:29:06 - End Time 2025-01-29 10:29:06 [2025-01-29 10:29:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 10:29:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355716', 'tblTempUsageDetail_20' ) start [2025-01-29 10:29:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355716', 'tblTempUsageDetail_20' ) end [2025-01-29 10:29:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355716', 'tblTempVendorCDR_20' ) start [2025-01-29 10:29:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355716', 'tblTempVendorCDR_20' ) end [2025-01-29 10:29:25] Production.INFO: ProcessCDR(1,14355716,1,1,2) [2025-01-29 10:29:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14355716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 10:29:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14355716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 10:29:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14355716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 10:29:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14355716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 10:29:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355716', 'tblTempUsageDetail_20' ) start [2025-01-29 10:29:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355716', 'tblTempUsageDetail_20' ) end [2025-01-29 10:29:31] Production.ERROR: pbx prc_insertCDR start [2025-01-29 10:29:31] Production.ERROR: pbx prc_insertCDR end [2025-01-29 10:29:31] Production.INFO: ==17384== Releasing lock... [2025-01-29 10:29:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 10:29:31] Production.INFO: 46 MB #Memory Used# [2025-01-29 10:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 07:30:06 [end_date_ymd] => 2025-01-29 10:30:06 [RateCDR] => 1 ) [2025-01-29 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-01-29 07:30:06' and `end` < '2025-01-29 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-01-29 10:30:26] Production.INFO: count ==2342 [2025-01-29 10:30:27] Production.ERROR: pbx CDR StartTime 2025-01-29 07:30:06 - End Time 2025-01-29 10:30:06 [2025-01-29 10:30:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 10:30:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355722', 'tblTempUsageDetail_20' ) start [2025-01-29 10:30:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355722', 'tblTempUsageDetail_20' ) end [2025-01-29 10:30:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355722', 'tblTempVendorCDR_20' ) start [2025-01-29 10:30:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355722', 'tblTempVendorCDR_20' ) end [2025-01-29 10:30:27] Production.INFO: ProcessCDR(1,14355722,1,1,2) [2025-01-29 10:30:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14355722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 10:30:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14355722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 10:30:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14355722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 10:30:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14355722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 10:30:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355722', 'tblTempUsageDetail_20' ) start [2025-01-29 10:30:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355722', 'tblTempUsageDetail_20' ) end [2025-01-29 10:30:32] Production.ERROR: pbx prc_insertCDR start [2025-01-29 10:30:32] Production.ERROR: pbx prc_insertCDR end [2025-01-29 10:30:33] Production.INFO: ==17463== Releasing lock... [2025-01-29 10:30:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 10:30:33] Production.INFO: 46.25 MB #Memory Used# [2025-01-29 10:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 07:31:05 [end_date_ymd] => 2025-01-29 10:31:05 [RateCDR] => 1 ) [2025-01-29 10:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 07:31:05' and `end` < '2025-01-29 10:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 10:31:19] Production.INFO: count ==2384 [2025-01-29 10:31:20] Production.ERROR: pbx CDR StartTime 2025-01-29 07:31:05 - End Time 2025-01-29 10:31:05 [2025-01-29 10:31:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 10:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355727', 'tblTempUsageDetail_20' ) start [2025-01-29 10:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355727', 'tblTempUsageDetail_20' ) end [2025-01-29 10:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355727', 'tblTempVendorCDR_20' ) start [2025-01-29 10:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355727', 'tblTempVendorCDR_20' ) end [2025-01-29 10:31:20] Production.INFO: ProcessCDR(1,14355727,1,1,2) [2025-01-29 10:31:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14355727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 10:31:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14355727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 10:31:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14355727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 10:31:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14355727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 10:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355727', 'tblTempUsageDetail_20' ) start [2025-01-29 10:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355727', 'tblTempUsageDetail_20' ) end [2025-01-29 10:31:23] Production.ERROR: pbx prc_insertCDR start [2025-01-29 10:31:23] Production.ERROR: pbx prc_insertCDR end [2025-01-29 10:31:23] Production.INFO: ==17577== Releasing lock... [2025-01-29 10:31:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 10:31:23] Production.INFO: 46 MB #Memory Used# [2025-01-29 10:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 07:32:05 [end_date_ymd] => 2025-01-29 10:32:05 [RateCDR] => 1 ) [2025-01-29 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-01-29 07:32:05' and `end` < '2025-01-29 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-01-29 10:32:19] Production.INFO: count ==2391 [2025-01-29 10:32:20] Production.ERROR: pbx CDR StartTime 2025-01-29 07:32:05 - End Time 2025-01-29 10:32:05 [2025-01-29 10:32:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 10:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355732', 'tblTempUsageDetail_20' ) start [2025-01-29 10:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355732', 'tblTempUsageDetail_20' ) end [2025-01-29 10:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355732', 'tblTempVendorCDR_20' ) start [2025-01-29 10:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355732', 'tblTempVendorCDR_20' ) end [2025-01-29 10:32:20] Production.INFO: ProcessCDR(1,14355732,1,1,2) [2025-01-29 10:32:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14355732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 10:32:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14355732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 10:32:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14355732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 10:32:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14355732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 10:32:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355732', 'tblTempUsageDetail_20' ) start [2025-01-29 10:32:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355732', 'tblTempUsageDetail_20' ) end [2025-01-29 10:32:26] Production.ERROR: pbx prc_insertCDR start [2025-01-29 10:32:26] Production.ERROR: pbx prc_insertCDR end [2025-01-29 10:32:26] Production.INFO: ==17650== Releasing lock... [2025-01-29 10:32:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 10:32:26] Production.INFO: 46 MB #Memory Used# [2025-01-29 10:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 07:33:06 [end_date_ymd] => 2025-01-29 10:33:06 [RateCDR] => 1 ) [2025-01-29 10:33:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 07:33:06' and `end` < '2025-01-29 10:33:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 10:33:19] Production.INFO: count ==2400 [2025-01-29 10:33:20] Production.ERROR: pbx CDR StartTime 2025-01-29 07:33:06 - End Time 2025-01-29 10:33:06 [2025-01-29 10:33:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 10:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355737', 'tblTempUsageDetail_20' ) start [2025-01-29 10:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355737', 'tblTempUsageDetail_20' ) end [2025-01-29 10:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355737', 'tblTempVendorCDR_20' ) start [2025-01-29 10:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355737', 'tblTempVendorCDR_20' ) end [2025-01-29 10:33:20] Production.INFO: ProcessCDR(1,14355737,1,1,2) [2025-01-29 10:33:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14355737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 10:33:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14355737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 10:33:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14355737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 10:33:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14355737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 10:33:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355737', 'tblTempUsageDetail_20' ) start [2025-01-29 10:33:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355737', 'tblTempUsageDetail_20' ) end [2025-01-29 10:33:26] Production.ERROR: pbx prc_insertCDR start [2025-01-29 10:33:26] Production.ERROR: pbx prc_insertCDR end [2025-01-29 10:33:26] Production.INFO: ==17720== Releasing lock... [2025-01-29 10:33:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 10:33:26] Production.INFO: 46 MB #Memory Used# [2025-01-29 10:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 07:34:05 [end_date_ymd] => 2025-01-29 10:34:05 [RateCDR] => 1 ) [2025-01-29 10:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 07:34:05' and `end` < '2025-01-29 10:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 10:34:23] Production.INFO: count ==2412 [2025-01-29 10:34:24] Production.ERROR: pbx CDR StartTime 2025-01-29 07:34:05 - End Time 2025-01-29 10:34:05 [2025-01-29 10:34:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 10:34:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355742', 'tblTempUsageDetail_20' ) start [2025-01-29 10:34:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355742', 'tblTempUsageDetail_20' ) end [2025-01-29 10:34:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355742', 'tblTempVendorCDR_20' ) start [2025-01-29 10:34:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355742', 'tblTempVendorCDR_20' ) end [2025-01-29 10:34:24] Production.INFO: ProcessCDR(1,14355742,1,1,2) [2025-01-29 10:34:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14355742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 10:34:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14355742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 10:34:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14355742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 10:34:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14355742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 10:34:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355742', 'tblTempUsageDetail_20' ) start [2025-01-29 10:34:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355742', 'tblTempUsageDetail_20' ) end [2025-01-29 10:34:30] Production.ERROR: pbx prc_insertCDR start [2025-01-29 10:34:30] Production.ERROR: pbx prc_insertCDR end [2025-01-29 10:34:30] Production.INFO: ==17794== Releasing lock... [2025-01-29 10:34:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 10:34:30] Production.INFO: 46.25 MB #Memory Used# [2025-01-29 10:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 07:35:06 [end_date_ymd] => 2025-01-29 10:35:06 [RateCDR] => 1 ) [2025-01-29 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-01-29 07:35:06' and `end` < '2025-01-29 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-01-29 10:35:31] Production.INFO: count ==2417 [2025-01-29 10:35:32] Production.ERROR: pbx CDR StartTime 2025-01-29 07:35:06 - End Time 2025-01-29 10:35:06 [2025-01-29 10:35:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 10:35:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355747', 'tblTempUsageDetail_20' ) start [2025-01-29 10:35:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355747', 'tblTempUsageDetail_20' ) end [2025-01-29 10:35:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355747', 'tblTempVendorCDR_20' ) start [2025-01-29 10:35:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355747', 'tblTempVendorCDR_20' ) end [2025-01-29 10:35:32] Production.INFO: ProcessCDR(1,14355747,1,1,2) [2025-01-29 10:35:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14355747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 10:35:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14355747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 10:35:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14355747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 10:35:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14355747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 10:35:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355747', 'tblTempUsageDetail_20' ) start [2025-01-29 10:35:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355747', 'tblTempUsageDetail_20' ) end [2025-01-29 10:35:37] Production.ERROR: pbx prc_insertCDR start [2025-01-29 10:35:37] Production.ERROR: pbx prc_insertCDR end [2025-01-29 10:35:37] Production.INFO: ==17868== Releasing lock... [2025-01-29 10:35:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 10:35:37] Production.INFO: 46.25 MB #Memory Used# [2025-01-29 10:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 07:36:05 [end_date_ymd] => 2025-01-29 10:36:05 [RateCDR] => 1 ) [2025-01-29 10:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 07:36:05' and `end` < '2025-01-29 10:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 10:36:21] Production.INFO: count ==2443 [2025-01-29 10:36:22] Production.ERROR: pbx CDR StartTime 2025-01-29 07:36:05 - End Time 2025-01-29 10:36:05 [2025-01-29 10:36:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 10:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355752', 'tblTempUsageDetail_20' ) start [2025-01-29 10:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355752', 'tblTempUsageDetail_20' ) end [2025-01-29 10:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355752', 'tblTempVendorCDR_20' ) start [2025-01-29 10:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355752', 'tblTempVendorCDR_20' ) end [2025-01-29 10:36:22] Production.INFO: ProcessCDR(1,14355752,1,1,2) [2025-01-29 10:36:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14355752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 10:36:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14355752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 10:36:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14355752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 10:36:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14355752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 10:36:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355752', 'tblTempUsageDetail_20' ) start [2025-01-29 10:36:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355752', 'tblTempUsageDetail_20' ) end [2025-01-29 10:36:28] Production.ERROR: pbx prc_insertCDR start [2025-01-29 10:36:28] Production.ERROR: pbx prc_insertCDR end [2025-01-29 10:36:28] Production.INFO: ==17940== Releasing lock... [2025-01-29 10:36:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 10:36:28] Production.INFO: 46.5 MB #Memory Used# [2025-01-29 10:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 07:37:06 [end_date_ymd] => 2025-01-29 10:37:06 [RateCDR] => 1 ) [2025-01-29 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-01-29 07:37:06' and `end` < '2025-01-29 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-01-29 10:37:19] Production.INFO: count ==2446 [2025-01-29 10:37:20] Production.ERROR: pbx CDR StartTime 2025-01-29 07:37:06 - End Time 2025-01-29 10:37:06 [2025-01-29 10:37:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 10:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355757', 'tblTempUsageDetail_20' ) start [2025-01-29 10:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355757', 'tblTempUsageDetail_20' ) end [2025-01-29 10:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355757', 'tblTempVendorCDR_20' ) start [2025-01-29 10:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355757', 'tblTempVendorCDR_20' ) end [2025-01-29 10:37:20] Production.INFO: ProcessCDR(1,14355757,1,1,2) [2025-01-29 10:37:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14355757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 10:37:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14355757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 10:37:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14355757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 10:37:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14355757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 10:37:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355757', 'tblTempUsageDetail_20' ) start [2025-01-29 10:37:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355757', 'tblTempUsageDetail_20' ) end [2025-01-29 10:37:25] Production.ERROR: pbx prc_insertCDR start [2025-01-29 10:37:25] Production.ERROR: pbx prc_insertCDR end [2025-01-29 10:37:25] Production.INFO: ==18017== Releasing lock... [2025-01-29 10:37:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 10:37:25] Production.INFO: 46.5 MB #Memory Used# [2025-01-29 10:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 07:38:05 [end_date_ymd] => 2025-01-29 10:38:05 [RateCDR] => 1 ) [2025-01-29 10:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 07:38:05' and `end` < '2025-01-29 10:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 10:38:22] Production.INFO: count ==2458 [2025-01-29 10:38:23] Production.ERROR: pbx CDR StartTime 2025-01-29 07:38:05 - End Time 2025-01-29 10:38:05 [2025-01-29 10:38:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 10:38:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355762', 'tblTempUsageDetail_20' ) start [2025-01-29 10:38:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355762', 'tblTempUsageDetail_20' ) end [2025-01-29 10:38:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355762', 'tblTempVendorCDR_20' ) start [2025-01-29 10:38:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355762', 'tblTempVendorCDR_20' ) end [2025-01-29 10:38:23] Production.INFO: ProcessCDR(1,14355762,1,1,2) [2025-01-29 10:38:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14355762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 10:38:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14355762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 10:38:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14355762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 10:38:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14355762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 10:38:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355762', 'tblTempUsageDetail_20' ) start [2025-01-29 10:38:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355762', 'tblTempUsageDetail_20' ) end [2025-01-29 10:38:29] Production.ERROR: pbx prc_insertCDR start [2025-01-29 10:38:29] Production.ERROR: pbx prc_insertCDR end [2025-01-29 10:38:29] Production.INFO: ==18094== Releasing lock... [2025-01-29 10:38:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 10:38:29] Production.INFO: 46.5 MB #Memory Used# [2025-01-29 10:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 07:39:06 [end_date_ymd] => 2025-01-29 10:39:06 [RateCDR] => 1 ) [2025-01-29 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-01-29 07:39:06' and `end` < '2025-01-29 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-01-29 10:39:25] Production.INFO: count ==2480 [2025-01-29 10:39:26] Production.ERROR: pbx CDR StartTime 2025-01-29 07:39:06 - End Time 2025-01-29 10:39:06 [2025-01-29 10:39:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 10:39:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355767', 'tblTempUsageDetail_20' ) start [2025-01-29 10:39:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355767', 'tblTempUsageDetail_20' ) end [2025-01-29 10:39:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355767', 'tblTempVendorCDR_20' ) start [2025-01-29 10:39:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355767', 'tblTempVendorCDR_20' ) end [2025-01-29 10:39:26] Production.INFO: ProcessCDR(1,14355767,1,1,2) [2025-01-29 10:39:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14355767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 10:39:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14355767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 10:39:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14355767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 10:39:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14355767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 10:39:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355767', 'tblTempUsageDetail_20' ) start [2025-01-29 10:39:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355767', 'tblTempUsageDetail_20' ) end [2025-01-29 10:39:31] Production.ERROR: pbx prc_insertCDR start [2025-01-29 10:39:31] Production.ERROR: pbx prc_insertCDR end [2025-01-29 10:39:31] Production.INFO: ==18173== Releasing lock... [2025-01-29 10:39:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 10:39:31] Production.INFO: 46.75 MB #Memory Used# [2025-01-29 10:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 07:40:06 [end_date_ymd] => 2025-01-29 10:40:06 [RateCDR] => 1 ) [2025-01-29 10:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 07:40:06' and `end` < '2025-01-29 10:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 10:40:21] Production.INFO: count ==2504 [2025-01-29 10:40:22] Production.ERROR: pbx CDR StartTime 2025-01-29 07:40:06 - End Time 2025-01-29 10:40:06 [2025-01-29 10:40:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 10:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355773', 'tblTempUsageDetail_20' ) start [2025-01-29 10:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355773', 'tblTempUsageDetail_20' ) end [2025-01-29 10:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355773', 'tblTempVendorCDR_20' ) start [2025-01-29 10:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355773', 'tblTempVendorCDR_20' ) end [2025-01-29 10:40:22] Production.INFO: ProcessCDR(1,14355773,1,1,2) [2025-01-29 10:40:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14355773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 10:40:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14355773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 10:40:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14355773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 10:40:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14355773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 10:40:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355773', 'tblTempUsageDetail_20' ) start [2025-01-29 10:40:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355773', 'tblTempUsageDetail_20' ) end [2025-01-29 10:40:25] Production.ERROR: pbx prc_insertCDR start [2025-01-29 10:40:25] Production.ERROR: pbx prc_insertCDR end [2025-01-29 10:40:25] Production.INFO: ==18248== Releasing lock... [2025-01-29 10:40:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 10:40:25] Production.INFO: 47 MB #Memory Used# [2025-01-29 10:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 07:41:06 [end_date_ymd] => 2025-01-29 10:41:06 [RateCDR] => 1 ) [2025-01-29 10:41:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 07:41:06' and `end` < '2025-01-29 10:41:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 10:41:23] Production.INFO: count ==2614 [2025-01-29 10:41:24] Production.ERROR: pbx CDR StartTime 2025-01-29 07:41:06 - End Time 2025-01-29 10:41:06 [2025-01-29 10:41:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 10:41:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355778', 'tblTempUsageDetail_20' ) start [2025-01-29 10:41:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355778', 'tblTempUsageDetail_20' ) end [2025-01-29 10:41:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355778', 'tblTempVendorCDR_20' ) start [2025-01-29 10:41:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355778', 'tblTempVendorCDR_20' ) end [2025-01-29 10:41:24] Production.INFO: ProcessCDR(1,14355778,1,1,2) [2025-01-29 10:41:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14355778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 10:41:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14355778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 10:41:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14355778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 10:41:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14355778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 10:41:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355778', 'tblTempUsageDetail_20' ) start [2025-01-29 10:41:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355778', 'tblTempUsageDetail_20' ) end [2025-01-29 10:41:29] Production.ERROR: pbx prc_insertCDR start [2025-01-29 10:41:29] Production.ERROR: pbx prc_insertCDR end [2025-01-29 10:41:29] Production.INFO: ==18330== Releasing lock... [2025-01-29 10:41:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 10:41:29] Production.INFO: 47.75 MB #Memory Used# [2025-01-29 10:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 07:42:05 [end_date_ymd] => 2025-01-29 10:42:05 [RateCDR] => 1 ) [2025-01-29 10:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 07:42:05' and `end` < '2025-01-29 10:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 10:42:19] Production.INFO: count ==2628 [2025-01-29 10:42:20] Production.ERROR: pbx CDR StartTime 2025-01-29 07:42:05 - End Time 2025-01-29 10:42:05 [2025-01-29 10:42:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 10:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355783', 'tblTempUsageDetail_20' ) start [2025-01-29 10:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355783', 'tblTempUsageDetail_20' ) end [2025-01-29 10:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355783', 'tblTempVendorCDR_20' ) start [2025-01-29 10:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355783', 'tblTempVendorCDR_20' ) end [2025-01-29 10:42:20] Production.INFO: ProcessCDR(1,14355783,1,1,2) [2025-01-29 10:42:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14355783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 10:42:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14355783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 10:42:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14355783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 10:42:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14355783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 10:42:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355783', 'tblTempUsageDetail_20' ) start [2025-01-29 10:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355783', 'tblTempUsageDetail_20' ) end [2025-01-29 10:42:26] Production.ERROR: pbx prc_insertCDR start [2025-01-29 10:42:26] Production.ERROR: pbx prc_insertCDR end [2025-01-29 10:42:26] Production.INFO: ==18405== Releasing lock... [2025-01-29 10:42:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 10:42:26] Production.INFO: 47.75 MB #Memory Used# [2025-01-29 10:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 07:43:05 [end_date_ymd] => 2025-01-29 10:43:05 [RateCDR] => 1 ) [2025-01-29 10:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 07:43:05' and `end` < '2025-01-29 10:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 10:43:19] Production.INFO: count ==2635 [2025-01-29 10:43:20] Production.ERROR: pbx CDR StartTime 2025-01-29 07:43:05 - End Time 2025-01-29 10:43:05 [2025-01-29 10:43:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 10:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355788', 'tblTempUsageDetail_20' ) start [2025-01-29 10:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355788', 'tblTempUsageDetail_20' ) end [2025-01-29 10:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355788', 'tblTempVendorCDR_20' ) start [2025-01-29 10:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355788', 'tblTempVendorCDR_20' ) end [2025-01-29 10:43:20] Production.INFO: ProcessCDR(1,14355788,1,1,2) [2025-01-29 10:43:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14355788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 10:43:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14355788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 10:43:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14355788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 10:43:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14355788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 10:43:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355788', 'tblTempUsageDetail_20' ) start [2025-01-29 10:43:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355788', 'tblTempUsageDetail_20' ) end [2025-01-29 10:43:25] Production.ERROR: pbx prc_insertCDR start [2025-01-29 10:43:25] Production.ERROR: pbx prc_insertCDR end [2025-01-29 10:43:25] Production.INFO: ==18478== Releasing lock... [2025-01-29 10:43:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 10:43:25] Production.INFO: 47.75 MB #Memory Used# [2025-01-29 10:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 07:44:05 [end_date_ymd] => 2025-01-29 10:44:05 [RateCDR] => 1 ) [2025-01-29 10:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 07:44:05' and `end` < '2025-01-29 10:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 10:44:19] Production.INFO: count ==2641 [2025-01-29 10:44:20] Production.ERROR: pbx CDR StartTime 2025-01-29 07:44:05 - End Time 2025-01-29 10:44:05 [2025-01-29 10:44:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 10:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355793', 'tblTempUsageDetail_20' ) start [2025-01-29 10:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355793', 'tblTempUsageDetail_20' ) end [2025-01-29 10:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355793', 'tblTempVendorCDR_20' ) start [2025-01-29 10:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355793', 'tblTempVendorCDR_20' ) end [2025-01-29 10:44:20] Production.INFO: ProcessCDR(1,14355793,1,1,2) [2025-01-29 10:44:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14355793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 10:44:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14355793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 10:44:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14355793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 10:44:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14355793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 10:44:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355793', 'tblTempUsageDetail_20' ) start [2025-01-29 10:44:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355793', 'tblTempUsageDetail_20' ) end [2025-01-29 10:44:25] Production.ERROR: pbx prc_insertCDR start [2025-01-29 10:44:25] Production.ERROR: pbx prc_insertCDR end [2025-01-29 10:44:25] Production.INFO: ==18553== Releasing lock... [2025-01-29 10:44:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 10:44:25] Production.INFO: 48 MB #Memory Used# [2025-01-29 10:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 07:45:05 [end_date_ymd] => 2025-01-29 10:45:05 [RateCDR] => 1 ) [2025-01-29 10:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 07:45:05' and `end` < '2025-01-29 10:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 10:45:24] Production.INFO: count ==2660 [2025-01-29 10:45:25] Production.ERROR: pbx CDR StartTime 2025-01-29 07:45:05 - End Time 2025-01-29 10:45:05 [2025-01-29 10:45:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 10:45:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355798', 'tblTempUsageDetail_20' ) start [2025-01-29 10:45:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355798', 'tblTempUsageDetail_20' ) end [2025-01-29 10:45:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355798', 'tblTempVendorCDR_20' ) start [2025-01-29 10:45:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355798', 'tblTempVendorCDR_20' ) end [2025-01-29 10:45:25] Production.INFO: ProcessCDR(1,14355798,1,1,2) [2025-01-29 10:45:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14355798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 10:45:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14355798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 10:45:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14355798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 10:45:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14355798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 10:45:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355798', 'tblTempUsageDetail_20' ) start [2025-01-29 10:45:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355798', 'tblTempUsageDetail_20' ) end [2025-01-29 10:45:30] Production.ERROR: pbx prc_insertCDR start [2025-01-29 10:45:30] Production.ERROR: pbx prc_insertCDR end [2025-01-29 10:45:30] Production.INFO: ==18628== Releasing lock... [2025-01-29 10:45:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 10:45:30] Production.INFO: 48 MB #Memory Used# [2025-01-29 10:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 07:46:06 [end_date_ymd] => 2025-01-29 10:46:06 [RateCDR] => 1 ) [2025-01-29 10:46:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 07:46:06' and `end` < '2025-01-29 10:46:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 10:46:23] Production.INFO: count ==2698 [2025-01-29 10:46:24] Production.ERROR: pbx CDR StartTime 2025-01-29 07:46:06 - End Time 2025-01-29 10:46:06 [2025-01-29 10:46:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 10:46:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355803', 'tblTempUsageDetail_20' ) start [2025-01-29 10:46:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355803', 'tblTempUsageDetail_20' ) end [2025-01-29 10:46:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355803', 'tblTempVendorCDR_20' ) start [2025-01-29 10:46:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355803', 'tblTempVendorCDR_20' ) end [2025-01-29 10:46:24] Production.INFO: ProcessCDR(1,14355803,1,1,2) [2025-01-29 10:46:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14355803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 10:46:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14355803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 10:46:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14355803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 10:46:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14355803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 10:46:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355803', 'tblTempUsageDetail_20' ) start [2025-01-29 10:46:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355803', 'tblTempUsageDetail_20' ) end [2025-01-29 10:46:29] Production.ERROR: pbx prc_insertCDR start [2025-01-29 10:46:29] Production.ERROR: pbx prc_insertCDR end [2025-01-29 10:46:29] Production.INFO: ==18700== Releasing lock... [2025-01-29 10:46:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 10:46:29] Production.INFO: 48.25 MB #Memory Used# [2025-01-29 10:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 07:47:05 [end_date_ymd] => 2025-01-29 10:47:05 [RateCDR] => 1 ) [2025-01-29 10:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 07:47:05' and `end` < '2025-01-29 10:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 10:47:23] Production.INFO: count ==2712 [2025-01-29 10:47:24] Production.ERROR: pbx CDR StartTime 2025-01-29 07:47:05 - End Time 2025-01-29 10:47:05 [2025-01-29 10:47:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 10:47:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355808', 'tblTempUsageDetail_20' ) start [2025-01-29 10:47:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355808', 'tblTempUsageDetail_20' ) end [2025-01-29 10:47:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355808', 'tblTempVendorCDR_20' ) start [2025-01-29 10:47:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355808', 'tblTempVendorCDR_20' ) end [2025-01-29 10:47:24] Production.INFO: ProcessCDR(1,14355808,1,1,2) [2025-01-29 10:47:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14355808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 10:47:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14355808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 10:47:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14355808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 10:47:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14355808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 10:47:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355808', 'tblTempUsageDetail_20' ) start [2025-01-29 10:47:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355808', 'tblTempUsageDetail_20' ) end [2025-01-29 10:47:30] Production.ERROR: pbx prc_insertCDR start [2025-01-29 10:47:30] Production.ERROR: pbx prc_insertCDR end [2025-01-29 10:47:30] Production.INFO: ==18815== Releasing lock... [2025-01-29 10:47:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 10:47:30] Production.INFO: 48.75 MB #Memory Used# [2025-01-29 10:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 07:48:06 [end_date_ymd] => 2025-01-29 10:48:06 [RateCDR] => 1 ) [2025-01-29 10:48:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 07:48:06' and `end` < '2025-01-29 10:48:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 10:48:23] Production.INFO: count ==2722 [2025-01-29 10:48:24] Production.ERROR: pbx CDR StartTime 2025-01-29 07:48:06 - End Time 2025-01-29 10:48:06 [2025-01-29 10:48:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 10:48:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355813', 'tblTempUsageDetail_20' ) start [2025-01-29 10:48:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355813', 'tblTempUsageDetail_20' ) end [2025-01-29 10:48:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355813', 'tblTempVendorCDR_20' ) start [2025-01-29 10:48:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355813', 'tblTempVendorCDR_20' ) end [2025-01-29 10:48:24] Production.INFO: ProcessCDR(1,14355813,1,1,2) [2025-01-29 10:48:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14355813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 10:48:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14355813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 10:48:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14355813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 10:48:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14355813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 10:48:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355813', 'tblTempUsageDetail_20' ) start [2025-01-29 10:48:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355813', 'tblTempUsageDetail_20' ) end [2025-01-29 10:48:29] Production.ERROR: pbx prc_insertCDR start [2025-01-29 10:48:29] Production.ERROR: pbx prc_insertCDR end [2025-01-29 10:48:29] Production.INFO: ==18887== Releasing lock... [2025-01-29 10:48:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 10:48:29] Production.INFO: 48.5 MB #Memory Used# [2025-01-29 10:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 07:49:05 [end_date_ymd] => 2025-01-29 10:49:05 [RateCDR] => 1 ) [2025-01-29 10:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 07:49:05' and `end` < '2025-01-29 10:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 10:49:20] Production.INFO: count ==2731 [2025-01-29 10:49:21] Production.ERROR: pbx CDR StartTime 2025-01-29 07:49:05 - End Time 2025-01-29 10:49:05 [2025-01-29 10:49:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 10:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355818', 'tblTempUsageDetail_20' ) start [2025-01-29 10:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355818', 'tblTempUsageDetail_20' ) end [2025-01-29 10:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355818', 'tblTempVendorCDR_20' ) start [2025-01-29 10:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355818', 'tblTempVendorCDR_20' ) end [2025-01-29 10:49:21] Production.INFO: ProcessCDR(1,14355818,1,1,2) [2025-01-29 10:49:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14355818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 10:49:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14355818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 10:49:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14355818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 10:49:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14355818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 10:49:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355818', 'tblTempUsageDetail_20' ) start [2025-01-29 10:49:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355818', 'tblTempUsageDetail_20' ) end [2025-01-29 10:49:26] Production.ERROR: pbx prc_insertCDR start [2025-01-29 10:49:26] Production.ERROR: pbx prc_insertCDR end [2025-01-29 10:49:26] Production.INFO: ==18964== Releasing lock... [2025-01-29 10:49:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 10:49:26] Production.INFO: 48.5 MB #Memory Used# [2025-01-29 10:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 07:50:06 [end_date_ymd] => 2025-01-29 10:50:06 [RateCDR] => 1 ) [2025-01-29 10:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 07:50:06' and `end` < '2025-01-29 10:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 10:50:31] Production.INFO: count ==2747 [2025-01-29 10:50:33] Production.ERROR: pbx CDR StartTime 2025-01-29 07:50:06 - End Time 2025-01-29 10:50:06 [2025-01-29 10:50:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 10:50:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355824', 'tblTempUsageDetail_20' ) start [2025-01-29 10:50:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355824', 'tblTempUsageDetail_20' ) end [2025-01-29 10:50:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355824', 'tblTempVendorCDR_20' ) start [2025-01-29 10:50:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355824', 'tblTempVendorCDR_20' ) end [2025-01-29 10:50:33] Production.INFO: ProcessCDR(1,14355824,1,1,2) [2025-01-29 10:50:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14355824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 10:50:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14355824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 10:50:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14355824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 10:50:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14355824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 10:50:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355824', 'tblTempUsageDetail_20' ) start [2025-01-29 10:50:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355824', 'tblTempUsageDetail_20' ) end [2025-01-29 10:50:38] Production.ERROR: pbx prc_insertCDR start [2025-01-29 10:50:38] Production.ERROR: pbx prc_insertCDR end [2025-01-29 10:50:38] Production.INFO: ==19042== Releasing lock... [2025-01-29 10:50:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 10:50:38] Production.INFO: 48.75 MB #Memory Used# [2025-01-29 10:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 07:51:05 [end_date_ymd] => 2025-01-29 10:51:05 [RateCDR] => 1 ) [2025-01-29 10:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 07:51:05' and `end` < '2025-01-29 10:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 10:51:24] Production.INFO: count ==2842 [2025-01-29 10:51:25] Production.ERROR: pbx CDR StartTime 2025-01-29 07:51:05 - End Time 2025-01-29 10:51:05 [2025-01-29 10:51:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 10:51:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355829', 'tblTempUsageDetail_20' ) start [2025-01-29 10:51:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355829', 'tblTempUsageDetail_20' ) end [2025-01-29 10:51:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355829', 'tblTempVendorCDR_20' ) start [2025-01-29 10:51:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355829', 'tblTempVendorCDR_20' ) end [2025-01-29 10:51:25] Production.INFO: ProcessCDR(1,14355829,1,1,2) [2025-01-29 10:51:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14355829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 10:51:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14355829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 10:51:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14355829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 10:51:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14355829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 10:51:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355829', 'tblTempUsageDetail_20' ) start [2025-01-29 10:51:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355829', 'tblTempUsageDetail_20' ) end [2025-01-29 10:51:30] Production.ERROR: pbx prc_insertCDR start [2025-01-29 10:51:30] Production.ERROR: pbx prc_insertCDR end [2025-01-29 10:51:30] Production.INFO: ==19121== Releasing lock... [2025-01-29 10:51:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 10:51:30] Production.INFO: 49.25 MB #Memory Used# [2025-01-29 10:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 07:52:06 [end_date_ymd] => 2025-01-29 10:52:06 [RateCDR] => 1 ) [2025-01-29 10:52:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 07:52:06' and `end` < '2025-01-29 10:52:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 10:52:20] Production.INFO: count ==2848 [2025-01-29 10:52:21] Production.ERROR: pbx CDR StartTime 2025-01-29 07:52:06 - End Time 2025-01-29 10:52:06 [2025-01-29 10:52:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 10:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355834', 'tblTempUsageDetail_20' ) start [2025-01-29 10:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355834', 'tblTempUsageDetail_20' ) end [2025-01-29 10:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355834', 'tblTempVendorCDR_20' ) start [2025-01-29 10:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355834', 'tblTempVendorCDR_20' ) end [2025-01-29 10:52:21] Production.INFO: ProcessCDR(1,14355834,1,1,2) [2025-01-29 10:52:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14355834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 10:52:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14355834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 10:52:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14355834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 10:52:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14355834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 10:52:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355834', 'tblTempUsageDetail_20' ) start [2025-01-29 10:52:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355834', 'tblTempUsageDetail_20' ) end [2025-01-29 10:52:26] Production.ERROR: pbx prc_insertCDR start [2025-01-29 10:52:26] Production.ERROR: pbx prc_insertCDR end [2025-01-29 10:52:26] Production.INFO: ==19196== Releasing lock... [2025-01-29 10:52:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 10:52:26] Production.INFO: 49.5 MB #Memory Used# [2025-01-29 10:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 07:53:06 [end_date_ymd] => 2025-01-29 10:53:06 [RateCDR] => 1 ) [2025-01-29 10:53:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 07:53:06' and `end` < '2025-01-29 10:53:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 10:53:23] Production.INFO: count ==2867 [2025-01-29 10:53:24] Production.ERROR: pbx CDR StartTime 2025-01-29 07:53:06 - End Time 2025-01-29 10:53:06 [2025-01-29 10:53:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 10:53:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355839', 'tblTempUsageDetail_20' ) start [2025-01-29 10:53:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355839', 'tblTempUsageDetail_20' ) end [2025-01-29 10:53:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355839', 'tblTempVendorCDR_20' ) start [2025-01-29 10:53:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355839', 'tblTempVendorCDR_20' ) end [2025-01-29 10:53:24] Production.INFO: ProcessCDR(1,14355839,1,1,2) [2025-01-29 10:53:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14355839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 10:53:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14355839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 10:53:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14355839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 10:53:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14355839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 10:53:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355839', 'tblTempUsageDetail_20' ) start [2025-01-29 10:53:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355839', 'tblTempUsageDetail_20' ) end [2025-01-29 10:53:29] Production.ERROR: pbx prc_insertCDR start [2025-01-29 10:53:30] Production.ERROR: pbx prc_insertCDR end [2025-01-29 10:53:30] Production.INFO: ==19273== Releasing lock... [2025-01-29 10:53:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 10:53:30] Production.INFO: 49.5 MB #Memory Used# [2025-01-29 10:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 07:54:05 [end_date_ymd] => 2025-01-29 10:54:05 [RateCDR] => 1 ) [2025-01-29 10:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 07:54:05' and `end` < '2025-01-29 10:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 10:54:22] Production.INFO: count ==2886 [2025-01-29 10:54:24] Production.ERROR: pbx CDR StartTime 2025-01-29 07:54:05 - End Time 2025-01-29 10:54:05 [2025-01-29 10:54:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 10:54:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355844', 'tblTempUsageDetail_20' ) start [2025-01-29 10:54:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355844', 'tblTempUsageDetail_20' ) end [2025-01-29 10:54:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355844', 'tblTempVendorCDR_20' ) start [2025-01-29 10:54:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355844', 'tblTempVendorCDR_20' ) end [2025-01-29 10:54:24] Production.INFO: ProcessCDR(1,14355844,1,1,2) [2025-01-29 10:54:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14355844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 10:54:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14355844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 10:54:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14355844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 10:54:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14355844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 10:54:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355844', 'tblTempUsageDetail_20' ) start [2025-01-29 10:54:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355844', 'tblTempUsageDetail_20' ) end [2025-01-29 10:54:29] Production.ERROR: pbx prc_insertCDR start [2025-01-29 10:54:29] Production.ERROR: pbx prc_insertCDR end [2025-01-29 10:54:29] Production.INFO: ==19354== Releasing lock... [2025-01-29 10:54:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 10:54:29] Production.INFO: 49.5 MB #Memory Used# [2025-01-29 10:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 07:55:06 [end_date_ymd] => 2025-01-29 10:55:06 [RateCDR] => 1 ) [2025-01-29 10:55:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 07:55:06' and `end` < '2025-01-29 10:55:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 10:55:19] Production.INFO: count ==2888 [2025-01-29 10:55:20] Production.ERROR: pbx CDR StartTime 2025-01-29 07:55:06 - End Time 2025-01-29 10:55:06 [2025-01-29 10:55:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 10:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355849', 'tblTempUsageDetail_20' ) start [2025-01-29 10:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355849', 'tblTempUsageDetail_20' ) end [2025-01-29 10:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355849', 'tblTempVendorCDR_20' ) start [2025-01-29 10:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355849', 'tblTempVendorCDR_20' ) end [2025-01-29 10:55:21] Production.INFO: ProcessCDR(1,14355849,1,1,2) [2025-01-29 10:55:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14355849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 10:55:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14355849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 10:55:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14355849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 10:55:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14355849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 10:55:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355849', 'tblTempUsageDetail_20' ) start [2025-01-29 10:55:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355849', 'tblTempUsageDetail_20' ) end [2025-01-29 10:55:26] Production.ERROR: pbx prc_insertCDR start [2025-01-29 10:55:26] Production.ERROR: pbx prc_insertCDR end [2025-01-29 10:55:26] Production.INFO: ==19429== Releasing lock... [2025-01-29 10:55:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 10:55:26] Production.INFO: 49.5 MB #Memory Used# [2025-01-29 10:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 07:56:05 [end_date_ymd] => 2025-01-29 10:56:05 [RateCDR] => 1 ) [2025-01-29 10:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 07:56:05' and `end` < '2025-01-29 10:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 10:56:20] Production.INFO: count ==2913 [2025-01-29 10:56:22] Production.ERROR: pbx CDR StartTime 2025-01-29 07:56:05 - End Time 2025-01-29 10:56:05 [2025-01-29 10:56:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 10:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355854', 'tblTempUsageDetail_20' ) start [2025-01-29 10:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355854', 'tblTempUsageDetail_20' ) end [2025-01-29 10:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355854', 'tblTempVendorCDR_20' ) start [2025-01-29 10:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355854', 'tblTempVendorCDR_20' ) end [2025-01-29 10:56:22] Production.INFO: ProcessCDR(1,14355854,1,1,2) [2025-01-29 10:56:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14355854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 10:56:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14355854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 10:56:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14355854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 10:56:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14355854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 10:56:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355854', 'tblTempUsageDetail_20' ) start [2025-01-29 10:56:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355854', 'tblTempUsageDetail_20' ) end [2025-01-29 10:56:27] Production.ERROR: pbx prc_insertCDR start [2025-01-29 10:56:27] Production.ERROR: pbx prc_insertCDR end [2025-01-29 10:56:27] Production.INFO: ==19506== Releasing lock... [2025-01-29 10:56:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 10:56:27] Production.INFO: 49.75 MB #Memory Used# [2025-01-29 10:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 07:57:06 [end_date_ymd] => 2025-01-29 10:57:06 [RateCDR] => 1 ) [2025-01-29 10:57:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 07:57:06' and `end` < '2025-01-29 10:57:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 10:57:26] Production.INFO: count ==2918 [2025-01-29 10:57:28] Production.ERROR: pbx CDR StartTime 2025-01-29 07:57:06 - End Time 2025-01-29 10:57:06 [2025-01-29 10:57:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 10:57:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355859', 'tblTempUsageDetail_20' ) start [2025-01-29 10:57:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355859', 'tblTempUsageDetail_20' ) end [2025-01-29 10:57:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355859', 'tblTempVendorCDR_20' ) start [2025-01-29 10:57:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355859', 'tblTempVendorCDR_20' ) end [2025-01-29 10:57:28] Production.INFO: ProcessCDR(1,14355859,1,1,2) [2025-01-29 10:57:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14355859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 10:57:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14355859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 10:57:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14355859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 10:57:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14355859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 10:57:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355859', 'tblTempUsageDetail_20' ) start [2025-01-29 10:57:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355859', 'tblTempUsageDetail_20' ) end [2025-01-29 10:57:32] Production.ERROR: pbx prc_insertCDR start [2025-01-29 10:57:33] Production.ERROR: pbx prc_insertCDR end [2025-01-29 10:57:33] Production.INFO: ==19581== Releasing lock... [2025-01-29 10:57:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 10:57:33] Production.INFO: 49.75 MB #Memory Used# [2025-01-29 10:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 07:58:05 [end_date_ymd] => 2025-01-29 10:58:05 [RateCDR] => 1 ) [2025-01-29 10:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 07:58:05' and `end` < '2025-01-29 10:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 10:58:30] Production.INFO: count ==2932 [2025-01-29 10:58:32] Production.ERROR: pbx CDR StartTime 2025-01-29 07:58:05 - End Time 2025-01-29 10:58:05 [2025-01-29 10:58:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 10:58:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355864', 'tblTempUsageDetail_20' ) start [2025-01-29 10:58:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355864', 'tblTempUsageDetail_20' ) end [2025-01-29 10:58:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355864', 'tblTempVendorCDR_20' ) start [2025-01-29 10:58:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355864', 'tblTempVendorCDR_20' ) end [2025-01-29 10:58:32] Production.INFO: ProcessCDR(1,14355864,1,1,2) [2025-01-29 10:58:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14355864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 10:58:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14355864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 10:58:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14355864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 10:58:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14355864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 10:58:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355864', 'tblTempUsageDetail_20' ) start [2025-01-29 10:58:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355864', 'tblTempUsageDetail_20' ) end [2025-01-29 10:58:37] Production.ERROR: pbx prc_insertCDR start [2025-01-29 10:58:37] Production.ERROR: pbx prc_insertCDR end [2025-01-29 10:58:37] Production.INFO: ==19655== Releasing lock... [2025-01-29 10:58:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 10:58:37] Production.INFO: 50 MB #Memory Used# [2025-01-29 10:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 07:59:06 [end_date_ymd] => 2025-01-29 10:59:06 [RateCDR] => 1 ) [2025-01-29 10:59:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 07:59:06' and `end` < '2025-01-29 10:59:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 10:59:23] Production.INFO: count ==2948 [2025-01-29 10:59:24] Production.ERROR: pbx CDR StartTime 2025-01-29 07:59:06 - End Time 2025-01-29 10:59:06 [2025-01-29 10:59:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 10:59:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355869', 'tblTempUsageDetail_20' ) start [2025-01-29 10:59:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355869', 'tblTempUsageDetail_20' ) end [2025-01-29 10:59:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355869', 'tblTempVendorCDR_20' ) start [2025-01-29 10:59:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355869', 'tblTempVendorCDR_20' ) end [2025-01-29 10:59:24] Production.INFO: ProcessCDR(1,14355869,1,1,2) [2025-01-29 10:59:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14355869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 10:59:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14355869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 10:59:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14355869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 10:59:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14355869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 10:59:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355869', 'tblTempUsageDetail_20' ) start [2025-01-29 10:59:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355869', 'tblTempUsageDetail_20' ) end [2025-01-29 10:59:29] Production.ERROR: pbx prc_insertCDR start [2025-01-29 10:59:29] Production.ERROR: pbx prc_insertCDR end [2025-01-29 10:59:29] Production.INFO: ==19732== Releasing lock... [2025-01-29 10:59:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 10:59:29] Production.INFO: 50.5 MB #Memory Used# [2025-01-29 11:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 08:00:06 [end_date_ymd] => 2025-01-29 11:00:06 [RateCDR] => 1 ) [2025-01-29 11:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 08:00:06' and `end` < '2025-01-29 11:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 11:00:21] Production.INFO: count ==2959 [2025-01-29 11:00:23] Production.ERROR: pbx CDR StartTime 2025-01-29 08:00:06 - End Time 2025-01-29 11:00:06 [2025-01-29 11:00:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 11:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355875', 'tblTempUsageDetail_20' ) start [2025-01-29 11:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355875', 'tblTempUsageDetail_20' ) end [2025-01-29 11:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355875', 'tblTempVendorCDR_20' ) start [2025-01-29 11:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355875', 'tblTempVendorCDR_20' ) end [2025-01-29 11:00:23] Production.INFO: ProcessCDR(1,14355875,1,1,2) [2025-01-29 11:00:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14355875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 11:00:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14355875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 11:00:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14355875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 11:00:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14355875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 11:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355875', 'tblTempUsageDetail_20' ) start [2025-01-29 11:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355875', 'tblTempUsageDetail_20' ) end [2025-01-29 11:00:28] Production.ERROR: pbx prc_insertCDR start [2025-01-29 11:00:28] Production.ERROR: pbx prc_insertCDR end [2025-01-29 11:00:28] Production.INFO: ==19809== Releasing lock... [2025-01-29 11:00:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 11:00:28] Production.INFO: 51 MB #Memory Used# [2025-01-29 11:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 08:01:06 [end_date_ymd] => 2025-01-29 11:01:06 [RateCDR] => 1 ) [2025-01-29 11:01:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 08:01:06' and `end` < '2025-01-29 11:01:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 11:01:23] Production.INFO: count ==3079 [2025-01-29 11:01:24] Production.ERROR: pbx CDR StartTime 2025-01-29 08:01:06 - End Time 2025-01-29 11:01:06 [2025-01-29 11:01:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 11:01:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355880', 'tblTempUsageDetail_20' ) start [2025-01-29 11:01:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355880', 'tblTempUsageDetail_20' ) end [2025-01-29 11:01:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355880', 'tblTempVendorCDR_20' ) start [2025-01-29 11:01:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355880', 'tblTempVendorCDR_20' ) end [2025-01-29 11:01:24] Production.INFO: ProcessCDR(1,14355880,1,1,2) [2025-01-29 11:01:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14355880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 11:01:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14355880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 11:01:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14355880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 11:01:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14355880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 11:01:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355880', 'tblTempUsageDetail_20' ) start [2025-01-29 11:01:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355880', 'tblTempUsageDetail_20' ) end [2025-01-29 11:01:30] Production.ERROR: pbx prc_insertCDR start [2025-01-29 11:01:30] Production.ERROR: pbx prc_insertCDR end [2025-01-29 11:01:30] Production.INFO: ==19893== Releasing lock... [2025-01-29 11:01:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 11:01:30] Production.INFO: 51 MB #Memory Used# [2025-01-29 11:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 08:02:05 [end_date_ymd] => 2025-01-29 11:02:05 [RateCDR] => 1 ) [2025-01-29 11:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 08:02:05' and `end` < '2025-01-29 11:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 11:02:24] Production.INFO: count ==3080 [2025-01-29 11:02:25] Production.ERROR: pbx CDR StartTime 2025-01-29 08:02:05 - End Time 2025-01-29 11:02:05 [2025-01-29 11:02:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 11:02:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355885', 'tblTempUsageDetail_20' ) start [2025-01-29 11:02:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355885', 'tblTempUsageDetail_20' ) end [2025-01-29 11:02:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355885', 'tblTempVendorCDR_20' ) start [2025-01-29 11:02:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355885', 'tblTempVendorCDR_20' ) end [2025-01-29 11:02:25] Production.INFO: ProcessCDR(1,14355885,1,1,2) [2025-01-29 11:02:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14355885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 11:02:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14355885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 11:02:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14355885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 11:02:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14355885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 11:02:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355885', 'tblTempUsageDetail_20' ) start [2025-01-29 11:02:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355885', 'tblTempUsageDetail_20' ) end [2025-01-29 11:02:31] Production.ERROR: pbx prc_insertCDR start [2025-01-29 11:02:31] Production.ERROR: pbx prc_insertCDR end [2025-01-29 11:02:31] Production.INFO: ==20087== Releasing lock... [2025-01-29 11:02:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 11:02:31] Production.INFO: 52 MB #Memory Used# [2025-01-29 11:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 08:03:06 [end_date_ymd] => 2025-01-29 11:03:06 [RateCDR] => 1 ) [2025-01-29 11:03:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 08:03:06' and `end` < '2025-01-29 11:03:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 11:03:27] Production.INFO: count ==3092 [2025-01-29 11:03:29] Production.ERROR: pbx CDR StartTime 2025-01-29 08:03:06 - End Time 2025-01-29 11:03:06 [2025-01-29 11:03:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 11:03:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355890', 'tblTempUsageDetail_20' ) start [2025-01-29 11:03:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355890', 'tblTempUsageDetail_20' ) end [2025-01-29 11:03:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355890', 'tblTempVendorCDR_20' ) start [2025-01-29 11:03:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355890', 'tblTempVendorCDR_20' ) end [2025-01-29 11:03:29] Production.INFO: ProcessCDR(1,14355890,1,1,2) [2025-01-29 11:03:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14355890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 11:03:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14355890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 11:03:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14355890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 11:03:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14355890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 11:03:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355890', 'tblTempUsageDetail_20' ) start [2025-01-29 11:03:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355890', 'tblTempUsageDetail_20' ) end [2025-01-29 11:03:34] Production.ERROR: pbx prc_insertCDR start [2025-01-29 11:03:34] Production.ERROR: pbx prc_insertCDR end [2025-01-29 11:03:34] Production.INFO: ==20161== Releasing lock... [2025-01-29 11:03:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 11:03:34] Production.INFO: 51.75 MB #Memory Used# [2025-01-29 11:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 08:04:06 [end_date_ymd] => 2025-01-29 11:04:06 [RateCDR] => 1 ) [2025-01-29 11:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 08:04:06' and `end` < '2025-01-29 11:04:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 11:04:25] Production.INFO: count ==3108 [2025-01-29 11:04:27] Production.ERROR: pbx CDR StartTime 2025-01-29 08:04:06 - End Time 2025-01-29 11:04:06 [2025-01-29 11:04:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 11:04:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355895', 'tblTempUsageDetail_20' ) start [2025-01-29 11:04:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355895', 'tblTempUsageDetail_20' ) end [2025-01-29 11:04:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355895', 'tblTempVendorCDR_20' ) start [2025-01-29 11:04:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355895', 'tblTempVendorCDR_20' ) end [2025-01-29 11:04:27] Production.INFO: ProcessCDR(1,14355895,1,1,2) [2025-01-29 11:04:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14355895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 11:04:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14355895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 11:04:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14355895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 11:04:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14355895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 11:04:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355895', 'tblTempUsageDetail_20' ) start [2025-01-29 11:04:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355895', 'tblTempUsageDetail_20' ) end [2025-01-29 11:04:32] Production.ERROR: pbx prc_insertCDR start [2025-01-29 11:04:32] Production.ERROR: pbx prc_insertCDR end [2025-01-29 11:04:32] Production.INFO: ==20233== Releasing lock... [2025-01-29 11:04:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 11:04:32] Production.INFO: 51.75 MB #Memory Used# [2025-01-29 11:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 08:05:06 [end_date_ymd] => 2025-01-29 11:05:06 [RateCDR] => 1 ) [2025-01-29 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-01-29 08:05:06' and `end` < '2025-01-29 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-01-29 11:05:26] Production.INFO: count ==3121 [2025-01-29 11:05:27] Production.ERROR: pbx CDR StartTime 2025-01-29 08:05:06 - End Time 2025-01-29 11:05:06 [2025-01-29 11:05:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 11:05:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355900', 'tblTempUsageDetail_20' ) start [2025-01-29 11:05:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355900', 'tblTempUsageDetail_20' ) end [2025-01-29 11:05:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355900', 'tblTempVendorCDR_20' ) start [2025-01-29 11:05:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355900', 'tblTempVendorCDR_20' ) end [2025-01-29 11:05:27] Production.INFO: ProcessCDR(1,14355900,1,1,2) [2025-01-29 11:05:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14355900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 11:05:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14355900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 11:05:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14355900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 11:05:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14355900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 11:05:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355900', 'tblTempUsageDetail_20' ) start [2025-01-29 11:05:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355900', 'tblTempUsageDetail_20' ) end [2025-01-29 11:05:33] Production.ERROR: pbx prc_insertCDR start [2025-01-29 11:05:33] Production.ERROR: pbx prc_insertCDR end [2025-01-29 11:05:33] Production.INFO: ==20390== Releasing lock... [2025-01-29 11:05:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 11:05:33] Production.INFO: 51.75 MB #Memory Used# [2025-01-29 11:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 08:06:06 [end_date_ymd] => 2025-01-29 11:06:06 [RateCDR] => 1 ) [2025-01-29 11:06:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 08:06:06' and `end` < '2025-01-29 11:06:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 11:06:23] Production.INFO: count ==3153 [2025-01-29 11:06:25] Production.ERROR: pbx CDR StartTime 2025-01-29 08:06:06 - End Time 2025-01-29 11:06:06 [2025-01-29 11:06:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 11:06:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355905', 'tblTempUsageDetail_20' ) start [2025-01-29 11:06:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355905', 'tblTempUsageDetail_20' ) end [2025-01-29 11:06:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355905', 'tblTempVendorCDR_20' ) start [2025-01-29 11:06:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355905', 'tblTempVendorCDR_20' ) end [2025-01-29 11:06:25] Production.INFO: ProcessCDR(1,14355905,1,1,2) [2025-01-29 11:06:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14355905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 11:06:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14355905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 11:06:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14355905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 11:06:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14355905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 11:06:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355905', 'tblTempUsageDetail_20' ) start [2025-01-29 11:06:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355905', 'tblTempUsageDetail_20' ) end [2025-01-29 11:06:30] Production.ERROR: pbx prc_insertCDR start [2025-01-29 11:06:30] Production.ERROR: pbx prc_insertCDR end [2025-01-29 11:06:30] Production.INFO: ==20485== Releasing lock... [2025-01-29 11:06:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 11:06:30] Production.INFO: 52 MB #Memory Used# [2025-01-29 11:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 08:07:05 [end_date_ymd] => 2025-01-29 11:07:05 [RateCDR] => 1 ) [2025-01-29 11:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 08:07:05' and `end` < '2025-01-29 11:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 11:07:22] Production.INFO: count ==3176 [2025-01-29 11:07:24] Production.ERROR: pbx CDR StartTime 2025-01-29 08:07:05 - End Time 2025-01-29 11:07:05 [2025-01-29 11:07:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 11:07:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355910', 'tblTempUsageDetail_20' ) start [2025-01-29 11:07:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355910', 'tblTempUsageDetail_20' ) end [2025-01-29 11:07:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355910', 'tblTempVendorCDR_20' ) start [2025-01-29 11:07:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355910', 'tblTempVendorCDR_20' ) end [2025-01-29 11:07:24] Production.INFO: ProcessCDR(1,14355910,1,1,2) [2025-01-29 11:07:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14355910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 11:07:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14355910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 11:07:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14355910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 11:07:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14355910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 11:07:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355910', 'tblTempUsageDetail_20' ) start [2025-01-29 11:07:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355910', 'tblTempUsageDetail_20' ) end [2025-01-29 11:07:29] Production.ERROR: pbx prc_insertCDR start [2025-01-29 11:07:29] Production.ERROR: pbx prc_insertCDR end [2025-01-29 11:07:29] Production.INFO: ==20578== Releasing lock... [2025-01-29 11:07:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 11:07:29] Production.INFO: 52.5 MB #Memory Used# [2025-01-29 11:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 08:08:05 [end_date_ymd] => 2025-01-29 11:08:05 [RateCDR] => 1 ) [2025-01-29 11:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 08:08:05' and `end` < '2025-01-29 11:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 11:08:21] Production.INFO: count ==3191 [2025-01-29 11:08:23] Production.ERROR: pbx CDR StartTime 2025-01-29 08:08:05 - End Time 2025-01-29 11:08:05 [2025-01-29 11:08:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 11:08:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355915', 'tblTempUsageDetail_20' ) start [2025-01-29 11:08:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355915', 'tblTempUsageDetail_20' ) end [2025-01-29 11:08:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355915', 'tblTempVendorCDR_20' ) start [2025-01-29 11:08:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355915', 'tblTempVendorCDR_20' ) end [2025-01-29 11:08:23] Production.INFO: ProcessCDR(1,14355915,1,1,2) [2025-01-29 11:08:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14355915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 11:08:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14355915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 11:08:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14355915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 11:08:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14355915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 11:08:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355915', 'tblTempUsageDetail_20' ) start [2025-01-29 11:08:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355915', 'tblTempUsageDetail_20' ) end [2025-01-29 11:08:28] Production.ERROR: pbx prc_insertCDR start [2025-01-29 11:08:28] Production.ERROR: pbx prc_insertCDR end [2025-01-29 11:08:28] Production.INFO: ==20670== Releasing lock... [2025-01-29 11:08:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 11:08:28] Production.INFO: 53.25 MB #Memory Used# [2025-01-29 11:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 08:09:06 [end_date_ymd] => 2025-01-29 11:09:06 [RateCDR] => 1 ) [2025-01-29 11:09:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 08:09:06' and `end` < '2025-01-29 11:09:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 11:09:21] Production.INFO: count ==3190 [2025-01-29 11:09:22] Production.ERROR: pbx CDR StartTime 2025-01-29 08:09:06 - End Time 2025-01-29 11:09:06 [2025-01-29 11:09:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 11:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355920', 'tblTempUsageDetail_20' ) start [2025-01-29 11:09:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355920', 'tblTempUsageDetail_20' ) end [2025-01-29 11:09:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355920', 'tblTempVendorCDR_20' ) start [2025-01-29 11:09:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355920', 'tblTempVendorCDR_20' ) end [2025-01-29 11:09:23] Production.INFO: ProcessCDR(1,14355920,1,1,2) [2025-01-29 11:09:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14355920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 11:09:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14355920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 11:09:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14355920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 11:09:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14355920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 11:09:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355920', 'tblTempUsageDetail_20' ) start [2025-01-29 11:09:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355920', 'tblTempUsageDetail_20' ) end [2025-01-29 11:09:28] Production.ERROR: pbx prc_insertCDR start [2025-01-29 11:09:28] Production.ERROR: pbx prc_insertCDR end [2025-01-29 11:09:28] Production.INFO: ==20842== Releasing lock... [2025-01-29 11:09:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 11:09:28] Production.INFO: 52 MB #Memory Used# [2025-01-29 11:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 08:10:06 [end_date_ymd] => 2025-01-29 11:10:06 [RateCDR] => 1 ) [2025-01-29 11:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 08:10:06' and `end` < '2025-01-29 11:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 11:10:19] Production.INFO: count ==3189 [2025-01-29 11:10:20] Production.ERROR: pbx CDR StartTime 2025-01-29 08:10:06 - End Time 2025-01-29 11:10:06 [2025-01-29 11:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 11:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355925', 'tblTempUsageDetail_20' ) start [2025-01-29 11:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355925', 'tblTempUsageDetail_20' ) end [2025-01-29 11:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355925', 'tblTempVendorCDR_20' ) start [2025-01-29 11:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355925', 'tblTempVendorCDR_20' ) end [2025-01-29 11:10:21] Production.INFO: ProcessCDR(1,14355925,1,1,2) [2025-01-29 11:10:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14355925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 11:10:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14355925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 11:10:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14355925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 11:10:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14355925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 11:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355925', 'tblTempUsageDetail_20' ) start [2025-01-29 11:10:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355925', 'tblTempUsageDetail_20' ) end [2025-01-29 11:10:26] Production.ERROR: pbx prc_insertCDR start [2025-01-29 11:10:26] Production.ERROR: pbx prc_insertCDR end [2025-01-29 11:10:26] Production.INFO: ==20938== Releasing lock... [2025-01-29 11:10:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 11:10:26] Production.INFO: 52.25 MB #Memory Used# [2025-01-29 11:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 08:11:06 [end_date_ymd] => 2025-01-29 11:11:06 [RateCDR] => 1 ) [2025-01-29 11:11:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 08:11:06' and `end` < '2025-01-29 11:11:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 11:11:21] Production.INFO: count ==3236 [2025-01-29 11:11:22] Production.ERROR: pbx CDR StartTime 2025-01-29 08:11:06 - End Time 2025-01-29 11:11:06 [2025-01-29 11:11:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 11:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355931', 'tblTempUsageDetail_20' ) start [2025-01-29 11:11:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355931', 'tblTempUsageDetail_20' ) end [2025-01-29 11:11:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355931', 'tblTempVendorCDR_20' ) start [2025-01-29 11:11:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355931', 'tblTempVendorCDR_20' ) end [2025-01-29 11:11:23] Production.INFO: ProcessCDR(1,14355931,1,1,2) [2025-01-29 11:11:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14355931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 11:11:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14355931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 11:11:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14355931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 11:11:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14355931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 11:11:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355931', 'tblTempUsageDetail_20' ) start [2025-01-29 11:11:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355931', 'tblTempUsageDetail_20' ) end [2025-01-29 11:11:28] Production.ERROR: pbx prc_insertCDR start [2025-01-29 11:11:28] Production.ERROR: pbx prc_insertCDR end [2025-01-29 11:11:28] Production.INFO: ==21032== Releasing lock... [2025-01-29 11:11:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 11:11:28] Production.INFO: 52.75 MB #Memory Used# [2025-01-29 11:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 08:12:06 [end_date_ymd] => 2025-01-29 11:12:06 [RateCDR] => 1 ) [2025-01-29 11:12:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 08:12:06' and `end` < '2025-01-29 11:12:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 11:12:20] Production.INFO: count ==3213 [2025-01-29 11:12:21] Production.ERROR: pbx CDR StartTime 2025-01-29 08:12:06 - End Time 2025-01-29 11:12:06 [2025-01-29 11:12:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 11:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355936', 'tblTempUsageDetail_20' ) start [2025-01-29 11:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355936', 'tblTempUsageDetail_20' ) end [2025-01-29 11:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355936', 'tblTempVendorCDR_20' ) start [2025-01-29 11:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355936', 'tblTempVendorCDR_20' ) end [2025-01-29 11:12:21] Production.INFO: ProcessCDR(1,14355936,1,1,2) [2025-01-29 11:12:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14355936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 11:12:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14355936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 11:12:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14355936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 11:12:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14355936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 11:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355936', 'tblTempUsageDetail_20' ) start [2025-01-29 11:12:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355936', 'tblTempUsageDetail_20' ) end [2025-01-29 11:12:27] Production.ERROR: pbx prc_insertCDR start [2025-01-29 11:12:27] Production.ERROR: pbx prc_insertCDR end [2025-01-29 11:12:27] Production.INFO: ==21181== Releasing lock... [2025-01-29 11:12:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 11:12:27] Production.INFO: 52.5 MB #Memory Used# [2025-01-29 11:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 08:13:05 [end_date_ymd] => 2025-01-29 11:13:05 [RateCDR] => 1 ) [2025-01-29 11:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 08:13:05' and `end` < '2025-01-29 11:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 11:13:22] Production.INFO: count ==3214 [2025-01-29 11:13:24] Production.ERROR: pbx CDR StartTime 2025-01-29 08:13:05 - End Time 2025-01-29 11:13:05 [2025-01-29 11:13:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 11:13:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355941', 'tblTempUsageDetail_20' ) start [2025-01-29 11:13:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355941', 'tblTempUsageDetail_20' ) end [2025-01-29 11:13:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355941', 'tblTempVendorCDR_20' ) start [2025-01-29 11:13:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355941', 'tblTempVendorCDR_20' ) end [2025-01-29 11:13:24] Production.INFO: ProcessCDR(1,14355941,1,1,2) [2025-01-29 11:13:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14355941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 11:13:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14355941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 11:13:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14355941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 11:13:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14355941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 11:13:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355941', 'tblTempUsageDetail_20' ) start [2025-01-29 11:13:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355941', 'tblTempUsageDetail_20' ) end [2025-01-29 11:13:29] Production.ERROR: pbx prc_insertCDR start [2025-01-29 11:13:29] Production.ERROR: pbx prc_insertCDR end [2025-01-29 11:13:29] Production.INFO: ==21255== Releasing lock... [2025-01-29 11:13:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 11:13:29] Production.INFO: 52.25 MB #Memory Used# [2025-01-29 11:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 08:14:06 [end_date_ymd] => 2025-01-29 11:14:06 [RateCDR] => 1 ) [2025-01-29 11:14:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 08:14:06' and `end` < '2025-01-29 11:14:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 11:14:21] Production.INFO: count ==3241 [2025-01-29 11:14:23] Production.ERROR: pbx CDR StartTime 2025-01-29 08:14:06 - End Time 2025-01-29 11:14:06 [2025-01-29 11:14:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 11:14:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355946', 'tblTempUsageDetail_20' ) start [2025-01-29 11:14:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355946', 'tblTempUsageDetail_20' ) end [2025-01-29 11:14:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355946', 'tblTempVendorCDR_20' ) start [2025-01-29 11:14:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355946', 'tblTempVendorCDR_20' ) end [2025-01-29 11:14:23] Production.INFO: ProcessCDR(1,14355946,1,1,2) [2025-01-29 11:14:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14355946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 11:14:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14355946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 11:14:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14355946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 11:14:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14355946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 11:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355946', 'tblTempUsageDetail_20' ) start [2025-01-29 11:14:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355946', 'tblTempUsageDetail_20' ) end [2025-01-29 11:14:27] Production.ERROR: pbx prc_insertCDR start [2025-01-29 11:14:27] Production.ERROR: pbx prc_insertCDR end [2025-01-29 11:14:27] Production.INFO: ==21330== Releasing lock... [2025-01-29 11:14:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 11:14:27] Production.INFO: 53.25 MB #Memory Used# [2025-01-29 11:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 08:15:05 [end_date_ymd] => 2025-01-29 11:15:05 [RateCDR] => 1 ) [2025-01-29 11:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 08:15:05' and `end` < '2025-01-29 11:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 11:15:20] Production.INFO: count ==3264 [2025-01-29 11:15:22] Production.ERROR: pbx CDR StartTime 2025-01-29 08:15:05 - End Time 2025-01-29 11:15:05 [2025-01-29 11:15:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 11:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355951', 'tblTempUsageDetail_20' ) start [2025-01-29 11:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355951', 'tblTempUsageDetail_20' ) end [2025-01-29 11:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355951', 'tblTempVendorCDR_20' ) start [2025-01-29 11:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355951', 'tblTempVendorCDR_20' ) end [2025-01-29 11:15:22] Production.INFO: ProcessCDR(1,14355951,1,1,2) [2025-01-29 11:15:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14355951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 11:15:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14355951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 11:15:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14355951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 11:15:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14355951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 11:15:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355951', 'tblTempUsageDetail_20' ) start [2025-01-29 11:15:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355951', 'tblTempUsageDetail_20' ) end [2025-01-29 11:15:28] Production.ERROR: pbx prc_insertCDR start [2025-01-29 11:15:28] Production.ERROR: pbx prc_insertCDR end [2025-01-29 11:15:28] Production.INFO: ==21405== Releasing lock... [2025-01-29 11:15:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 11:15:28] Production.INFO: 53.25 MB #Memory Used# [2025-01-29 11:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 08:16:05 [end_date_ymd] => 2025-01-29 11:16:05 [RateCDR] => 1 ) [2025-01-29 11:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 08:16:05' and `end` < '2025-01-29 11:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 11:16:28] Production.INFO: count ==3257 [2025-01-29 11:16:30] Production.ERROR: pbx CDR StartTime 2025-01-29 08:16:05 - End Time 2025-01-29 11:16:05 [2025-01-29 11:16:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 11:16:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355956', 'tblTempUsageDetail_20' ) start [2025-01-29 11:16:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355956', 'tblTempUsageDetail_20' ) end [2025-01-29 11:16:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355956', 'tblTempVendorCDR_20' ) start [2025-01-29 11:16:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355956', 'tblTempVendorCDR_20' ) end [2025-01-29 11:16:30] Production.INFO: ProcessCDR(1,14355956,1,1,2) [2025-01-29 11:16:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14355956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 11:16:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14355956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 11:16:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14355956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 11:16:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14355956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 11:16:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355956', 'tblTempUsageDetail_20' ) start [2025-01-29 11:16:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355956', 'tblTempUsageDetail_20' ) end [2025-01-29 11:16:35] Production.ERROR: pbx prc_insertCDR start [2025-01-29 11:16:35] Production.ERROR: pbx prc_insertCDR end [2025-01-29 11:16:35] Production.INFO: ==21555== Releasing lock... [2025-01-29 11:16:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 11:16:35] Production.INFO: 52.75 MB #Memory Used# [2025-01-29 11:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 08:17:06 [end_date_ymd] => 2025-01-29 11:17:06 [RateCDR] => 1 ) [2025-01-29 11:17:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 08:17:06' and `end` < '2025-01-29 11:17:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 11:17:27] Production.INFO: count ==3291 [2025-01-29 11:17:28] Production.ERROR: pbx CDR StartTime 2025-01-29 08:17:06 - End Time 2025-01-29 11:17:06 [2025-01-29 11:17:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 11:17:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355961', 'tblTempUsageDetail_20' ) start [2025-01-29 11:17:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355961', 'tblTempUsageDetail_20' ) end [2025-01-29 11:17:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355961', 'tblTempVendorCDR_20' ) start [2025-01-29 11:17:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355961', 'tblTempVendorCDR_20' ) end [2025-01-29 11:17:28] Production.INFO: ProcessCDR(1,14355961,1,1,2) [2025-01-29 11:17:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14355961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 11:17:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14355961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 11:17:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14355961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 11:17:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14355961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 11:17:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355961', 'tblTempUsageDetail_20' ) start [2025-01-29 11:17:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355961', 'tblTempUsageDetail_20' ) end [2025-01-29 11:17:34] Production.ERROR: pbx prc_insertCDR start [2025-01-29 11:17:34] Production.ERROR: pbx prc_insertCDR end [2025-01-29 11:17:34] Production.INFO: ==21675== Releasing lock... [2025-01-29 11:17:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 11:17:34] Production.INFO: 53.25 MB #Memory Used# [2025-01-29 11:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 08:18:05 [end_date_ymd] => 2025-01-29 11:18:05 [RateCDR] => 1 ) [2025-01-29 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-01-29 08:18:05' and `end` < '2025-01-29 11:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 11:18:22] Production.INFO: count ==3322 [2025-01-29 11:18:24] Production.ERROR: pbx CDR StartTime 2025-01-29 08:18:05 - End Time 2025-01-29 11:18:05 [2025-01-29 11:18:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 11:18:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355966', 'tblTempUsageDetail_20' ) start [2025-01-29 11:18:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355966', 'tblTempUsageDetail_20' ) end [2025-01-29 11:18:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355966', 'tblTempVendorCDR_20' ) start [2025-01-29 11:18:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355966', 'tblTempVendorCDR_20' ) end [2025-01-29 11:18:24] Production.INFO: ProcessCDR(1,14355966,1,1,2) [2025-01-29 11:18:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14355966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 11:18:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14355966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 11:18:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14355966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 11:18:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14355966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 11:18:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355966', 'tblTempUsageDetail_20' ) start [2025-01-29 11:18:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355966', 'tblTempUsageDetail_20' ) end [2025-01-29 11:18:29] Production.ERROR: pbx prc_insertCDR start [2025-01-29 11:18:29] Production.ERROR: pbx prc_insertCDR end [2025-01-29 11:18:29] Production.INFO: ==21750== Releasing lock... [2025-01-29 11:18:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 11:18:29] Production.INFO: 53.5 MB #Memory Used# [2025-01-29 11:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 08:19:05 [end_date_ymd] => 2025-01-29 11:19:05 [RateCDR] => 1 ) [2025-01-29 11:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 08:19:05' and `end` < '2025-01-29 11:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 11:19:32] Production.INFO: count ==3339 [2025-01-29 11:19:33] Production.ERROR: pbx CDR StartTime 2025-01-29 08:19:05 - End Time 2025-01-29 11:19:05 [2025-01-29 11:19:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 11:19:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355971', 'tblTempUsageDetail_20' ) start [2025-01-29 11:19:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355971', 'tblTempUsageDetail_20' ) end [2025-01-29 11:19:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355971', 'tblTempVendorCDR_20' ) start [2025-01-29 11:19:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355971', 'tblTempVendorCDR_20' ) end [2025-01-29 11:19:33] Production.INFO: ProcessCDR(1,14355971,1,1,2) [2025-01-29 11:19:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14355971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 11:19:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14355971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 11:19:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14355971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 11:19:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14355971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 11:19:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355971', 'tblTempUsageDetail_20' ) start [2025-01-29 11:19:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355971', 'tblTempUsageDetail_20' ) end [2025-01-29 11:19:39] Production.ERROR: pbx prc_insertCDR start [2025-01-29 11:19:39] Production.ERROR: pbx prc_insertCDR end [2025-01-29 11:19:39] Production.INFO: ==21825== Releasing lock... [2025-01-29 11:19:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 11:19:39] Production.INFO: 53.5 MB #Memory Used# [2025-01-29 11:20:07] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 08:20:07 [end_date_ymd] => 2025-01-29 11:20:07 [RateCDR] => 1 ) [2025-01-29 11:20:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 08:20:07' and `end` < '2025-01-29 11:20:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 11:20:35] Production.INFO: count ==3368 [2025-01-29 11:20:36] Production.ERROR: pbx CDR StartTime 2025-01-29 08:20:07 - End Time 2025-01-29 11:20:07 [2025-01-29 11:20:36] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 11:20:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355977', 'tblTempUsageDetail_20' ) start [2025-01-29 11:20:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355977', 'tblTempUsageDetail_20' ) end [2025-01-29 11:20:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355977', 'tblTempVendorCDR_20' ) start [2025-01-29 11:20:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355977', 'tblTempVendorCDR_20' ) end [2025-01-29 11:20:36] Production.INFO: ProcessCDR(1,14355977,1,1,2) [2025-01-29 11:20:36] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14355977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 11:20:39] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14355977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 11:20:39] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14355977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 11:20:41] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14355977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 11:20:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355977', 'tblTempUsageDetail_20' ) start [2025-01-29 11:20:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355977', 'tblTempUsageDetail_20' ) end [2025-01-29 11:20:42] Production.ERROR: pbx prc_insertCDR start [2025-01-29 11:20:42] Production.ERROR: pbx prc_insertCDR end [2025-01-29 11:20:42] Production.INFO: ==21904== Releasing lock... [2025-01-29 11:20:42] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 11:20:42] Production.INFO: 53.5 MB #Memory Used# [2025-01-29 11:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 08:21:05 [end_date_ymd] => 2025-01-29 11:21:05 [RateCDR] => 1 ) [2025-01-29 11:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 08:21:05' and `end` < '2025-01-29 11:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 11:21:28] Production.INFO: count ==3431 [2025-01-29 11:21:29] Production.ERROR: pbx CDR StartTime 2025-01-29 08:21:05 - End Time 2025-01-29 11:21:05 [2025-01-29 11:21:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 11:21:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355982', 'tblTempUsageDetail_20' ) start [2025-01-29 11:21:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355982', 'tblTempUsageDetail_20' ) end [2025-01-29 11:21:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355982', 'tblTempVendorCDR_20' ) start [2025-01-29 11:21:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355982', 'tblTempVendorCDR_20' ) end [2025-01-29 11:21:30] Production.INFO: ProcessCDR(1,14355982,1,1,2) [2025-01-29 11:21:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14355982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 11:21:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14355982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 11:21:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14355982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 11:21:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14355982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 11:21:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355982', 'tblTempUsageDetail_20' ) start [2025-01-29 11:21:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355982', 'tblTempUsageDetail_20' ) end [2025-01-29 11:21:33] Production.ERROR: pbx prc_insertCDR start [2025-01-29 11:21:33] Production.ERROR: pbx prc_insertCDR end [2025-01-29 11:21:33] Production.INFO: ==21979== Releasing lock... [2025-01-29 11:21:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 11:21:33] Production.INFO: 54.25 MB #Memory Used# [2025-01-29 11:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 08:22:06 [end_date_ymd] => 2025-01-29 11:22:06 [RateCDR] => 1 ) [2025-01-29 11:22:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 08:22:06' and `end` < '2025-01-29 11:22:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 11:22:32] Production.INFO: count ==3460 [2025-01-29 11:22:34] Production.ERROR: pbx CDR StartTime 2025-01-29 08:22:06 - End Time 2025-01-29 11:22:06 [2025-01-29 11:22:34] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 11:22:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355987', 'tblTempUsageDetail_20' ) start [2025-01-29 11:22:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355987', 'tblTempUsageDetail_20' ) end [2025-01-29 11:22:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355987', 'tblTempVendorCDR_20' ) start [2025-01-29 11:22:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355987', 'tblTempVendorCDR_20' ) end [2025-01-29 11:22:34] Production.INFO: ProcessCDR(1,14355987,1,1,2) [2025-01-29 11:22:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14355987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 11:22:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14355987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 11:22:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14355987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 11:22:39] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14355987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 11:22:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355987', 'tblTempUsageDetail_20' ) start [2025-01-29 11:22:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355987', 'tblTempUsageDetail_20' ) end [2025-01-29 11:22:40] Production.ERROR: pbx prc_insertCDR start [2025-01-29 11:22:40] Production.ERROR: pbx prc_insertCDR end [2025-01-29 11:22:40] Production.INFO: ==22051== Releasing lock... [2025-01-29 11:22:40] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 11:22:40] Production.INFO: 54.25 MB #Memory Used# [2025-01-29 11:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 08:23:05 [end_date_ymd] => 2025-01-29 11:23:05 [RateCDR] => 1 ) [2025-01-29 11:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 08:23:05' and `end` < '2025-01-29 11:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 11:23:23] Production.INFO: count ==3469 [2025-01-29 11:23:24] Production.ERROR: pbx CDR StartTime 2025-01-29 08:23:05 - End Time 2025-01-29 11:23:05 [2025-01-29 11:23:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 11:23:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355992', 'tblTempUsageDetail_20' ) start [2025-01-29 11:23:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355992', 'tblTempUsageDetail_20' ) end [2025-01-29 11:23:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355992', 'tblTempVendorCDR_20' ) start [2025-01-29 11:23:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355992', 'tblTempVendorCDR_20' ) end [2025-01-29 11:23:24] Production.INFO: ProcessCDR(1,14355992,1,1,2) [2025-01-29 11:23:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14355992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 11:23:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14355992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 11:23:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14355992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 11:23:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14355992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 11:23:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355992', 'tblTempUsageDetail_20' ) start [2025-01-29 11:23:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355992', 'tblTempUsageDetail_20' ) end [2025-01-29 11:23:30] Production.ERROR: pbx prc_insertCDR start [2025-01-29 11:23:30] Production.ERROR: pbx prc_insertCDR end [2025-01-29 11:23:30] Production.INFO: ==22122== Releasing lock... [2025-01-29 11:23:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 11:23:30] Production.INFO: 54.5 MB #Memory Used# [2025-01-29 11:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 08:24:06 [end_date_ymd] => 2025-01-29 11:24:06 [RateCDR] => 1 ) [2025-01-29 11:24:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 08:24:06' and `end` < '2025-01-29 11:24:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 11:24:23] Production.INFO: count ==3486 [2025-01-29 11:24:25] Production.ERROR: pbx CDR StartTime 2025-01-29 08:24:06 - End Time 2025-01-29 11:24:06 [2025-01-29 11:24:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 11:24:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355997', 'tblTempUsageDetail_20' ) start [2025-01-29 11:24:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14355997', 'tblTempUsageDetail_20' ) end [2025-01-29 11:24:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355997', 'tblTempVendorCDR_20' ) start [2025-01-29 11:24:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14355997', 'tblTempVendorCDR_20' ) end [2025-01-29 11:24:25] Production.INFO: ProcessCDR(1,14355997,1,1,2) [2025-01-29 11:24:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14355997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 11:24:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14355997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 11:24:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14355997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 11:24:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14355997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 11:24:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355997', 'tblTempUsageDetail_20' ) start [2025-01-29 11:24:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14355997', 'tblTempUsageDetail_20' ) end [2025-01-29 11:24:30] Production.ERROR: pbx prc_insertCDR start [2025-01-29 11:24:30] Production.ERROR: pbx prc_insertCDR end [2025-01-29 11:24:30] Production.INFO: ==22198== Releasing lock... [2025-01-29 11:24:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 11:24:30] Production.INFO: 54.25 MB #Memory Used# [2025-01-29 11:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 08:25:06 [end_date_ymd] => 2025-01-29 11:25:06 [RateCDR] => 1 ) [2025-01-29 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-01-29 08:25:06' and `end` < '2025-01-29 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-01-29 11:25:27] Production.INFO: count ==3498 [2025-01-29 11:25:29] Production.ERROR: pbx CDR StartTime 2025-01-29 08:25:06 - End Time 2025-01-29 11:25:06 [2025-01-29 11:25:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 11:25:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356002', 'tblTempUsageDetail_20' ) start [2025-01-29 11:25:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356002', 'tblTempUsageDetail_20' ) end [2025-01-29 11:25:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356002', 'tblTempVendorCDR_20' ) start [2025-01-29 11:25:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356002', 'tblTempVendorCDR_20' ) end [2025-01-29 11:25:29] Production.INFO: ProcessCDR(1,14356002,1,1,2) [2025-01-29 11:25:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14356002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 11:25:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14356002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 11:25:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14356002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 11:25:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14356002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 11:25:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356002', 'tblTempUsageDetail_20' ) start [2025-01-29 11:25:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356002', 'tblTempUsageDetail_20' ) end [2025-01-29 11:25:34] Production.ERROR: pbx prc_insertCDR start [2025-01-29 11:25:34] Production.ERROR: pbx prc_insertCDR end [2025-01-29 11:25:34] Production.INFO: ==22270== Releasing lock... [2025-01-29 11:25:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 11:25:34] Production.INFO: 54 MB #Memory Used# [2025-01-29 11:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 08:26:05 [end_date_ymd] => 2025-01-29 11:26:05 [RateCDR] => 1 ) [2025-01-29 11:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 08:26:05' and `end` < '2025-01-29 11:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 11:26:24] Production.INFO: count ==3523 [2025-01-29 11:26:25] Production.ERROR: pbx CDR StartTime 2025-01-29 08:26:05 - End Time 2025-01-29 11:26:05 [2025-01-29 11:26:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 11:26:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356007', 'tblTempUsageDetail_20' ) start [2025-01-29 11:26:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356007', 'tblTempUsageDetail_20' ) end [2025-01-29 11:26:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356007', 'tblTempVendorCDR_20' ) start [2025-01-29 11:26:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356007', 'tblTempVendorCDR_20' ) end [2025-01-29 11:26:25] Production.INFO: ProcessCDR(1,14356007,1,1,2) [2025-01-29 11:26:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14356007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 11:26:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14356007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 11:26:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14356007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 11:26:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14356007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 11:26:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356007', 'tblTempUsageDetail_20' ) start [2025-01-29 11:26:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356007', 'tblTempUsageDetail_20' ) end [2025-01-29 11:26:31] Production.ERROR: pbx prc_insertCDR start [2025-01-29 11:26:31] Production.ERROR: pbx prc_insertCDR end [2025-01-29 11:26:31] Production.INFO: ==22340== Releasing lock... [2025-01-29 11:26:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 11:26:31] Production.INFO: 54.75 MB #Memory Used# [2025-01-29 11:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 08:27:05 [end_date_ymd] => 2025-01-29 11:27:05 [RateCDR] => 1 ) [2025-01-29 11:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 08:27:05' and `end` < '2025-01-29 11:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 11:27:26] Production.INFO: count ==3532 [2025-01-29 11:27:27] Production.ERROR: pbx CDR StartTime 2025-01-29 08:27:05 - End Time 2025-01-29 11:27:05 [2025-01-29 11:27:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 11:27:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356012', 'tblTempUsageDetail_20' ) start [2025-01-29 11:27:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356012', 'tblTempUsageDetail_20' ) end [2025-01-29 11:27:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356012', 'tblTempVendorCDR_20' ) start [2025-01-29 11:27:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356012', 'tblTempVendorCDR_20' ) end [2025-01-29 11:27:27] Production.INFO: ProcessCDR(1,14356012,1,1,2) [2025-01-29 11:27:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14356012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 11:27:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14356012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 11:27:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14356012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 11:27:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14356012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 11:27:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356012', 'tblTempUsageDetail_20' ) start [2025-01-29 11:27:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356012', 'tblTempUsageDetail_20' ) end [2025-01-29 11:27:33] Production.ERROR: pbx prc_insertCDR start [2025-01-29 11:27:33] Production.ERROR: pbx prc_insertCDR end [2025-01-29 11:27:33] Production.INFO: ==22415== Releasing lock... [2025-01-29 11:27:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 11:27:33] Production.INFO: 54.5 MB #Memory Used# [2025-01-29 11:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 08:28:06 [end_date_ymd] => 2025-01-29 11:28:06 [RateCDR] => 1 ) [2025-01-29 11:28:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 08:28:06' and `end` < '2025-01-29 11:28:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 11:28:27] Production.INFO: count ==3540 [2025-01-29 11:28:28] Production.ERROR: pbx CDR StartTime 2025-01-29 08:28:06 - End Time 2025-01-29 11:28:06 [2025-01-29 11:28:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 11:28:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356017', 'tblTempUsageDetail_20' ) start [2025-01-29 11:28:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356017', 'tblTempUsageDetail_20' ) end [2025-01-29 11:28:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356017', 'tblTempVendorCDR_20' ) start [2025-01-29 11:28:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356017', 'tblTempVendorCDR_20' ) end [2025-01-29 11:28:28] Production.INFO: ProcessCDR(1,14356017,1,1,2) [2025-01-29 11:28:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14356017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 11:28:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14356017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 11:28:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14356017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 11:28:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14356017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 11:28:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356017', 'tblTempUsageDetail_20' ) start [2025-01-29 11:28:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356017', 'tblTempUsageDetail_20' ) end [2025-01-29 11:28:33] Production.ERROR: pbx prc_insertCDR start [2025-01-29 11:28:33] Production.ERROR: pbx prc_insertCDR end [2025-01-29 11:28:33] Production.INFO: ==22486== Releasing lock... [2025-01-29 11:28:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 11:28:33] Production.INFO: 55.5 MB #Memory Used# [2025-01-29 11:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 08:29:05 [end_date_ymd] => 2025-01-29 11:29:05 [RateCDR] => 1 ) [2025-01-29 11:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 08:29:05' and `end` < '2025-01-29 11:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 11:29:24] Production.INFO: count ==3597 [2025-01-29 11:29:25] Production.ERROR: pbx CDR StartTime 2025-01-29 08:29:05 - End Time 2025-01-29 11:29:05 [2025-01-29 11:29:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 11:29:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356022', 'tblTempUsageDetail_20' ) start [2025-01-29 11:29:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356022', 'tblTempUsageDetail_20' ) end [2025-01-29 11:29:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356022', 'tblTempVendorCDR_20' ) start [2025-01-29 11:29:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356022', 'tblTempVendorCDR_20' ) end [2025-01-29 11:29:25] Production.INFO: ProcessCDR(1,14356022,1,1,2) [2025-01-29 11:29:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14356022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 11:29:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14356022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 11:29:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14356022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 11:29:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14356022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 11:29:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356022', 'tblTempUsageDetail_20' ) start [2025-01-29 11:29:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356022', 'tblTempUsageDetail_20' ) end [2025-01-29 11:29:31] Production.ERROR: pbx prc_insertCDR start [2025-01-29 11:29:31] Production.ERROR: pbx prc_insertCDR end [2025-01-29 11:29:31] Production.INFO: ==22561== Releasing lock... [2025-01-29 11:29:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 11:29:31] Production.INFO: 55.75 MB #Memory Used# [2025-01-29 11:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 08:30:06 [end_date_ymd] => 2025-01-29 11:30:06 [RateCDR] => 1 ) [2025-01-29 11:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 08:30:06' and `end` < '2025-01-29 11:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 11:30:26] Production.INFO: count ==3657 [2025-01-29 11:30:27] Production.ERROR: pbx CDR StartTime 2025-01-29 08:30:06 - End Time 2025-01-29 11:30:06 [2025-01-29 11:30:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 11:30:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356028', 'tblTempUsageDetail_20' ) start [2025-01-29 11:30:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356028', 'tblTempUsageDetail_20' ) end [2025-01-29 11:30:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356028', 'tblTempVendorCDR_20' ) start [2025-01-29 11:30:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356028', 'tblTempVendorCDR_20' ) end [2025-01-29 11:30:28] Production.INFO: ProcessCDR(1,14356028,1,1,2) [2025-01-29 11:30:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14356028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 11:30:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14356028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 11:30:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14356028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 11:30:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14356028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 11:30:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356028', 'tblTempUsageDetail_20' ) start [2025-01-29 11:30:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356028', 'tblTempUsageDetail_20' ) end [2025-01-29 11:30:33] Production.ERROR: pbx prc_insertCDR start [2025-01-29 11:30:33] Production.ERROR: pbx prc_insertCDR end [2025-01-29 11:30:33] Production.INFO: ==22638== Releasing lock... [2025-01-29 11:30:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 11:30:33] Production.INFO: 55.25 MB #Memory Used# [2025-01-29 11:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 08:31:05 [end_date_ymd] => 2025-01-29 11:31:05 [RateCDR] => 1 ) [2025-01-29 11:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 08:31:05' and `end` < '2025-01-29 11:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 11:31:24] Production.INFO: count ==3745 [2025-01-29 11:31:26] Production.ERROR: pbx CDR StartTime 2025-01-29 08:31:05 - End Time 2025-01-29 11:31:05 [2025-01-29 11:31:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 11:31:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356033', 'tblTempUsageDetail_20' ) start [2025-01-29 11:31:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356033', 'tblTempUsageDetail_20' ) end [2025-01-29 11:31:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356033', 'tblTempVendorCDR_20' ) start [2025-01-29 11:31:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356033', 'tblTempVendorCDR_20' ) end [2025-01-29 11:31:26] Production.INFO: ProcessCDR(1,14356033,1,1,2) [2025-01-29 11:31:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14356033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 11:31:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14356033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 11:31:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14356033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 11:31:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14356033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 11:31:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356033', 'tblTempUsageDetail_20' ) start [2025-01-29 11:31:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356033', 'tblTempUsageDetail_20' ) end [2025-01-29 11:31:31] Production.ERROR: pbx prc_insertCDR start [2025-01-29 11:31:31] Production.ERROR: pbx prc_insertCDR end [2025-01-29 11:31:31] Production.INFO: ==22713== Releasing lock... [2025-01-29 11:31:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 11:31:31] Production.INFO: 56 MB #Memory Used# [2025-01-29 11:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 08:32:06 [end_date_ymd] => 2025-01-29 11:32:06 [RateCDR] => 1 ) [2025-01-29 11:32:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 08:32:06' and `end` < '2025-01-29 11:32:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 11:32:22] Production.INFO: count ==3771 [2025-01-29 11:32:24] Production.ERROR: pbx CDR StartTime 2025-01-29 08:32:06 - End Time 2025-01-29 11:32:06 [2025-01-29 11:32:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 11:32:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356038', 'tblTempUsageDetail_20' ) start [2025-01-29 11:32:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356038', 'tblTempUsageDetail_20' ) end [2025-01-29 11:32:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356038', 'tblTempVendorCDR_20' ) start [2025-01-29 11:32:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356038', 'tblTempVendorCDR_20' ) end [2025-01-29 11:32:24] Production.INFO: ProcessCDR(1,14356038,1,1,2) [2025-01-29 11:32:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14356038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 11:32:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14356038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 11:32:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14356038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 11:32:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14356038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 11:32:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356038', 'tblTempUsageDetail_20' ) start [2025-01-29 11:32:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356038', 'tblTempUsageDetail_20' ) end [2025-01-29 11:32:29] Production.ERROR: pbx prc_insertCDR start [2025-01-29 11:32:29] Production.ERROR: pbx prc_insertCDR end [2025-01-29 11:32:29] Production.INFO: ==22787== Releasing lock... [2025-01-29 11:32:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 11:32:29] Production.INFO: 56.75 MB #Memory Used# [2025-01-29 11:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 08:33:05 [end_date_ymd] => 2025-01-29 11:33:05 [RateCDR] => 1 ) [2025-01-29 11:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 08:33:05' and `end` < '2025-01-29 11:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 11:33:20] Production.INFO: count ==3791 [2025-01-29 11:33:22] Production.ERROR: pbx CDR StartTime 2025-01-29 08:33:05 - End Time 2025-01-29 11:33:05 [2025-01-29 11:33:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 11:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356043', 'tblTempUsageDetail_20' ) start [2025-01-29 11:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356043', 'tblTempUsageDetail_20' ) end [2025-01-29 11:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356043', 'tblTempVendorCDR_20' ) start [2025-01-29 11:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356043', 'tblTempVendorCDR_20' ) end [2025-01-29 11:33:22] Production.INFO: ProcessCDR(1,14356043,1,1,2) [2025-01-29 11:33:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14356043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 11:33:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14356043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 11:33:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14356043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 11:33:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14356043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 11:33:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356043', 'tblTempUsageDetail_20' ) start [2025-01-29 11:33:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356043', 'tblTempUsageDetail_20' ) end [2025-01-29 11:33:27] Production.ERROR: pbx prc_insertCDR start [2025-01-29 11:33:27] Production.ERROR: pbx prc_insertCDR end [2025-01-29 11:33:27] Production.INFO: ==22901== Releasing lock... [2025-01-29 11:33:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 11:33:27] Production.INFO: 56.5 MB #Memory Used# [2025-01-29 11:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 08:34:06 [end_date_ymd] => 2025-01-29 11:34:06 [RateCDR] => 1 ) [2025-01-29 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-01-29 08:34:06' and `end` < '2025-01-29 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-01-29 11:34:19] Production.INFO: count ==3811 [2025-01-29 11:34:21] Production.ERROR: pbx CDR StartTime 2025-01-29 08:34:06 - End Time 2025-01-29 11:34:06 [2025-01-29 11:34:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 11:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356048', 'tblTempUsageDetail_20' ) start [2025-01-29 11:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356048', 'tblTempUsageDetail_20' ) end [2025-01-29 11:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356048', 'tblTempVendorCDR_20' ) start [2025-01-29 11:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356048', 'tblTempVendorCDR_20' ) end [2025-01-29 11:34:21] Production.INFO: ProcessCDR(1,14356048,1,1,2) [2025-01-29 11:34:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14356048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 11:34:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14356048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 11:34:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14356048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 11:34:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14356048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 11:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356048', 'tblTempUsageDetail_20' ) start [2025-01-29 11:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356048', 'tblTempUsageDetail_20' ) end [2025-01-29 11:34:26] Production.ERROR: pbx prc_insertCDR start [2025-01-29 11:34:26] Production.ERROR: pbx prc_insertCDR end [2025-01-29 11:34:26] Production.INFO: ==22974== Releasing lock... [2025-01-29 11:34:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 11:34:26] Production.INFO: 56.5 MB #Memory Used# [2025-01-29 11:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 08:35:05 [end_date_ymd] => 2025-01-29 11:35:05 [RateCDR] => 1 ) [2025-01-29 11:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 08:35:05' and `end` < '2025-01-29 11:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 11:35:29] Production.INFO: count ==3828 [2025-01-29 11:35:31] Production.ERROR: pbx CDR StartTime 2025-01-29 08:35:05 - End Time 2025-01-29 11:35:05 [2025-01-29 11:35:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 11:35:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356053', 'tblTempUsageDetail_20' ) start [2025-01-29 11:35:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356053', 'tblTempUsageDetail_20' ) end [2025-01-29 11:35:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356053', 'tblTempVendorCDR_20' ) start [2025-01-29 11:35:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356053', 'tblTempVendorCDR_20' ) end [2025-01-29 11:35:31] Production.INFO: ProcessCDR(1,14356053,1,1,2) [2025-01-29 11:35:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14356053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 11:35:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14356053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 11:35:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14356053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 11:35:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14356053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 11:35:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356053', 'tblTempUsageDetail_20' ) start [2025-01-29 11:35:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356053', 'tblTempUsageDetail_20' ) end [2025-01-29 11:35:36] Production.ERROR: pbx prc_insertCDR start [2025-01-29 11:35:36] Production.ERROR: pbx prc_insertCDR end [2025-01-29 11:35:36] Production.INFO: ==23047== Releasing lock... [2025-01-29 11:35:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 11:35:36] Production.INFO: 56.75 MB #Memory Used# [2025-01-29 11:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 08:36:06 [end_date_ymd] => 2025-01-29 11:36:06 [RateCDR] => 1 ) [2025-01-29 11:36:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 08:36:06' and `end` < '2025-01-29 11:36:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 11:36:24] Production.INFO: count ==3839 [2025-01-29 11:36:26] Production.ERROR: pbx CDR StartTime 2025-01-29 08:36:06 - End Time 2025-01-29 11:36:06 [2025-01-29 11:36:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 11:36:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356058', 'tblTempUsageDetail_20' ) start [2025-01-29 11:36:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356058', 'tblTempUsageDetail_20' ) end [2025-01-29 11:36:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356058', 'tblTempVendorCDR_20' ) start [2025-01-29 11:36:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356058', 'tblTempVendorCDR_20' ) end [2025-01-29 11:36:26] Production.INFO: ProcessCDR(1,14356058,1,1,2) [2025-01-29 11:36:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14356058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 11:36:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14356058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 11:36:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14356058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 11:36:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14356058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 11:36:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356058', 'tblTempUsageDetail_20' ) start [2025-01-29 11:36:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356058', 'tblTempUsageDetail_20' ) end [2025-01-29 11:36:31] Production.ERROR: pbx prc_insertCDR start [2025-01-29 11:36:31] Production.ERROR: pbx prc_insertCDR end [2025-01-29 11:36:31] Production.INFO: ==23127== Releasing lock... [2025-01-29 11:36:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 11:36:31] Production.INFO: 57.75 MB #Memory Used# [2025-01-29 11:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 08:37:05 [end_date_ymd] => 2025-01-29 11:37:05 [RateCDR] => 1 ) [2025-01-29 11:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 08:37:05' and `end` < '2025-01-29 11:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 11:37:23] Production.INFO: count ==3849 [2025-01-29 11:37:25] Production.ERROR: pbx CDR StartTime 2025-01-29 08:37:05 - End Time 2025-01-29 11:37:05 [2025-01-29 11:37:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 11:37:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356063', 'tblTempUsageDetail_20' ) start [2025-01-29 11:37:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356063', 'tblTempUsageDetail_20' ) end [2025-01-29 11:37:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356063', 'tblTempVendorCDR_20' ) start [2025-01-29 11:37:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356063', 'tblTempVendorCDR_20' ) end [2025-01-29 11:37:25] Production.INFO: ProcessCDR(1,14356063,1,1,2) [2025-01-29 11:37:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14356063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 11:37:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14356063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 11:37:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14356063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 11:37:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14356063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 11:37:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356063', 'tblTempUsageDetail_20' ) start [2025-01-29 11:37:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356063', 'tblTempUsageDetail_20' ) end [2025-01-29 11:37:30] Production.ERROR: pbx prc_insertCDR start [2025-01-29 11:37:30] Production.ERROR: pbx prc_insertCDR end [2025-01-29 11:37:30] Production.INFO: ==23198== Releasing lock... [2025-01-29 11:37:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 11:37:30] Production.INFO: 56.75 MB #Memory Used# [2025-01-29 11:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 08:38:05 [end_date_ymd] => 2025-01-29 11:38:05 [RateCDR] => 1 ) [2025-01-29 11:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 08:38:05' and `end` < '2025-01-29 11:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 11:38:20] Production.INFO: count ==3861 [2025-01-29 11:38:22] Production.ERROR: pbx CDR StartTime 2025-01-29 08:38:05 - End Time 2025-01-29 11:38:05 [2025-01-29 11:38:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 11:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356068', 'tblTempUsageDetail_20' ) start [2025-01-29 11:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356068', 'tblTempUsageDetail_20' ) end [2025-01-29 11:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356068', 'tblTempVendorCDR_20' ) start [2025-01-29 11:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356068', 'tblTempVendorCDR_20' ) end [2025-01-29 11:38:22] Production.INFO: ProcessCDR(1,14356068,1,1,2) [2025-01-29 11:38:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14356068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 11:38:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14356068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 11:38:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14356068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 11:38:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14356068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 11:38:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356068', 'tblTempUsageDetail_20' ) start [2025-01-29 11:38:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356068', 'tblTempUsageDetail_20' ) end [2025-01-29 11:38:27] Production.ERROR: pbx prc_insertCDR start [2025-01-29 11:38:27] Production.ERROR: pbx prc_insertCDR end [2025-01-29 11:38:27] Production.INFO: ==23270== Releasing lock... [2025-01-29 11:38:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 11:38:27] Production.INFO: 57 MB #Memory Used# [2025-01-29 11:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 08:39:05 [end_date_ymd] => 2025-01-29 11:39:05 [RateCDR] => 1 ) [2025-01-29 11:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 08:39:05' and `end` < '2025-01-29 11:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 11:39:21] Production.INFO: count ==3868 [2025-01-29 11:39:23] Production.ERROR: pbx CDR StartTime 2025-01-29 08:39:05 - End Time 2025-01-29 11:39:05 [2025-01-29 11:39:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 11:39:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356073', 'tblTempUsageDetail_20' ) start [2025-01-29 11:39:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356073', 'tblTempUsageDetail_20' ) end [2025-01-29 11:39:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356073', 'tblTempVendorCDR_20' ) start [2025-01-29 11:39:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356073', 'tblTempVendorCDR_20' ) end [2025-01-29 11:39:23] Production.INFO: ProcessCDR(1,14356073,1,1,2) [2025-01-29 11:39:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14356073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 11:39:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14356073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 11:39:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14356073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 11:39:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14356073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 11:39:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356073', 'tblTempUsageDetail_20' ) start [2025-01-29 11:39:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356073', 'tblTempUsageDetail_20' ) end [2025-01-29 11:39:29] Production.ERROR: pbx prc_insertCDR start [2025-01-29 11:39:29] Production.ERROR: pbx prc_insertCDR end [2025-01-29 11:39:29] Production.INFO: ==23344== Releasing lock... [2025-01-29 11:39:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 11:39:29] Production.INFO: 57 MB #Memory Used# [2025-01-29 11:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 08:40:06 [end_date_ymd] => 2025-01-29 11:40:06 [RateCDR] => 1 ) [2025-01-29 11:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 08:40:06' and `end` < '2025-01-29 11:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 11:40:34] Production.INFO: count ==3871 [2025-01-29 11:40:36] Production.ERROR: pbx CDR StartTime 2025-01-29 08:40:06 - End Time 2025-01-29 11:40:06 [2025-01-29 11:40:36] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 11:40:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356079', 'tblTempUsageDetail_20' ) start [2025-01-29 11:40:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356079', 'tblTempUsageDetail_20' ) end [2025-01-29 11:40:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356079', 'tblTempVendorCDR_20' ) start [2025-01-29 11:40:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356079', 'tblTempVendorCDR_20' ) end [2025-01-29 11:40:36] Production.INFO: ProcessCDR(1,14356079,1,1,2) [2025-01-29 11:40:36] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14356079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 11:40:38] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14356079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 11:40:38] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14356079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 11:40:41] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14356079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 11:40:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356079', 'tblTempUsageDetail_20' ) start [2025-01-29 11:40:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356079', 'tblTempUsageDetail_20' ) end [2025-01-29 11:40:41] Production.ERROR: pbx prc_insertCDR start [2025-01-29 11:40:41] Production.ERROR: pbx prc_insertCDR end [2025-01-29 11:40:41] Production.INFO: ==23418== Releasing lock... [2025-01-29 11:40:41] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 11:40:41] Production.INFO: 57 MB #Memory Used# [2025-01-29 11:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 08:41:05 [end_date_ymd] => 2025-01-29 11:41:05 [RateCDR] => 1 ) [2025-01-29 11:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 08:41:05' and `end` < '2025-01-29 11:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 11:41:23] Production.INFO: count ==3956 [2025-01-29 11:41:25] Production.ERROR: pbx CDR StartTime 2025-01-29 08:41:05 - End Time 2025-01-29 11:41:05 [2025-01-29 11:41:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 11:41:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356084', 'tblTempUsageDetail_20' ) start [2025-01-29 11:41:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356084', 'tblTempUsageDetail_20' ) end [2025-01-29 11:41:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356084', 'tblTempVendorCDR_20' ) start [2025-01-29 11:41:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356084', 'tblTempVendorCDR_20' ) end [2025-01-29 11:41:25] Production.INFO: ProcessCDR(1,14356084,1,1,2) [2025-01-29 11:41:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14356084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 11:41:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14356084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 11:41:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14356084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 11:41:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14356084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 11:41:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356084', 'tblTempUsageDetail_20' ) start [2025-01-29 11:41:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356084', 'tblTempUsageDetail_20' ) end [2025-01-29 11:41:30] Production.ERROR: pbx prc_insertCDR start [2025-01-29 11:41:30] Production.ERROR: pbx prc_insertCDR end [2025-01-29 11:41:30] Production.INFO: ==23492== Releasing lock... [2025-01-29 11:41:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 11:41:30] Production.INFO: 57.75 MB #Memory Used# [2025-01-29 11:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 08:42:06 [end_date_ymd] => 2025-01-29 11:42:06 [RateCDR] => 1 ) [2025-01-29 11:42:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 08:42:06' and `end` < '2025-01-29 11:42:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 11:42:22] Production.INFO: count ==3969 [2025-01-29 11:42:23] Production.ERROR: pbx CDR StartTime 2025-01-29 08:42:06 - End Time 2025-01-29 11:42:06 [2025-01-29 11:42:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 11:42:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356089', 'tblTempUsageDetail_20' ) start [2025-01-29 11:42:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356089', 'tblTempUsageDetail_20' ) end [2025-01-29 11:42:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356089', 'tblTempVendorCDR_20' ) start [2025-01-29 11:42:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356089', 'tblTempVendorCDR_20' ) end [2025-01-29 11:42:24] Production.INFO: ProcessCDR(1,14356089,1,1,2) [2025-01-29 11:42:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14356089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 11:42:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14356089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 11:42:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14356089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 11:42:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14356089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 11:42:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356089', 'tblTempUsageDetail_20' ) start [2025-01-29 11:42:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356089', 'tblTempUsageDetail_20' ) end [2025-01-29 11:42:29] Production.ERROR: pbx prc_insertCDR start [2025-01-29 11:42:29] Production.ERROR: pbx prc_insertCDR end [2025-01-29 11:42:29] Production.INFO: ==23568== Releasing lock... [2025-01-29 11:42:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 11:42:29] Production.INFO: 57.75 MB #Memory Used# [2025-01-29 11:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 08:43:05 [end_date_ymd] => 2025-01-29 11:43:05 [RateCDR] => 1 ) [2025-01-29 11:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 08:43:05' and `end` < '2025-01-29 11:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 11:43:19] Production.INFO: count ==3975 [2025-01-29 11:43:20] Production.ERROR: pbx CDR StartTime 2025-01-29 08:43:05 - End Time 2025-01-29 11:43:05 [2025-01-29 11:43:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 11:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356093', 'tblTempUsageDetail_20' ) start [2025-01-29 11:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356093', 'tblTempUsageDetail_20' ) end [2025-01-29 11:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356093', 'tblTempVendorCDR_20' ) start [2025-01-29 11:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356093', 'tblTempVendorCDR_20' ) end [2025-01-29 11:43:21] Production.INFO: ProcessCDR(1,14356093,1,1,2) [2025-01-29 11:43:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14356093,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 11:43:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14356093,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 11:43:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14356093,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 11:43:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14356093,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 11:43:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356093', 'tblTempUsageDetail_20' ) start [2025-01-29 11:43:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356093', 'tblTempUsageDetail_20' ) end [2025-01-29 11:43:26] Production.ERROR: pbx prc_insertCDR start [2025-01-29 11:43:26] Production.ERROR: pbx prc_insertCDR end [2025-01-29 11:43:26] Production.INFO: ==23638== Releasing lock... [2025-01-29 11:43:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 11:43:26] Production.INFO: 57.75 MB #Memory Used# [2025-01-29 11:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 08:44:06 [end_date_ymd] => 2025-01-29 11:44:06 [RateCDR] => 1 ) [2025-01-29 11:44:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 08:44:06' and `end` < '2025-01-29 11:44:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 11:44:24] Production.INFO: count ==3981 [2025-01-29 11:44:26] Production.ERROR: pbx CDR StartTime 2025-01-29 08:44:06 - End Time 2025-01-29 11:44:06 [2025-01-29 11:44:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 11:44:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356099', 'tblTempUsageDetail_20' ) start [2025-01-29 11:44:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356099', 'tblTempUsageDetail_20' ) end [2025-01-29 11:44:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356099', 'tblTempVendorCDR_20' ) start [2025-01-29 11:44:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356099', 'tblTempVendorCDR_20' ) end [2025-01-29 11:44:26] Production.INFO: ProcessCDR(1,14356099,1,1,2) [2025-01-29 11:44:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14356099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 11:44:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14356099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 11:44:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14356099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 11:44:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14356099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 11:44:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356099', 'tblTempUsageDetail_20' ) start [2025-01-29 11:44:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356099', 'tblTempUsageDetail_20' ) end [2025-01-29 11:44:31] Production.ERROR: pbx prc_insertCDR start [2025-01-29 11:44:31] Production.ERROR: pbx prc_insertCDR end [2025-01-29 11:44:31] Production.INFO: ==23719== Releasing lock... [2025-01-29 11:44:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 11:44:31] Production.INFO: 57.75 MB #Memory Used# [2025-01-29 11:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 08:45:06 [end_date_ymd] => 2025-01-29 11:45:06 [RateCDR] => 1 ) [2025-01-29 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-01-29 08:45:06' and `end` < '2025-01-29 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-01-29 11:45:25] Production.INFO: count ==3996 [2025-01-29 11:45:26] Production.ERROR: pbx CDR StartTime 2025-01-29 08:45:06 - End Time 2025-01-29 11:45:06 [2025-01-29 11:45:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 11:45:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356104', 'tblTempUsageDetail_20' ) start [2025-01-29 11:45:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356104', 'tblTempUsageDetail_20' ) end [2025-01-29 11:45:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356104', 'tblTempVendorCDR_20' ) start [2025-01-29 11:45:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356104', 'tblTempVendorCDR_20' ) end [2025-01-29 11:45:26] Production.INFO: ProcessCDR(1,14356104,1,1,2) [2025-01-29 11:45:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14356104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 11:45:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14356104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 11:45:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14356104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 11:45:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14356104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 11:45:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356104', 'tblTempUsageDetail_20' ) start [2025-01-29 11:45:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356104', 'tblTempUsageDetail_20' ) end [2025-01-29 11:45:32] Production.ERROR: pbx prc_insertCDR start [2025-01-29 11:45:32] Production.ERROR: pbx prc_insertCDR end [2025-01-29 11:45:32] Production.INFO: ==23806== Releasing lock... [2025-01-29 11:45:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 11:45:32] Production.INFO: 57.75 MB #Memory Used# [2025-01-29 11:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 08:46:06 [end_date_ymd] => 2025-01-29 11:46:06 [RateCDR] => 1 ) [2025-01-29 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-01-29 08:46:06' and `end` < '2025-01-29 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-01-29 11:46:22] Production.INFO: count ==4019 [2025-01-29 11:46:24] Production.ERROR: pbx CDR StartTime 2025-01-29 08:46:06 - End Time 2025-01-29 11:46:06 [2025-01-29 11:46:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 11:46:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356109', 'tblTempUsageDetail_20' ) start [2025-01-29 11:46:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356109', 'tblTempUsageDetail_20' ) end [2025-01-29 11:46:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356109', 'tblTempVendorCDR_20' ) start [2025-01-29 11:46:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356109', 'tblTempVendorCDR_20' ) end [2025-01-29 11:46:24] Production.INFO: ProcessCDR(1,14356109,1,1,2) [2025-01-29 11:46:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14356109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 11:46:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14356109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 11:46:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14356109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 11:46:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14356109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 11:46:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356109', 'tblTempUsageDetail_20' ) start [2025-01-29 11:46:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356109', 'tblTempUsageDetail_20' ) end [2025-01-29 11:46:29] Production.ERROR: pbx prc_insertCDR start [2025-01-29 11:46:29] Production.ERROR: pbx prc_insertCDR end [2025-01-29 11:46:29] Production.INFO: ==23887== Releasing lock... [2025-01-29 11:46:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 11:46:29] Production.INFO: 58 MB #Memory Used# [2025-01-29 11:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 08:47:05 [end_date_ymd] => 2025-01-29 11:47:05 [RateCDR] => 1 ) [2025-01-29 11:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 08:47:05' and `end` < '2025-01-29 11:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 11:47:23] Production.INFO: count ==4027 [2025-01-29 11:47:25] Production.ERROR: pbx CDR StartTime 2025-01-29 08:47:05 - End Time 2025-01-29 11:47:05 [2025-01-29 11:47:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 11:47:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356114', 'tblTempUsageDetail_20' ) start [2025-01-29 11:47:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356114', 'tblTempUsageDetail_20' ) end [2025-01-29 11:47:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356114', 'tblTempVendorCDR_20' ) start [2025-01-29 11:47:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356114', 'tblTempVendorCDR_20' ) end [2025-01-29 11:47:25] Production.INFO: ProcessCDR(1,14356114,1,1,2) [2025-01-29 11:47:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14356114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 11:47:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14356114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 11:47:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14356114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 11:47:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14356114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 11:47:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356114', 'tblTempUsageDetail_20' ) start [2025-01-29 11:47:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356114', 'tblTempUsageDetail_20' ) end [2025-01-29 11:47:30] Production.ERROR: pbx prc_insertCDR start [2025-01-29 11:47:30] Production.ERROR: pbx prc_insertCDR end [2025-01-29 11:47:30] Production.INFO: ==23969== Releasing lock... [2025-01-29 11:47:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 11:47:30] Production.INFO: 58 MB #Memory Used# [2025-01-29 11:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 08:48:06 [end_date_ymd] => 2025-01-29 11:48:06 [RateCDR] => 1 ) [2025-01-29 11:48:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 08:48:06' and `end` < '2025-01-29 11:48:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 11:48:24] Production.INFO: count ==4015 [2025-01-29 11:48:26] Production.ERROR: pbx CDR StartTime 2025-01-29 08:48:06 - End Time 2025-01-29 11:48:06 [2025-01-29 11:48:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 11:48:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356119', 'tblTempUsageDetail_20' ) start [2025-01-29 11:48:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356119', 'tblTempUsageDetail_20' ) end [2025-01-29 11:48:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356119', 'tblTempVendorCDR_20' ) start [2025-01-29 11:48:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356119', 'tblTempVendorCDR_20' ) end [2025-01-29 11:48:26] Production.INFO: ProcessCDR(1,14356119,1,1,2) [2025-01-29 11:48:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14356119,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 11:48:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14356119,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 11:48:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14356119,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 11:48:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14356119,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 11:48:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356119', 'tblTempUsageDetail_20' ) start [2025-01-29 11:48:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356119', 'tblTempUsageDetail_20' ) end [2025-01-29 11:48:32] Production.ERROR: pbx prc_insertCDR start [2025-01-29 11:48:32] Production.ERROR: pbx prc_insertCDR end [2025-01-29 11:48:32] Production.INFO: ==24093== Releasing lock... [2025-01-29 11:48:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 11:48:32] Production.INFO: 58.5 MB #Memory Used# [2025-01-29 11:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 08:49:05 [end_date_ymd] => 2025-01-29 11:49:05 [RateCDR] => 1 ) [2025-01-29 11:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 08:49:05' and `end` < '2025-01-29 11:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 11:49:20] Production.INFO: count ==4007 [2025-01-29 11:49:22] Production.ERROR: pbx CDR StartTime 2025-01-29 08:49:05 - End Time 2025-01-29 11:49:05 [2025-01-29 11:49:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 11:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356124', 'tblTempUsageDetail_20' ) start [2025-01-29 11:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356124', 'tblTempUsageDetail_20' ) end [2025-01-29 11:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356124', 'tblTempVendorCDR_20' ) start [2025-01-29 11:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356124', 'tblTempVendorCDR_20' ) end [2025-01-29 11:49:22] Production.INFO: ProcessCDR(1,14356124,1,1,2) [2025-01-29 11:49:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14356124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 11:49:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14356124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 11:49:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14356124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 11:49:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14356124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 11:49:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356124', 'tblTempUsageDetail_20' ) start [2025-01-29 11:49:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356124', 'tblTempUsageDetail_20' ) end [2025-01-29 11:49:27] Production.ERROR: pbx prc_insertCDR start [2025-01-29 11:49:27] Production.ERROR: pbx prc_insertCDR end [2025-01-29 11:49:27] Production.INFO: ==24170== Releasing lock... [2025-01-29 11:49:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 11:49:27] Production.INFO: 58.25 MB #Memory Used# [2025-01-29 11:50:07] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 08:50:07 [end_date_ymd] => 2025-01-29 11:50:07 [RateCDR] => 1 ) [2025-01-29 11:50:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 08:50:07' and `end` < '2025-01-29 11:50:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 11:50:30] Production.INFO: count ==4036 [2025-01-29 11:50:32] Production.ERROR: pbx CDR StartTime 2025-01-29 08:50:07 - End Time 2025-01-29 11:50:07 [2025-01-29 11:50:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 11:50:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356130', 'tblTempUsageDetail_20' ) start [2025-01-29 11:50:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356130', 'tblTempUsageDetail_20' ) end [2025-01-29 11:50:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356130', 'tblTempVendorCDR_20' ) start [2025-01-29 11:50:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356130', 'tblTempVendorCDR_20' ) end [2025-01-29 11:50:32] Production.INFO: ProcessCDR(1,14356130,1,1,2) [2025-01-29 11:50:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14356130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 11:50:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14356130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 11:50:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14356130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 11:50:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14356130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 11:50:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356130', 'tblTempUsageDetail_20' ) start [2025-01-29 11:50:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356130', 'tblTempUsageDetail_20' ) end [2025-01-29 11:50:38] Production.ERROR: pbx prc_insertCDR start [2025-01-29 11:50:38] Production.ERROR: pbx prc_insertCDR end [2025-01-29 11:50:38] Production.INFO: ==24253== Releasing lock... [2025-01-29 11:50:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 11:50:38] Production.INFO: 58.25 MB #Memory Used# [2025-01-29 11:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 08:51:05 [end_date_ymd] => 2025-01-29 11:51:05 [RateCDR] => 1 ) [2025-01-29 11:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 08:51:05' and `end` < '2025-01-29 11:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 11:51:23] Production.INFO: count ==4121 [2025-01-29 11:51:25] Production.ERROR: pbx CDR StartTime 2025-01-29 08:51:05 - End Time 2025-01-29 11:51:05 [2025-01-29 11:51:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 11:51:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356135', 'tblTempUsageDetail_20' ) start [2025-01-29 11:51:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356135', 'tblTempUsageDetail_20' ) end [2025-01-29 11:51:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356135', 'tblTempVendorCDR_20' ) start [2025-01-29 11:51:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356135', 'tblTempVendorCDR_20' ) end [2025-01-29 11:51:25] Production.INFO: ProcessCDR(1,14356135,1,1,2) [2025-01-29 11:51:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14356135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 11:51:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14356135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 11:51:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14356135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 11:51:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14356135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 11:51:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356135', 'tblTempUsageDetail_20' ) start [2025-01-29 11:51:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356135', 'tblTempUsageDetail_20' ) end [2025-01-29 11:51:30] Production.ERROR: pbx prc_insertCDR start [2025-01-29 11:51:30] Production.ERROR: pbx prc_insertCDR end [2025-01-29 11:51:30] Production.INFO: ==24338== Releasing lock... [2025-01-29 11:51:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 11:51:30] Production.INFO: 58.75 MB #Memory Used# [2025-01-29 11:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 08:52:05 [end_date_ymd] => 2025-01-29 11:52:05 [RateCDR] => 1 ) [2025-01-29 11:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 08:52:05' and `end` < '2025-01-29 11:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 11:52:23] Production.INFO: count ==4126 [2025-01-29 11:52:25] Production.ERROR: pbx CDR StartTime 2025-01-29 08:52:05 - End Time 2025-01-29 11:52:05 [2025-01-29 11:52:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 11:52:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356140', 'tblTempUsageDetail_20' ) start [2025-01-29 11:52:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356140', 'tblTempUsageDetail_20' ) end [2025-01-29 11:52:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356140', 'tblTempVendorCDR_20' ) start [2025-01-29 11:52:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356140', 'tblTempVendorCDR_20' ) end [2025-01-29 11:52:26] Production.INFO: ProcessCDR(1,14356140,1,1,2) [2025-01-29 11:52:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14356140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 11:52:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14356140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 11:52:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14356140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 11:52:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14356140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 11:52:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356140', 'tblTempUsageDetail_20' ) start [2025-01-29 11:52:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356140', 'tblTempUsageDetail_20' ) end [2025-01-29 11:52:31] Production.ERROR: pbx prc_insertCDR start [2025-01-29 11:52:31] Production.ERROR: pbx prc_insertCDR end [2025-01-29 11:52:31] Production.INFO: ==24423== Releasing lock... [2025-01-29 11:52:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 11:52:31] Production.INFO: 59 MB #Memory Used# [2025-01-29 11:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 08:53:05 [end_date_ymd] => 2025-01-29 11:53:05 [RateCDR] => 1 ) [2025-01-29 11:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 08:53:05' and `end` < '2025-01-29 11:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 11:53:22] Production.INFO: count ==4132 [2025-01-29 11:53:24] Production.ERROR: pbx CDR StartTime 2025-01-29 08:53:05 - End Time 2025-01-29 11:53:05 [2025-01-29 11:53:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 11:53:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356145', 'tblTempUsageDetail_20' ) start [2025-01-29 11:53:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356145', 'tblTempUsageDetail_20' ) end [2025-01-29 11:53:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356145', 'tblTempVendorCDR_20' ) start [2025-01-29 11:53:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356145', 'tblTempVendorCDR_20' ) end [2025-01-29 11:53:24] Production.INFO: ProcessCDR(1,14356145,1,1,2) [2025-01-29 11:53:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14356145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 11:53:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14356145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 11:53:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14356145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 11:53:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14356145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 11:53:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356145', 'tblTempUsageDetail_20' ) start [2025-01-29 11:53:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356145', 'tblTempUsageDetail_20' ) end [2025-01-29 11:53:29] Production.ERROR: pbx prc_insertCDR start [2025-01-29 11:53:29] Production.ERROR: pbx prc_insertCDR end [2025-01-29 11:53:29] Production.INFO: ==24501== Releasing lock... [2025-01-29 11:53:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 11:53:29] Production.INFO: 59 MB #Memory Used# [2025-01-29 11:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 08:54:06 [end_date_ymd] => 2025-01-29 11:54:06 [RateCDR] => 1 ) [2025-01-29 11:54:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 08:54:06' and `end` < '2025-01-29 11:54:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 11:54:20] Production.INFO: count ==4136 [2025-01-29 11:54:22] Production.ERROR: pbx CDR StartTime 2025-01-29 08:54:06 - End Time 2025-01-29 11:54:06 [2025-01-29 11:54:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 11:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356150', 'tblTempUsageDetail_20' ) start [2025-01-29 11:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356150', 'tblTempUsageDetail_20' ) end [2025-01-29 11:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356150', 'tblTempVendorCDR_20' ) start [2025-01-29 11:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356150', 'tblTempVendorCDR_20' ) end [2025-01-29 11:54:22] Production.INFO: ProcessCDR(1,14356150,1,1,2) [2025-01-29 11:54:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14356150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 11:54:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14356150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 11:54:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14356150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 11:54:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14356150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 11:54:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356150', 'tblTempUsageDetail_20' ) start [2025-01-29 11:54:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356150', 'tblTempUsageDetail_20' ) end [2025-01-29 11:54:27] Production.ERROR: pbx prc_insertCDR start [2025-01-29 11:54:27] Production.ERROR: pbx prc_insertCDR end [2025-01-29 11:54:27] Production.INFO: ==24587== Releasing lock... [2025-01-29 11:54:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 11:54:27] Production.INFO: 59 MB #Memory Used# [2025-01-29 11:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 08:55:05 [end_date_ymd] => 2025-01-29 11:55:05 [RateCDR] => 1 ) [2025-01-29 11:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 08:55:05' and `end` < '2025-01-29 11:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 11:55:31] Production.INFO: count ==4157 [2025-01-29 11:55:33] Production.ERROR: pbx CDR StartTime 2025-01-29 08:55:05 - End Time 2025-01-29 11:55:05 [2025-01-29 11:55:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 11:55:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356155', 'tblTempUsageDetail_20' ) start [2025-01-29 11:55:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356155', 'tblTempUsageDetail_20' ) end [2025-01-29 11:55:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356155', 'tblTempVendorCDR_20' ) start [2025-01-29 11:55:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356155', 'tblTempVendorCDR_20' ) end [2025-01-29 11:55:33] Production.INFO: ProcessCDR(1,14356155,1,1,2) [2025-01-29 11:55:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14356155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 11:55:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14356155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 11:55:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14356155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 11:55:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14356155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 11:55:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356155', 'tblTempUsageDetail_20' ) start [2025-01-29 11:55:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356155', 'tblTempUsageDetail_20' ) end [2025-01-29 11:55:39] Production.ERROR: pbx prc_insertCDR start [2025-01-29 11:55:39] Production.ERROR: pbx prc_insertCDR end [2025-01-29 11:55:39] Production.INFO: ==24687== Releasing lock... [2025-01-29 11:55:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 11:55:39] Production.INFO: 59.25 MB #Memory Used# [2025-01-29 11:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 08:56:05 [end_date_ymd] => 2025-01-29 11:56:05 [RateCDR] => 1 ) [2025-01-29 11:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 08:56:05' and `end` < '2025-01-29 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-01-29 11:56:24] Production.INFO: count ==4176 [2025-01-29 11:56:26] Production.ERROR: pbx CDR StartTime 2025-01-29 08:56:05 - End Time 2025-01-29 11:56:05 [2025-01-29 11:56:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 11:56:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356160', 'tblTempUsageDetail_20' ) start [2025-01-29 11:56:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356160', 'tblTempUsageDetail_20' ) end [2025-01-29 11:56:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356160', 'tblTempVendorCDR_20' ) start [2025-01-29 11:56:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356160', 'tblTempVendorCDR_20' ) end [2025-01-29 11:56:26] Production.INFO: ProcessCDR(1,14356160,1,1,2) [2025-01-29 11:56:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14356160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 11:56:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14356160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 11:56:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14356160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 11:56:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14356160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 11:56:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356160', 'tblTempUsageDetail_20' ) start [2025-01-29 11:56:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356160', 'tblTempUsageDetail_20' ) end [2025-01-29 11:56:32] Production.ERROR: pbx prc_insertCDR start [2025-01-29 11:56:32] Production.ERROR: pbx prc_insertCDR end [2025-01-29 11:56:32] Production.INFO: ==24765== Releasing lock... [2025-01-29 11:56:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 11:56:32] Production.INFO: 59.25 MB #Memory Used# [2025-01-29 11:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 08:57:05 [end_date_ymd] => 2025-01-29 11:57:05 [RateCDR] => 1 ) [2025-01-29 11:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 08:57:05' and `end` < '2025-01-29 11:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 11:57:20] Production.INFO: count ==4212 [2025-01-29 11:57:22] Production.ERROR: pbx CDR StartTime 2025-01-29 08:57:05 - End Time 2025-01-29 11:57:05 [2025-01-29 11:57:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 11:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356165', 'tblTempUsageDetail_20' ) start [2025-01-29 11:57:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356165', 'tblTempUsageDetail_20' ) end [2025-01-29 11:57:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356165', 'tblTempVendorCDR_20' ) start [2025-01-29 11:57:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356165', 'tblTempVendorCDR_20' ) end [2025-01-29 11:57:23] Production.INFO: ProcessCDR(1,14356165,1,1,2) [2025-01-29 11:57:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14356165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 11:57:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14356165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 11:57:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14356165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 11:57:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14356165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 11:57:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356165', 'tblTempUsageDetail_20' ) start [2025-01-29 11:57:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356165', 'tblTempUsageDetail_20' ) end [2025-01-29 11:57:28] Production.ERROR: pbx prc_insertCDR start [2025-01-29 11:57:28] Production.ERROR: pbx prc_insertCDR end [2025-01-29 11:57:28] Production.INFO: ==24844== Releasing lock... [2025-01-29 11:57:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 11:57:28] Production.INFO: 59.5 MB #Memory Used# [2025-01-29 11:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 08:58:06 [end_date_ymd] => 2025-01-29 11:58:06 [RateCDR] => 1 ) [2025-01-29 11:58:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 08:58:06' and `end` < '2025-01-29 11:58:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 11:58:19] Production.INFO: count ==4220 [2025-01-29 11:58:21] Production.ERROR: pbx CDR StartTime 2025-01-29 08:58:06 - End Time 2025-01-29 11:58:06 [2025-01-29 11:58:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 11:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356170', 'tblTempUsageDetail_20' ) start [2025-01-29 11:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356170', 'tblTempUsageDetail_20' ) end [2025-01-29 11:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356170', 'tblTempVendorCDR_20' ) start [2025-01-29 11:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356170', 'tblTempVendorCDR_20' ) end [2025-01-29 11:58:21] Production.INFO: ProcessCDR(1,14356170,1,1,2) [2025-01-29 11:58:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14356170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 11:58:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14356170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 11:58:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14356170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 11:58:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14356170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 11:58:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356170', 'tblTempUsageDetail_20' ) start [2025-01-29 11:58:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356170', 'tblTempUsageDetail_20' ) end [2025-01-29 11:58:27] Production.ERROR: pbx prc_insertCDR start [2025-01-29 11:58:27] Production.ERROR: pbx prc_insertCDR end [2025-01-29 11:58:27] Production.INFO: ==24936== Releasing lock... [2025-01-29 11:58:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 11:58:27] Production.INFO: 59.5 MB #Memory Used# [2025-01-29 11:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 08:59:05 [end_date_ymd] => 2025-01-29 11:59:05 [RateCDR] => 1 ) [2025-01-29 11:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 08:59:05' and `end` < '2025-01-29 11:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 11:59:19] Production.INFO: count ==4239 [2025-01-29 11:59:21] Production.ERROR: pbx CDR StartTime 2025-01-29 08:59:05 - End Time 2025-01-29 11:59:05 [2025-01-29 11:59:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 11:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356175', 'tblTempUsageDetail_20' ) start [2025-01-29 11:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356175', 'tblTempUsageDetail_20' ) end [2025-01-29 11:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356175', 'tblTempVendorCDR_20' ) start [2025-01-29 11:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356175', 'tblTempVendorCDR_20' ) end [2025-01-29 11:59:21] Production.INFO: ProcessCDR(1,14356175,1,1,2) [2025-01-29 11:59:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14356175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 11:59:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14356175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 11:59:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14356175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 11:59:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14356175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 11:59:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356175', 'tblTempUsageDetail_20' ) start [2025-01-29 11:59:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356175', 'tblTempUsageDetail_20' ) end [2025-01-29 11:59:26] Production.ERROR: pbx prc_insertCDR start [2025-01-29 11:59:26] Production.ERROR: pbx prc_insertCDR end [2025-01-29 11:59:26] Production.INFO: ==25010== Releasing lock... [2025-01-29 11:59:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 11:59:26] Production.INFO: 59.75 MB #Memory Used# [2025-01-29 12:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 09:00:06 [end_date_ymd] => 2025-01-29 12:00:06 [RateCDR] => 1 ) [2025-01-29 12:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 09:00:06' and `end` < '2025-01-29 12:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 12:00:29] Production.INFO: count ==4245 [2025-01-29 12:00:31] Production.ERROR: pbx CDR StartTime 2025-01-29 09:00:06 - End Time 2025-01-29 12:00:06 [2025-01-29 12:00:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 12:00:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356181', 'tblTempUsageDetail_20' ) start [2025-01-29 12:00:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356181', 'tblTempUsageDetail_20' ) end [2025-01-29 12:00:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356181', 'tblTempVendorCDR_20' ) start [2025-01-29 12:00:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356181', 'tblTempVendorCDR_20' ) end [2025-01-29 12:00:32] Production.INFO: ProcessCDR(1,14356181,1,1,2) [2025-01-29 12:00:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14356181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 12:00:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14356181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 12:00:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14356181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 12:00:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14356181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 12:00:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356181', 'tblTempUsageDetail_20' ) start [2025-01-29 12:00:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356181', 'tblTempUsageDetail_20' ) end [2025-01-29 12:00:37] Production.ERROR: pbx prc_insertCDR start [2025-01-29 12:00:37] Production.ERROR: pbx prc_insertCDR end [2025-01-29 12:00:37] Production.INFO: ==25092== Releasing lock... [2025-01-29 12:00:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 12:00:37] Production.INFO: 59.75 MB #Memory Used# [2025-01-29 12:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 09:01:05 [end_date_ymd] => 2025-01-29 12:01:05 [RateCDR] => 1 ) [2025-01-29 12:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 09:01:05' and `end` < '2025-01-29 12:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 12:01:23] Production.INFO: count ==4301 [2025-01-29 12:01:25] Production.ERROR: pbx CDR StartTime 2025-01-29 09:01:05 - End Time 2025-01-29 12:01:05 [2025-01-29 12:01:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 12:01:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356186', 'tblTempUsageDetail_20' ) start [2025-01-29 12:01:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356186', 'tblTempUsageDetail_20' ) end [2025-01-29 12:01:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356186', 'tblTempVendorCDR_20' ) start [2025-01-29 12:01:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356186', 'tblTempVendorCDR_20' ) end [2025-01-29 12:01:25] Production.INFO: ProcessCDR(1,14356186,1,1,2) [2025-01-29 12:01:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14356186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 12:01:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14356186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 12:01:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14356186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 12:01:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14356186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 12:01:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356186', 'tblTempUsageDetail_20' ) start [2025-01-29 12:01:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356186', 'tblTempUsageDetail_20' ) end [2025-01-29 12:01:30] Production.ERROR: pbx prc_insertCDR start [2025-01-29 12:01:30] Production.ERROR: pbx prc_insertCDR end [2025-01-29 12:01:30] Production.INFO: ==25185== Releasing lock... [2025-01-29 12:01:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 12:01:30] Production.INFO: 60.25 MB #Memory Used# [2025-01-29 12:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 09:02:06 [end_date_ymd] => 2025-01-29 12:02:06 [RateCDR] => 1 ) [2025-01-29 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-01-29 09:02:06' and `end` < '2025-01-29 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-01-29 12:02:26] Production.INFO: count ==4300 [2025-01-29 12:02:28] Production.ERROR: pbx CDR StartTime 2025-01-29 09:02:06 - End Time 2025-01-29 12:02:06 [2025-01-29 12:02:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 12:02:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356191', 'tblTempUsageDetail_20' ) start [2025-01-29 12:02:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356191', 'tblTempUsageDetail_20' ) end [2025-01-29 12:02:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356191', 'tblTempVendorCDR_20' ) start [2025-01-29 12:02:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356191', 'tblTempVendorCDR_20' ) end [2025-01-29 12:02:28] Production.INFO: ProcessCDR(1,14356191,1,1,2) [2025-01-29 12:02:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14356191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 12:02:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14356191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 12:02:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14356191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 12:02:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14356191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 12:02:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356191', 'tblTempUsageDetail_20' ) start [2025-01-29 12:02:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356191', 'tblTempUsageDetail_20' ) end [2025-01-29 12:02:34] Production.ERROR: pbx prc_insertCDR start [2025-01-29 12:02:34] Production.ERROR: pbx prc_insertCDR end [2025-01-29 12:02:34] Production.INFO: ==25273== Releasing lock... [2025-01-29 12:02:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 12:02:34] Production.INFO: 60.25 MB #Memory Used# [2025-01-29 12:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 09:03:05 [end_date_ymd] => 2025-01-29 12:03:05 [RateCDR] => 1 ) [2025-01-29 12:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 09:03:05' and `end` < '2025-01-29 12:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 12:03:24] Production.INFO: count ==4311 [2025-01-29 12:03:26] Production.ERROR: pbx CDR StartTime 2025-01-29 09:03:05 - End Time 2025-01-29 12:03:05 [2025-01-29 12:03:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 12:03:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356196', 'tblTempUsageDetail_20' ) start [2025-01-29 12:03:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356196', 'tblTempUsageDetail_20' ) end [2025-01-29 12:03:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356196', 'tblTempVendorCDR_20' ) start [2025-01-29 12:03:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356196', 'tblTempVendorCDR_20' ) end [2025-01-29 12:03:26] Production.INFO: ProcessCDR(1,14356196,1,1,2) [2025-01-29 12:03:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14356196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 12:03:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14356196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 12:03:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14356196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 12:03:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14356196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 12:03:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356196', 'tblTempUsageDetail_20' ) start [2025-01-29 12:03:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356196', 'tblTempUsageDetail_20' ) end [2025-01-29 12:03:31] Production.ERROR: pbx prc_insertCDR start [2025-01-29 12:03:31] Production.ERROR: pbx prc_insertCDR end [2025-01-29 12:03:31] Production.INFO: ==25357== Releasing lock... [2025-01-29 12:03:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 12:03:31] Production.INFO: 60.25 MB #Memory Used# [2025-01-29 12:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 09:04:06 [end_date_ymd] => 2025-01-29 12:04:06 [RateCDR] => 1 ) [2025-01-29 12:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 09:04:06' and `end` < '2025-01-29 12:04:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 12:04:20] Production.INFO: count ==4312 [2025-01-29 12:04:22] Production.ERROR: pbx CDR StartTime 2025-01-29 09:04:06 - End Time 2025-01-29 12:04:06 [2025-01-29 12:04:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 12:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356201', 'tblTempUsageDetail_20' ) start [2025-01-29 12:04:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356201', 'tblTempUsageDetail_20' ) end [2025-01-29 12:04:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356201', 'tblTempVendorCDR_20' ) start [2025-01-29 12:04:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356201', 'tblTempVendorCDR_20' ) end [2025-01-29 12:04:23] Production.INFO: ProcessCDR(1,14356201,1,1,2) [2025-01-29 12:04:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14356201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 12:04:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14356201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 12:04:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14356201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 12:04:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14356201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 12:04:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356201', 'tblTempUsageDetail_20' ) start [2025-01-29 12:04:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356201', 'tblTempUsageDetail_20' ) end [2025-01-29 12:04:28] Production.ERROR: pbx prc_insertCDR start [2025-01-29 12:04:28] Production.ERROR: pbx prc_insertCDR end [2025-01-29 12:04:28] Production.INFO: ==25484== Releasing lock... [2025-01-29 12:04:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 12:04:28] Production.INFO: 60.5 MB #Memory Used# [2025-01-29 12:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 09:05:05 [end_date_ymd] => 2025-01-29 12:05:05 [RateCDR] => 1 ) [2025-01-29 12:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 09:05:05' and `end` < '2025-01-29 12:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 12:05:22] Production.INFO: count ==4314 [2025-01-29 12:05:24] Production.ERROR: pbx CDR StartTime 2025-01-29 09:05:05 - End Time 2025-01-29 12:05:05 [2025-01-29 12:05:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 12:05:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356206', 'tblTempUsageDetail_20' ) start [2025-01-29 12:05:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356206', 'tblTempUsageDetail_20' ) end [2025-01-29 12:05:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356206', 'tblTempVendorCDR_20' ) start [2025-01-29 12:05:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356206', 'tblTempVendorCDR_20' ) end [2025-01-29 12:05:24] Production.INFO: ProcessCDR(1,14356206,1,1,2) [2025-01-29 12:05:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14356206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 12:05:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14356206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 12:05:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14356206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 12:05:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14356206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 12:05:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356206', 'tblTempUsageDetail_20' ) start [2025-01-29 12:05:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356206', 'tblTempUsageDetail_20' ) end [2025-01-29 12:05:29] Production.ERROR: pbx prc_insertCDR start [2025-01-29 12:05:29] Production.ERROR: pbx prc_insertCDR end [2025-01-29 12:05:29] Production.INFO: ==25567== Releasing lock... [2025-01-29 12:05:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 12:05:29] Production.INFO: 60.25 MB #Memory Used# [2025-01-29 12:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 09:06:06 [end_date_ymd] => 2025-01-29 12:06:06 [RateCDR] => 1 ) [2025-01-29 12:06:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 09:06:06' and `end` < '2025-01-29 12:06:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 12:06:22] Production.INFO: count ==4319 [2025-01-29 12:06:24] Production.ERROR: pbx CDR StartTime 2025-01-29 09:06:06 - End Time 2025-01-29 12:06:06 [2025-01-29 12:06:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 12:06:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356211', 'tblTempUsageDetail_20' ) start [2025-01-29 12:06:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356211', 'tblTempUsageDetail_20' ) end [2025-01-29 12:06:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356211', 'tblTempVendorCDR_20' ) start [2025-01-29 12:06:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356211', 'tblTempVendorCDR_20' ) end [2025-01-29 12:06:24] Production.INFO: ProcessCDR(1,14356211,1,1,2) [2025-01-29 12:06:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14356211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 12:06:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14356211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 12:06:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14356211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 12:06:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14356211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 12:06:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356211', 'tblTempUsageDetail_20' ) start [2025-01-29 12:06:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356211', 'tblTempUsageDetail_20' ) end [2025-01-29 12:06:30] Production.ERROR: pbx prc_insertCDR start [2025-01-29 12:06:30] Production.ERROR: pbx prc_insertCDR end [2025-01-29 12:06:30] Production.INFO: ==25648== Releasing lock... [2025-01-29 12:06:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 12:06:30] Production.INFO: 60.25 MB #Memory Used# [2025-01-29 12:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 09:07:05 [end_date_ymd] => 2025-01-29 12:07:05 [RateCDR] => 1 ) [2025-01-29 12:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 09:07:05' and `end` < '2025-01-29 12:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 12:07:23] Production.INFO: count ==4341 [2025-01-29 12:07:25] Production.ERROR: pbx CDR StartTime 2025-01-29 09:07:05 - End Time 2025-01-29 12:07:05 [2025-01-29 12:07:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 12:07:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356216', 'tblTempUsageDetail_20' ) start [2025-01-29 12:07:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356216', 'tblTempUsageDetail_20' ) end [2025-01-29 12:07:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356216', 'tblTempVendorCDR_20' ) start [2025-01-29 12:07:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356216', 'tblTempVendorCDR_20' ) end [2025-01-29 12:07:25] Production.INFO: ProcessCDR(1,14356216,1,1,2) [2025-01-29 12:07:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14356216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 12:07:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14356216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 12:07:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14356216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 12:07:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14356216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 12:07:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356216', 'tblTempUsageDetail_20' ) start [2025-01-29 12:07:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356216', 'tblTempUsageDetail_20' ) end [2025-01-29 12:07:30] Production.ERROR: pbx prc_insertCDR start [2025-01-29 12:07:31] Production.ERROR: pbx prc_insertCDR end [2025-01-29 12:07:31] Production.INFO: ==25732== Releasing lock... [2025-01-29 12:07:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 12:07:31] Production.INFO: 60.5 MB #Memory Used# [2025-01-29 12:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 09:08:06 [end_date_ymd] => 2025-01-29 12:08:06 [RateCDR] => 1 ) [2025-01-29 12:08:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 09:08:06' and `end` < '2025-01-29 12:08:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 12:08:23] Production.INFO: count ==4350 [2025-01-29 12:08:25] Production.ERROR: pbx CDR StartTime 2025-01-29 09:08:06 - End Time 2025-01-29 12:08:06 [2025-01-29 12:08:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 12:08:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356221', 'tblTempUsageDetail_20' ) start [2025-01-29 12:08:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356221', 'tblTempUsageDetail_20' ) end [2025-01-29 12:08:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356221', 'tblTempVendorCDR_20' ) start [2025-01-29 12:08:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356221', 'tblTempVendorCDR_20' ) end [2025-01-29 12:08:25] Production.INFO: ProcessCDR(1,14356221,1,1,2) [2025-01-29 12:08:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14356221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 12:08:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14356221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 12:08:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14356221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 12:08:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14356221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 12:08:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356221', 'tblTempUsageDetail_20' ) start [2025-01-29 12:08:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356221', 'tblTempUsageDetail_20' ) end [2025-01-29 12:08:30] Production.ERROR: pbx prc_insertCDR start [2025-01-29 12:08:30] Production.ERROR: pbx prc_insertCDR end [2025-01-29 12:08:30] Production.INFO: ==25815== Releasing lock... [2025-01-29 12:08:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 12:08:30] Production.INFO: 60.5 MB #Memory Used# [2025-01-29 12:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 09:09:05 [end_date_ymd] => 2025-01-29 12:09:05 [RateCDR] => 1 ) [2025-01-29 12:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 09:09:05' and `end` < '2025-01-29 12:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 12:09:27] Production.INFO: count ==4365 [2025-01-29 12:09:29] Production.ERROR: pbx CDR StartTime 2025-01-29 09:09:05 - End Time 2025-01-29 12:09:05 [2025-01-29 12:09:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 12:09:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356226', 'tblTempUsageDetail_20' ) start [2025-01-29 12:09:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356226', 'tblTempUsageDetail_20' ) end [2025-01-29 12:09:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356226', 'tblTempVendorCDR_20' ) start [2025-01-29 12:09:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356226', 'tblTempVendorCDR_20' ) end [2025-01-29 12:09:29] Production.INFO: ProcessCDR(1,14356226,1,1,2) [2025-01-29 12:09:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14356226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 12:09:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14356226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 12:09:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14356226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 12:09:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14356226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 12:09:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356226', 'tblTempUsageDetail_20' ) start [2025-01-29 12:09:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356226', 'tblTempUsageDetail_20' ) end [2025-01-29 12:09:34] Production.ERROR: pbx prc_insertCDR start [2025-01-29 12:09:35] Production.ERROR: pbx prc_insertCDR end [2025-01-29 12:09:35] Production.INFO: ==25909== Releasing lock... [2025-01-29 12:09:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 12:09:35] Production.INFO: 60.75 MB #Memory Used# [2025-01-29 12:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 09:10:06 [end_date_ymd] => 2025-01-29 12:10:06 [RateCDR] => 1 ) [2025-01-29 12:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 09:10:06' and `end` < '2025-01-29 12:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 12:10:29] Production.INFO: count ==4351 [2025-01-29 12:10:31] Production.ERROR: pbx CDR StartTime 2025-01-29 09:10:06 - End Time 2025-01-29 12:10:06 [2025-01-29 12:10:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 12:10:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356232', 'tblTempUsageDetail_20' ) start [2025-01-29 12:10:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356232', 'tblTempUsageDetail_20' ) end [2025-01-29 12:10:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356232', 'tblTempVendorCDR_20' ) start [2025-01-29 12:10:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356232', 'tblTempVendorCDR_20' ) end [2025-01-29 12:10:31] Production.INFO: ProcessCDR(1,14356232,1,1,2) [2025-01-29 12:10:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14356232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 12:10:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14356232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 12:10:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14356232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 12:10:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14356232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 12:10:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356232', 'tblTempUsageDetail_20' ) start [2025-01-29 12:10:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356232', 'tblTempUsageDetail_20' ) end [2025-01-29 12:10:36] Production.ERROR: pbx prc_insertCDR start [2025-01-29 12:10:37] Production.ERROR: pbx prc_insertCDR end [2025-01-29 12:10:37] Production.INFO: ==26005== Releasing lock... [2025-01-29 12:10:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 12:10:37] Production.INFO: 60.5 MB #Memory Used# [2025-01-29 12:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 09:11:05 [end_date_ymd] => 2025-01-29 12:11:05 [RateCDR] => 1 ) [2025-01-29 12:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 09:11:05' and `end` < '2025-01-29 12:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 12:11:21] Production.INFO: count ==4332 [2025-01-29 12:11:23] Production.ERROR: pbx CDR StartTime 2025-01-29 09:11:05 - End Time 2025-01-29 12:11:05 [2025-01-29 12:11:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 12:11:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356237', 'tblTempUsageDetail_20' ) start [2025-01-29 12:11:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356237', 'tblTempUsageDetail_20' ) end [2025-01-29 12:11:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356237', 'tblTempVendorCDR_20' ) start [2025-01-29 12:11:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356237', 'tblTempVendorCDR_20' ) end [2025-01-29 12:11:23] Production.INFO: ProcessCDR(1,14356237,1,1,2) [2025-01-29 12:11:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14356237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 12:11:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14356237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 12:11:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14356237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 12:11:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14356237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 12:11:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356237', 'tblTempUsageDetail_20' ) start [2025-01-29 12:11:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356237', 'tblTempUsageDetail_20' ) end [2025-01-29 12:11:28] Production.ERROR: pbx prc_insertCDR start [2025-01-29 12:11:28] Production.ERROR: pbx prc_insertCDR end [2025-01-29 12:11:28] Production.INFO: ==26087== Releasing lock... [2025-01-29 12:11:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 12:11:28] Production.INFO: 60.5 MB #Memory Used# [2025-01-29 12:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 09:12:05 [end_date_ymd] => 2025-01-29 12:12:05 [RateCDR] => 1 ) [2025-01-29 12:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 09:12:05' and `end` < '2025-01-29 12:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 12:12:21] Production.INFO: count ==4334 [2025-01-29 12:12:23] Production.ERROR: pbx CDR StartTime 2025-01-29 09:12:05 - End Time 2025-01-29 12:12:05 [2025-01-29 12:12:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 12:12:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356242', 'tblTempUsageDetail_20' ) start [2025-01-29 12:12:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356242', 'tblTempUsageDetail_20' ) end [2025-01-29 12:12:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356242', 'tblTempVendorCDR_20' ) start [2025-01-29 12:12:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356242', 'tblTempVendorCDR_20' ) end [2025-01-29 12:12:23] Production.INFO: ProcessCDR(1,14356242,1,1,2) [2025-01-29 12:12:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14356242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 12:12:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14356242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 12:12:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14356242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 12:12:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14356242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 12:12:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356242', 'tblTempUsageDetail_20' ) start [2025-01-29 12:12:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356242', 'tblTempUsageDetail_20' ) end [2025-01-29 12:12:28] Production.ERROR: pbx prc_insertCDR start [2025-01-29 12:12:28] Production.ERROR: pbx prc_insertCDR end [2025-01-29 12:12:28] Production.INFO: ==26178== Releasing lock... [2025-01-29 12:12:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 12:12:28] Production.INFO: 60.5 MB #Memory Used# [2025-01-29 12:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 09:13:06 [end_date_ymd] => 2025-01-29 12:13:06 [RateCDR] => 1 ) [2025-01-29 12:13:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 09:13:06' and `end` < '2025-01-29 12:13:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 12:13:20] Production.INFO: count ==4331 [2025-01-29 12:13:22] Production.ERROR: pbx CDR StartTime 2025-01-29 09:13:06 - End Time 2025-01-29 12:13:06 [2025-01-29 12:13:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 12:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356247', 'tblTempUsageDetail_20' ) start [2025-01-29 12:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356247', 'tblTempUsageDetail_20' ) end [2025-01-29 12:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356247', 'tblTempVendorCDR_20' ) start [2025-01-29 12:13:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356247', 'tblTempVendorCDR_20' ) end [2025-01-29 12:13:23] Production.INFO: ProcessCDR(1,14356247,1,1,2) [2025-01-29 12:13:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14356247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 12:13:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14356247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 12:13:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14356247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 12:13:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14356247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 12:13:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356247', 'tblTempUsageDetail_20' ) start [2025-01-29 12:13:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356247', 'tblTempUsageDetail_20' ) end [2025-01-29 12:13:28] Production.ERROR: pbx prc_insertCDR start [2025-01-29 12:13:28] Production.ERROR: pbx prc_insertCDR end [2025-01-29 12:13:28] Production.INFO: ==26259== Releasing lock... [2025-01-29 12:13:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 12:13:28] Production.INFO: 60.5 MB #Memory Used# [2025-01-29 12:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 09:14:05 [end_date_ymd] => 2025-01-29 12:14:05 [RateCDR] => 1 ) [2025-01-29 12:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 09:14:05' and `end` < '2025-01-29 12:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 12:14:19] Production.INFO: count ==4311 [2025-01-29 12:14:21] Production.ERROR: pbx CDR StartTime 2025-01-29 09:14:05 - End Time 2025-01-29 12:14:05 [2025-01-29 12:14:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 12:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356252', 'tblTempUsageDetail_20' ) start [2025-01-29 12:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356252', 'tblTempUsageDetail_20' ) end [2025-01-29 12:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356252', 'tblTempVendorCDR_20' ) start [2025-01-29 12:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356252', 'tblTempVendorCDR_20' ) end [2025-01-29 12:14:21] Production.INFO: ProcessCDR(1,14356252,1,1,2) [2025-01-29 12:14:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14356252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 12:14:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14356252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 12:14:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14356252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 12:14:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14356252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 12:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356252', 'tblTempUsageDetail_20' ) start [2025-01-29 12:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356252', 'tblTempUsageDetail_20' ) end [2025-01-29 12:14:26] Production.ERROR: pbx prc_insertCDR start [2025-01-29 12:14:26] Production.ERROR: pbx prc_insertCDR end [2025-01-29 12:14:26] Production.INFO: ==26345== Releasing lock... [2025-01-29 12:14:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 12:14:26] Production.INFO: 60.25 MB #Memory Used# [2025-01-29 12:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 09:15:06 [end_date_ymd] => 2025-01-29 12:15:06 [RateCDR] => 1 ) [2025-01-29 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-01-29 09:15:06' and `end` < '2025-01-29 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-01-29 12:15:20] Production.INFO: count ==4310 [2025-01-29 12:15:22] Production.ERROR: pbx CDR StartTime 2025-01-29 09:15:06 - End Time 2025-01-29 12:15:06 [2025-01-29 12:15:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 12:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356257', 'tblTempUsageDetail_20' ) start [2025-01-29 12:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356257', 'tblTempUsageDetail_20' ) end [2025-01-29 12:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356257', 'tblTempVendorCDR_20' ) start [2025-01-29 12:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356257', 'tblTempVendorCDR_20' ) end [2025-01-29 12:15:22] Production.INFO: ProcessCDR(1,14356257,1,1,2) [2025-01-29 12:15:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14356257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 12:15:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14356257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 12:15:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14356257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 12:15:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14356257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 12:15:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356257', 'tblTempUsageDetail_20' ) start [2025-01-29 12:15:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356257', 'tblTempUsageDetail_20' ) end [2025-01-29 12:15:27] Production.ERROR: pbx prc_insertCDR start [2025-01-29 12:15:27] Production.ERROR: pbx prc_insertCDR end [2025-01-29 12:15:27] Production.INFO: ==26436== Releasing lock... [2025-01-29 12:15:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 12:15:27] Production.INFO: 60.25 MB #Memory Used# [2025-01-29 12:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 09:16:05 [end_date_ymd] => 2025-01-29 12:16:05 [RateCDR] => 1 ) [2025-01-29 12:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 09:16:05' and `end` < '2025-01-29 12:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 12:16:23] Production.INFO: count ==4306 [2025-01-29 12:16:25] Production.ERROR: pbx CDR StartTime 2025-01-29 09:16:05 - End Time 2025-01-29 12:16:05 [2025-01-29 12:16:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 12:16:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356262', 'tblTempUsageDetail_20' ) start [2025-01-29 12:16:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356262', 'tblTempUsageDetail_20' ) end [2025-01-29 12:16:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356262', 'tblTempVendorCDR_20' ) start [2025-01-29 12:16:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356262', 'tblTempVendorCDR_20' ) end [2025-01-29 12:16:25] Production.INFO: ProcessCDR(1,14356262,1,1,2) [2025-01-29 12:16:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14356262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 12:16:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14356262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 12:16:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14356262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 12:16:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14356262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 12:16:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356262', 'tblTempUsageDetail_20' ) start [2025-01-29 12:16:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356262', 'tblTempUsageDetail_20' ) end [2025-01-29 12:16:30] Production.ERROR: pbx prc_insertCDR start [2025-01-29 12:16:30] Production.ERROR: pbx prc_insertCDR end [2025-01-29 12:16:30] Production.INFO: ==26529== Releasing lock... [2025-01-29 12:16:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 12:16:30] Production.INFO: 60.5 MB #Memory Used# [2025-01-29 12:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 09:17:06 [end_date_ymd] => 2025-01-29 12:17:06 [RateCDR] => 1 ) [2025-01-29 12:17:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 09:17:06' and `end` < '2025-01-29 12:17:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 12:17:24] Production.INFO: count ==4321 [2025-01-29 12:17:26] Production.ERROR: pbx CDR StartTime 2025-01-29 09:17:06 - End Time 2025-01-29 12:17:06 [2025-01-29 12:17:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 12:17:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356267', 'tblTempUsageDetail_20' ) start [2025-01-29 12:17:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356267', 'tblTempUsageDetail_20' ) end [2025-01-29 12:17:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356267', 'tblTempVendorCDR_20' ) start [2025-01-29 12:17:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356267', 'tblTempVendorCDR_20' ) end [2025-01-29 12:17:26] Production.INFO: ProcessCDR(1,14356267,1,1,2) [2025-01-29 12:17:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14356267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 12:17:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14356267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 12:17:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14356267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 12:17:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14356267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 12:17:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356267', 'tblTempUsageDetail_20' ) start [2025-01-29 12:17:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356267', 'tblTempUsageDetail_20' ) end [2025-01-29 12:17:32] Production.ERROR: pbx prc_insertCDR start [2025-01-29 12:17:32] Production.ERROR: pbx prc_insertCDR end [2025-01-29 12:17:32] Production.INFO: ==26616== Releasing lock... [2025-01-29 12:17:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 12:17:32] Production.INFO: 60.25 MB #Memory Used# [2025-01-29 12:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 09:18:05 [end_date_ymd] => 2025-01-29 12:18:05 [RateCDR] => 1 ) [2025-01-29 12:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 09:18:05' and `end` < '2025-01-29 12:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 12:18:26] Production.INFO: count ==4334 [2025-01-29 12:18:28] Production.ERROR: pbx CDR StartTime 2025-01-29 09:18:05 - End Time 2025-01-29 12:18:05 [2025-01-29 12:18:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 12:18:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356272', 'tblTempUsageDetail_20' ) start [2025-01-29 12:18:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356272', 'tblTempUsageDetail_20' ) end [2025-01-29 12:18:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356272', 'tblTempVendorCDR_20' ) start [2025-01-29 12:18:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356272', 'tblTempVendorCDR_20' ) end [2025-01-29 12:18:28] Production.INFO: ProcessCDR(1,14356272,1,1,2) [2025-01-29 12:18:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14356272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 12:18:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14356272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 12:18:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14356272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 12:18:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14356272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 12:18:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356272', 'tblTempUsageDetail_20' ) start [2025-01-29 12:18:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356272', 'tblTempUsageDetail_20' ) end [2025-01-29 12:18:34] Production.ERROR: pbx prc_insertCDR start [2025-01-29 12:18:34] Production.ERROR: pbx prc_insertCDR end [2025-01-29 12:18:34] Production.INFO: ==26716== Releasing lock... [2025-01-29 12:18:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 12:18:34] Production.INFO: 60.5 MB #Memory Used# [2025-01-29 12:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 09:19:06 [end_date_ymd] => 2025-01-29 12:19:06 [RateCDR] => 1 ) [2025-01-29 12:19:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 09:19:06' and `end` < '2025-01-29 12:19:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 12:19:22] Production.INFO: count ==4332 [2025-01-29 12:19:24] Production.ERROR: pbx CDR StartTime 2025-01-29 09:19:06 - End Time 2025-01-29 12:19:06 [2025-01-29 12:19:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 12:19:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356277', 'tblTempUsageDetail_20' ) start [2025-01-29 12:19:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356277', 'tblTempUsageDetail_20' ) end [2025-01-29 12:19:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356277', 'tblTempVendorCDR_20' ) start [2025-01-29 12:19:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356277', 'tblTempVendorCDR_20' ) end [2025-01-29 12:19:24] Production.INFO: ProcessCDR(1,14356277,1,1,2) [2025-01-29 12:19:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14356277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 12:19:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14356277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 12:19:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14356277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 12:19:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14356277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 12:19:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356277', 'tblTempUsageDetail_20' ) start [2025-01-29 12:19:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356277', 'tblTempUsageDetail_20' ) end [2025-01-29 12:19:29] Production.ERROR: pbx prc_insertCDR start [2025-01-29 12:19:29] Production.ERROR: pbx prc_insertCDR end [2025-01-29 12:19:29] Production.INFO: ==26851== Releasing lock... [2025-01-29 12:19:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 12:19:29] Production.INFO: 60.5 MB #Memory Used# [2025-01-29 12:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 09:20:06 [end_date_ymd] => 2025-01-29 12:20:06 [RateCDR] => 1 ) [2025-01-29 12:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 09:20:06' and `end` < '2025-01-29 12:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 12:20:19] Production.INFO: count ==4323 [2025-01-29 12:20:21] Production.ERROR: pbx CDR StartTime 2025-01-29 09:20:06 - End Time 2025-01-29 12:20:06 [2025-01-29 12:20:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 12:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356283', 'tblTempUsageDetail_20' ) start [2025-01-29 12:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356283', 'tblTempUsageDetail_20' ) end [2025-01-29 12:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356283', 'tblTempVendorCDR_20' ) start [2025-01-29 12:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356283', 'tblTempVendorCDR_20' ) end [2025-01-29 12:20:22] Production.INFO: ProcessCDR(1,14356283,1,1,2) [2025-01-29 12:20:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14356283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 12:20:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14356283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 12:20:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14356283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 12:20:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14356283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 12:20:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356283', 'tblTempUsageDetail_20' ) start [2025-01-29 12:20:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356283', 'tblTempUsageDetail_20' ) end [2025-01-29 12:20:27] Production.ERROR: pbx prc_insertCDR start [2025-01-29 12:20:27] Production.ERROR: pbx prc_insertCDR end [2025-01-29 12:20:27] Production.INFO: ==26943== Releasing lock... [2025-01-29 12:20:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 12:20:27] Production.INFO: 60.25 MB #Memory Used# [2025-01-29 12:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 09:21:06 [end_date_ymd] => 2025-01-29 12:21:06 [RateCDR] => 1 ) [2025-01-29 12:21:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 09:21:06' and `end` < '2025-01-29 12:21:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 12:21:20] Production.INFO: count ==4381 [2025-01-29 12:21:22] Production.ERROR: pbx CDR StartTime 2025-01-29 09:21:06 - End Time 2025-01-29 12:21:06 [2025-01-29 12:21:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 12:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356288', 'tblTempUsageDetail_20' ) start [2025-01-29 12:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356288', 'tblTempUsageDetail_20' ) end [2025-01-29 12:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356288', 'tblTempVendorCDR_20' ) start [2025-01-29 12:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356288', 'tblTempVendorCDR_20' ) end [2025-01-29 12:21:22] Production.INFO: ProcessCDR(1,14356288,1,1,2) [2025-01-29 12:21:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14356288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 12:21:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14356288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 12:21:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14356288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 12:21:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14356288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 12:21:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356288', 'tblTempUsageDetail_20' ) start [2025-01-29 12:21:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356288', 'tblTempUsageDetail_20' ) end [2025-01-29 12:21:28] Production.ERROR: pbx prc_insertCDR start [2025-01-29 12:21:28] Production.ERROR: pbx prc_insertCDR end [2025-01-29 12:21:28] Production.INFO: ==27031== Releasing lock... [2025-01-29 12:21:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 12:21:28] Production.INFO: 60.75 MB #Memory Used# [2025-01-29 12:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 09:22:06 [end_date_ymd] => 2025-01-29 12:22:06 [RateCDR] => 1 ) [2025-01-29 12:22:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 09:22:06' and `end` < '2025-01-29 12:22:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 12:22:20] Production.INFO: count ==4390 [2025-01-29 12:22:22] Production.ERROR: pbx CDR StartTime 2025-01-29 09:22:06 - End Time 2025-01-29 12:22:06 [2025-01-29 12:22:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 12:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356293', 'tblTempUsageDetail_20' ) start [2025-01-29 12:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356293', 'tblTempUsageDetail_20' ) end [2025-01-29 12:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356293', 'tblTempVendorCDR_20' ) start [2025-01-29 12:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356293', 'tblTempVendorCDR_20' ) end [2025-01-29 12:22:22] Production.INFO: ProcessCDR(1,14356293,1,1,2) [2025-01-29 12:22:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14356293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 12:22:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14356293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 12:22:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14356293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 12:22:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14356293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 12:22:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356293', 'tblTempUsageDetail_20' ) start [2025-01-29 12:22:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356293', 'tblTempUsageDetail_20' ) end [2025-01-29 12:22:28] Production.ERROR: pbx prc_insertCDR start [2025-01-29 12:22:28] Production.ERROR: pbx prc_insertCDR end [2025-01-29 12:22:28] Production.INFO: ==27115== Releasing lock... [2025-01-29 12:22:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 12:22:28] Production.INFO: 61 MB #Memory Used# [2025-01-29 12:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 09:23:05 [end_date_ymd] => 2025-01-29 12:23:05 [RateCDR] => 1 ) [2025-01-29 12:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 09:23:05' and `end` < '2025-01-29 12:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 12:23:19] Production.INFO: count ==4401 [2025-01-29 12:23:21] Production.ERROR: pbx CDR StartTime 2025-01-29 09:23:05 - End Time 2025-01-29 12:23:05 [2025-01-29 12:23:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 12:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356298', 'tblTempUsageDetail_20' ) start [2025-01-29 12:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356298', 'tblTempUsageDetail_20' ) end [2025-01-29 12:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356298', 'tblTempVendorCDR_20' ) start [2025-01-29 12:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356298', 'tblTempVendorCDR_20' ) end [2025-01-29 12:23:21] Production.INFO: ProcessCDR(1,14356298,1,1,2) [2025-01-29 12:23:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14356298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 12:23:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14356298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 12:23:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14356298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 12:23:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14356298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 12:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356298', 'tblTempUsageDetail_20' ) start [2025-01-29 12:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356298', 'tblTempUsageDetail_20' ) end [2025-01-29 12:23:26] Production.ERROR: pbx prc_insertCDR start [2025-01-29 12:23:26] Production.ERROR: pbx prc_insertCDR end [2025-01-29 12:23:26] Production.INFO: ==27207== Releasing lock... [2025-01-29 12:23:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 12:23:26] Production.INFO: 61 MB #Memory Used# [2025-01-29 12:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 09:24:05 [end_date_ymd] => 2025-01-29 12:24:05 [RateCDR] => 1 ) [2025-01-29 12:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 09:24:05' and `end` < '2025-01-29 12:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 12:24:23] Production.INFO: count ==4420 [2025-01-29 12:24:25] Production.ERROR: pbx CDR StartTime 2025-01-29 09:24:05 - End Time 2025-01-29 12:24:05 [2025-01-29 12:24:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 12:24:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356303', 'tblTempUsageDetail_20' ) start [2025-01-29 12:24:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356303', 'tblTempUsageDetail_20' ) end [2025-01-29 12:24:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356303', 'tblTempVendorCDR_20' ) start [2025-01-29 12:24:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356303', 'tblTempVendorCDR_20' ) end [2025-01-29 12:24:25] Production.INFO: ProcessCDR(1,14356303,1,1,2) [2025-01-29 12:24:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14356303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 12:24:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14356303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 12:24:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14356303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 12:24:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14356303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 12:24:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356303', 'tblTempUsageDetail_20' ) start [2025-01-29 12:24:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356303', 'tblTempUsageDetail_20' ) end [2025-01-29 12:24:30] Production.ERROR: pbx prc_insertCDR start [2025-01-29 12:24:31] Production.ERROR: pbx prc_insertCDR end [2025-01-29 12:24:31] Production.INFO: ==27291== Releasing lock... [2025-01-29 12:24:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 12:24:31] Production.INFO: 61 MB #Memory Used# [2025-01-29 12:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 09:25:06 [end_date_ymd] => 2025-01-29 12:25:06 [RateCDR] => 1 ) [2025-01-29 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-01-29 09:25:06' and `end` < '2025-01-29 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-01-29 12:25:26] Production.INFO: count ==4435 [2025-01-29 12:25:28] Production.ERROR: pbx CDR StartTime 2025-01-29 09:25:06 - End Time 2025-01-29 12:25:06 [2025-01-29 12:25:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 12:25:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356308', 'tblTempUsageDetail_20' ) start [2025-01-29 12:25:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356308', 'tblTempUsageDetail_20' ) end [2025-01-29 12:25:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356308', 'tblTempVendorCDR_20' ) start [2025-01-29 12:25:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356308', 'tblTempVendorCDR_20' ) end [2025-01-29 12:25:28] Production.INFO: ProcessCDR(1,14356308,1,1,2) [2025-01-29 12:25:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14356308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 12:25:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14356308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 12:25:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14356308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 12:25:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14356308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 12:25:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356308', 'tblTempUsageDetail_20' ) start [2025-01-29 12:25:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356308', 'tblTempUsageDetail_20' ) end [2025-01-29 12:25:33] Production.ERROR: pbx prc_insertCDR start [2025-01-29 12:25:33] Production.ERROR: pbx prc_insertCDR end [2025-01-29 12:25:33] Production.INFO: ==27376== Releasing lock... [2025-01-29 12:25:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 12:25:33] Production.INFO: 61.25 MB #Memory Used# [2025-01-29 12:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 09:26:06 [end_date_ymd] => 2025-01-29 12:26:06 [RateCDR] => 1 ) [2025-01-29 12:26:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 09:26:06' and `end` < '2025-01-29 12:26:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 12:26:22] Production.INFO: count ==4444 [2025-01-29 12:26:24] Production.ERROR: pbx CDR StartTime 2025-01-29 09:26:06 - End Time 2025-01-29 12:26:06 [2025-01-29 12:26:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 12:26:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356313', 'tblTempUsageDetail_20' ) start [2025-01-29 12:26:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356313', 'tblTempUsageDetail_20' ) end [2025-01-29 12:26:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356313', 'tblTempVendorCDR_20' ) start [2025-01-29 12:26:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356313', 'tblTempVendorCDR_20' ) end [2025-01-29 12:26:24] Production.INFO: ProcessCDR(1,14356313,1,1,2) [2025-01-29 12:26:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14356313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 12:26:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14356313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 12:26:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14356313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 12:26:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14356313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 12:26:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356313', 'tblTempUsageDetail_20' ) start [2025-01-29 12:26:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356313', 'tblTempUsageDetail_20' ) end [2025-01-29 12:26:29] Production.ERROR: pbx prc_insertCDR start [2025-01-29 12:26:29] Production.ERROR: pbx prc_insertCDR end [2025-01-29 12:26:29] Production.INFO: ==27464== Releasing lock... [2025-01-29 12:26:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 12:26:29] Production.INFO: 61.25 MB #Memory Used# [2025-01-29 12:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 09:27:06 [end_date_ymd] => 2025-01-29 12:27:06 [RateCDR] => 1 ) [2025-01-29 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-01-29 09:27:06' and `end` < '2025-01-29 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-01-29 12:27:21] Production.INFO: count ==4453 [2025-01-29 12:27:23] Production.ERROR: pbx CDR StartTime 2025-01-29 09:27:06 - End Time 2025-01-29 12:27:06 [2025-01-29 12:27:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 12:27:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356318', 'tblTempUsageDetail_20' ) start [2025-01-29 12:27:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356318', 'tblTempUsageDetail_20' ) end [2025-01-29 12:27:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356318', 'tblTempVendorCDR_20' ) start [2025-01-29 12:27:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356318', 'tblTempVendorCDR_20' ) end [2025-01-29 12:27:23] Production.INFO: ProcessCDR(1,14356318,1,1,2) [2025-01-29 12:27:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14356318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 12:27:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14356318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 12:27:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14356318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 12:27:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14356318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 12:27:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356318', 'tblTempUsageDetail_20' ) start [2025-01-29 12:27:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356318', 'tblTempUsageDetail_20' ) end [2025-01-29 12:27:28] Production.ERROR: pbx prc_insertCDR start [2025-01-29 12:27:28] Production.ERROR: pbx prc_insertCDR end [2025-01-29 12:27:28] Production.INFO: ==27549== Releasing lock... [2025-01-29 12:27:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 12:27:28] Production.INFO: 61.25 MB #Memory Used# [2025-01-29 12:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 09:28:05 [end_date_ymd] => 2025-01-29 12:28:05 [RateCDR] => 1 ) [2025-01-29 12:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 09:28:05' and `end` < '2025-01-29 12:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 12:28:19] Production.INFO: count ==4464 [2025-01-29 12:28:21] Production.ERROR: pbx CDR StartTime 2025-01-29 09:28:05 - End Time 2025-01-29 12:28:05 [2025-01-29 12:28:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 12:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356323', 'tblTempUsageDetail_20' ) start [2025-01-29 12:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356323', 'tblTempUsageDetail_20' ) end [2025-01-29 12:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356323', 'tblTempVendorCDR_20' ) start [2025-01-29 12:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356323', 'tblTempVendorCDR_20' ) end [2025-01-29 12:28:21] Production.INFO: ProcessCDR(1,14356323,1,1,2) [2025-01-29 12:28:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14356323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 12:28:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14356323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 12:28:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14356323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 12:28:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14356323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 12:28:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356323', 'tblTempUsageDetail_20' ) start [2025-01-29 12:28:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356323', 'tblTempUsageDetail_20' ) end [2025-01-29 12:28:26] Production.ERROR: pbx prc_insertCDR start [2025-01-29 12:28:26] Production.ERROR: pbx prc_insertCDR end [2025-01-29 12:28:26] Production.INFO: ==27641== Releasing lock... [2025-01-29 12:28:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 12:28:26] Production.INFO: 61.5 MB #Memory Used# [2025-01-29 12:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 09:29:06 [end_date_ymd] => 2025-01-29 12:29:06 [RateCDR] => 1 ) [2025-01-29 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-01-29 09:29:06' and `end` < '2025-01-29 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-01-29 12:29:20] Production.INFO: count ==4452 [2025-01-29 12:29:22] Production.ERROR: pbx CDR StartTime 2025-01-29 09:29:06 - End Time 2025-01-29 12:29:06 [2025-01-29 12:29:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 12:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356328', 'tblTempUsageDetail_20' ) start [2025-01-29 12:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356328', 'tblTempUsageDetail_20' ) end [2025-01-29 12:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356328', 'tblTempVendorCDR_20' ) start [2025-01-29 12:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356328', 'tblTempVendorCDR_20' ) end [2025-01-29 12:29:22] Production.INFO: ProcessCDR(1,14356328,1,1,2) [2025-01-29 12:29:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14356328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 12:29:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14356328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 12:29:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14356328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 12:29:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14356328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 12:29:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356328', 'tblTempUsageDetail_20' ) start [2025-01-29 12:29:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356328', 'tblTempUsageDetail_20' ) end [2025-01-29 12:29:27] Production.ERROR: pbx prc_insertCDR start [2025-01-29 12:29:28] Production.ERROR: pbx prc_insertCDR end [2025-01-29 12:29:28] Production.INFO: ==27728== Releasing lock... [2025-01-29 12:29:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 12:29:28] Production.INFO: 61.25 MB #Memory Used# [2025-01-29 12:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 09:30:06 [end_date_ymd] => 2025-01-29 12:30:06 [RateCDR] => 1 ) [2025-01-29 12:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 09:30:06' and `end` < '2025-01-29 12:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 12:30:21] Production.INFO: count ==4458 [2025-01-29 12:30:23] Production.ERROR: pbx CDR StartTime 2025-01-29 09:30:06 - End Time 2025-01-29 12:30:06 [2025-01-29 12:30:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 12:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356334', 'tblTempUsageDetail_20' ) start [2025-01-29 12:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356334', 'tblTempUsageDetail_20' ) end [2025-01-29 12:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356334', 'tblTempVendorCDR_20' ) start [2025-01-29 12:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356334', 'tblTempVendorCDR_20' ) end [2025-01-29 12:30:23] Production.INFO: ProcessCDR(1,14356334,1,1,2) [2025-01-29 12:30:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14356334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 12:30:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14356334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 12:30:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14356334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 12:30:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14356334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 12:30:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356334', 'tblTempUsageDetail_20' ) start [2025-01-29 12:30:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356334', 'tblTempUsageDetail_20' ) end [2025-01-29 12:30:29] Production.ERROR: pbx prc_insertCDR start [2025-01-29 12:30:29] Production.ERROR: pbx prc_insertCDR end [2025-01-29 12:30:29] Production.INFO: ==27820== Releasing lock... [2025-01-29 12:30:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 12:30:29] Production.INFO: 61.5 MB #Memory Used# [2025-01-29 12:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 09:31:05 [end_date_ymd] => 2025-01-29 12:31:05 [RateCDR] => 1 ) [2025-01-29 12:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 09:31:05' and `end` < '2025-01-29 12:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 12:31:22] Production.INFO: count ==4469 [2025-01-29 12:31:24] Production.ERROR: pbx CDR StartTime 2025-01-29 09:31:05 - End Time 2025-01-29 12:31:05 [2025-01-29 12:31:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 12:31:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356339', 'tblTempUsageDetail_20' ) start [2025-01-29 12:31:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356339', 'tblTempUsageDetail_20' ) end [2025-01-29 12:31:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356339', 'tblTempVendorCDR_20' ) start [2025-01-29 12:31:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356339', 'tblTempVendorCDR_20' ) end [2025-01-29 12:31:24] Production.INFO: ProcessCDR(1,14356339,1,1,2) [2025-01-29 12:31:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14356339,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 12:31:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14356339,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 12:31:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14356339,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 12:31:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14356339,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 12:31:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356339', 'tblTempUsageDetail_20' ) start [2025-01-29 12:31:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356339', 'tblTempUsageDetail_20' ) end [2025-01-29 12:31:30] Production.ERROR: pbx prc_insertCDR start [2025-01-29 12:31:30] Production.ERROR: pbx prc_insertCDR end [2025-01-29 12:31:30] Production.INFO: ==27905== Releasing lock... [2025-01-29 12:31:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 12:31:30] Production.INFO: 61.5 MB #Memory Used# [2025-01-29 12:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 09:32:05 [end_date_ymd] => 2025-01-29 12:32:05 [RateCDR] => 1 ) [2025-01-29 12:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 09:32:05' and `end` < '2025-01-29 12:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 12:32:23] Production.INFO: count ==4479 [2025-01-29 12:32:25] Production.ERROR: pbx CDR StartTime 2025-01-29 09:32:05 - End Time 2025-01-29 12:32:05 [2025-01-29 12:32:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 12:32:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356344', 'tblTempUsageDetail_20' ) start [2025-01-29 12:32:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356344', 'tblTempUsageDetail_20' ) end [2025-01-29 12:32:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356344', 'tblTempVendorCDR_20' ) start [2025-01-29 12:32:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356344', 'tblTempVendorCDR_20' ) end [2025-01-29 12:32:25] Production.INFO: ProcessCDR(1,14356344,1,1,2) [2025-01-29 12:32:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14356344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 12:32:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14356344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 12:32:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14356344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 12:32:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14356344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 12:32:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356344', 'tblTempUsageDetail_20' ) start [2025-01-29 12:32:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356344', 'tblTempUsageDetail_20' ) end [2025-01-29 12:32:30] Production.ERROR: pbx prc_insertCDR start [2025-01-29 12:32:31] Production.ERROR: pbx prc_insertCDR end [2025-01-29 12:32:31] Production.INFO: ==27996== Releasing lock... [2025-01-29 12:32:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 12:32:31] Production.INFO: 61.5 MB #Memory Used# [2025-01-29 12:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 09:33:06 [end_date_ymd] => 2025-01-29 12:33:06 [RateCDR] => 1 ) [2025-01-29 12:33:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 09:33:06' and `end` < '2025-01-29 12:33:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 12:33:28] Production.INFO: count ==4499 [2025-01-29 12:33:30] Production.ERROR: pbx CDR StartTime 2025-01-29 09:33:06 - End Time 2025-01-29 12:33:06 [2025-01-29 12:33:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 12:33:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356349', 'tblTempUsageDetail_20' ) start [2025-01-29 12:33:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356349', 'tblTempUsageDetail_20' ) end [2025-01-29 12:33:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356349', 'tblTempVendorCDR_20' ) start [2025-01-29 12:33:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356349', 'tblTempVendorCDR_20' ) end [2025-01-29 12:33:30] Production.INFO: ProcessCDR(1,14356349,1,1,2) [2025-01-29 12:33:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14356349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 12:33:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14356349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 12:33:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14356349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 12:33:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14356349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 12:33:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356349', 'tblTempUsageDetail_20' ) start [2025-01-29 12:33:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356349', 'tblTempUsageDetail_20' ) end [2025-01-29 12:33:36] Production.ERROR: pbx prc_insertCDR start [2025-01-29 12:33:36] Production.ERROR: pbx prc_insertCDR end [2025-01-29 12:33:36] Production.INFO: ==28089== Releasing lock... [2025-01-29 12:33:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 12:33:36] Production.INFO: 61.75 MB #Memory Used# [2025-01-29 12:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 09:34:05 [end_date_ymd] => 2025-01-29 12:34:05 [RateCDR] => 1 ) [2025-01-29 12:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 09:34:05' and `end` < '2025-01-29 12:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 12:34:24] Production.INFO: count ==4491 [2025-01-29 12:34:27] Production.ERROR: pbx CDR StartTime 2025-01-29 09:34:05 - End Time 2025-01-29 12:34:05 [2025-01-29 12:34:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 12:34:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356354', 'tblTempUsageDetail_20' ) start [2025-01-29 12:34:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356354', 'tblTempUsageDetail_20' ) end [2025-01-29 12:34:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356354', 'tblTempVendorCDR_20' ) start [2025-01-29 12:34:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356354', 'tblTempVendorCDR_20' ) end [2025-01-29 12:34:27] Production.INFO: ProcessCDR(1,14356354,1,1,2) [2025-01-29 12:34:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14356354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 12:34:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14356354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 12:34:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14356354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 12:34:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14356354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 12:34:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356354', 'tblTempUsageDetail_20' ) start [2025-01-29 12:34:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356354', 'tblTempUsageDetail_20' ) end [2025-01-29 12:34:32] Production.ERROR: pbx prc_insertCDR start [2025-01-29 12:34:32] Production.ERROR: pbx prc_insertCDR end [2025-01-29 12:34:32] Production.INFO: ==28173== Releasing lock... [2025-01-29 12:34:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 12:34:32] Production.INFO: 61.5 MB #Memory Used# [2025-01-29 12:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 09:35:06 [end_date_ymd] => 2025-01-29 12:35:06 [RateCDR] => 1 ) [2025-01-29 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-01-29 09:35:06' and `end` < '2025-01-29 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-01-29 12:35:31] Production.INFO: count ==4512 [2025-01-29 12:35:33] Production.ERROR: pbx CDR StartTime 2025-01-29 09:35:06 - End Time 2025-01-29 12:35:06 [2025-01-29 12:35:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 12:35:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356359', 'tblTempUsageDetail_20' ) start [2025-01-29 12:35:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356359', 'tblTempUsageDetail_20' ) end [2025-01-29 12:35:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356359', 'tblTempVendorCDR_20' ) start [2025-01-29 12:35:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356359', 'tblTempVendorCDR_20' ) end [2025-01-29 12:35:33] Production.INFO: ProcessCDR(1,14356359,1,1,2) [2025-01-29 12:35:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14356359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 12:35:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14356359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 12:35:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14356359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 12:35:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14356359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 12:35:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356359', 'tblTempUsageDetail_20' ) start [2025-01-29 12:35:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356359', 'tblTempUsageDetail_20' ) end [2025-01-29 12:35:38] Production.ERROR: pbx prc_insertCDR start [2025-01-29 12:35:38] Production.ERROR: pbx prc_insertCDR end [2025-01-29 12:35:38] Production.INFO: ==28303== Releasing lock... [2025-01-29 12:35:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 12:35:38] Production.INFO: 61.75 MB #Memory Used# [2025-01-29 12:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 09:36:05 [end_date_ymd] => 2025-01-29 12:36:05 [RateCDR] => 1 ) [2025-01-29 12:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 09:36:05' and `end` < '2025-01-29 12:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 12:36:22] Production.INFO: count ==4538 [2025-01-29 12:36:24] Production.ERROR: pbx CDR StartTime 2025-01-29 09:36:05 - End Time 2025-01-29 12:36:05 [2025-01-29 12:36:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 12:36:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356364', 'tblTempUsageDetail_20' ) start [2025-01-29 12:36:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356364', 'tblTempUsageDetail_20' ) end [2025-01-29 12:36:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356364', 'tblTempVendorCDR_20' ) start [2025-01-29 12:36:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356364', 'tblTempVendorCDR_20' ) end [2025-01-29 12:36:24] Production.INFO: ProcessCDR(1,14356364,1,1,2) [2025-01-29 12:36:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14356364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 12:36:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14356364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 12:36:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14356364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 12:36:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14356364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 12:36:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356364', 'tblTempUsageDetail_20' ) start [2025-01-29 12:36:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356364', 'tblTempUsageDetail_20' ) end [2025-01-29 12:36:29] Production.ERROR: pbx prc_insertCDR start [2025-01-29 12:36:29] Production.ERROR: pbx prc_insertCDR end [2025-01-29 12:36:29] Production.INFO: ==28390== Releasing lock... [2025-01-29 12:36:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 12:36:29] Production.INFO: 62 MB #Memory Used# [2025-01-29 12:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 09:37:06 [end_date_ymd] => 2025-01-29 12:37:06 [RateCDR] => 1 ) [2025-01-29 12:37:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 09:37:06' and `end` < '2025-01-29 12:37:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 12:37:26] Production.INFO: count ==4569 [2025-01-29 12:37:28] Production.ERROR: pbx CDR StartTime 2025-01-29 09:37:06 - End Time 2025-01-29 12:37:06 [2025-01-29 12:37:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 12:37:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356369', 'tblTempUsageDetail_20' ) start [2025-01-29 12:37:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356369', 'tblTempUsageDetail_20' ) end [2025-01-29 12:37:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356369', 'tblTempVendorCDR_20' ) start [2025-01-29 12:37:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356369', 'tblTempVendorCDR_20' ) end [2025-01-29 12:37:28] Production.INFO: ProcessCDR(1,14356369,1,1,2) [2025-01-29 12:37:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14356369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 12:37:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14356369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 12:37:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14356369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 12:37:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14356369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 12:37:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356369', 'tblTempUsageDetail_20' ) start [2025-01-29 12:37:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356369', 'tblTempUsageDetail_20' ) end [2025-01-29 12:37:34] Production.ERROR: pbx prc_insertCDR start [2025-01-29 12:37:34] Production.ERROR: pbx prc_insertCDR end [2025-01-29 12:37:34] Production.INFO: ==28480== Releasing lock... [2025-01-29 12:37:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 12:37:34] Production.INFO: 62.25 MB #Memory Used# [2025-01-29 12:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 09:38:05 [end_date_ymd] => 2025-01-29 12:38:05 [RateCDR] => 1 ) [2025-01-29 12:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 09:38:05' and `end` < '2025-01-29 12:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 12:38:33] Production.INFO: count ==4556 [2025-01-29 12:38:35] Production.ERROR: pbx CDR StartTime 2025-01-29 09:38:05 - End Time 2025-01-29 12:38:05 [2025-01-29 12:38:35] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 12:38:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356374', 'tblTempUsageDetail_20' ) start [2025-01-29 12:38:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356374', 'tblTempUsageDetail_20' ) end [2025-01-29 12:38:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356374', 'tblTempVendorCDR_20' ) start [2025-01-29 12:38:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356374', 'tblTempVendorCDR_20' ) end [2025-01-29 12:38:35] Production.INFO: ProcessCDR(1,14356374,1,1,2) [2025-01-29 12:38:35] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14356374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 12:38:38] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14356374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 12:38:38] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14356374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 12:38:40] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14356374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 12:38:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356374', 'tblTempUsageDetail_20' ) start [2025-01-29 12:38:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356374', 'tblTempUsageDetail_20' ) end [2025-01-29 12:38:41] Production.ERROR: pbx prc_insertCDR start [2025-01-29 12:38:41] Production.ERROR: pbx prc_insertCDR end [2025-01-29 12:38:41] Production.INFO: ==28564== Releasing lock... [2025-01-29 12:38:41] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 12:38:41] Production.INFO: 62.25 MB #Memory Used# [2025-01-29 12:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 09:39:06 [end_date_ymd] => 2025-01-29 12:39:06 [RateCDR] => 1 ) [2025-01-29 12:39:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 09:39:06' and `end` < '2025-01-29 12:39:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 12:39:31] Production.INFO: count ==4550 [2025-01-29 12:39:33] Production.ERROR: pbx CDR StartTime 2025-01-29 09:39:06 - End Time 2025-01-29 12:39:06 [2025-01-29 12:39:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 12:39:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356379', 'tblTempUsageDetail_20' ) start [2025-01-29 12:39:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356379', 'tblTempUsageDetail_20' ) end [2025-01-29 12:39:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356379', 'tblTempVendorCDR_20' ) start [2025-01-29 12:39:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356379', 'tblTempVendorCDR_20' ) end [2025-01-29 12:39:33] Production.INFO: ProcessCDR(1,14356379,1,1,2) [2025-01-29 12:39:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14356379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 12:39:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14356379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 12:39:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14356379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 12:39:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14356379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 12:39:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356379', 'tblTempUsageDetail_20' ) start [2025-01-29 12:39:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356379', 'tblTempUsageDetail_20' ) end [2025-01-29 12:39:39] Production.ERROR: pbx prc_insertCDR start [2025-01-29 12:39:39] Production.ERROR: pbx prc_insertCDR end [2025-01-29 12:39:39] Production.INFO: ==28650== Releasing lock... [2025-01-29 12:39:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 12:39:39] Production.INFO: 62 MB #Memory Used# [2025-01-29 12:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 09:40:06 [end_date_ymd] => 2025-01-29 12:40:06 [RateCDR] => 1 ) [2025-01-29 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-01-29 09:40:06' and `end` < '2025-01-29 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-01-29 12:40:32] Production.INFO: count ==4544 [2025-01-29 12:40:34] Production.ERROR: pbx CDR StartTime 2025-01-29 09:40:06 - End Time 2025-01-29 12:40:06 [2025-01-29 12:40:34] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 12:40:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356384', 'tblTempUsageDetail_20' ) start [2025-01-29 12:40:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356384', 'tblTempUsageDetail_20' ) end [2025-01-29 12:40:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356384', 'tblTempVendorCDR_20' ) start [2025-01-29 12:40:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356384', 'tblTempVendorCDR_20' ) end [2025-01-29 12:40:34] Production.INFO: ProcessCDR(1,14356384,1,1,2) [2025-01-29 12:40:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14356384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 12:40:37] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14356384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 12:40:37] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14356384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 12:40:39] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14356384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 12:40:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356384', 'tblTempUsageDetail_20' ) start [2025-01-29 12:40:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356384', 'tblTempUsageDetail_20' ) end [2025-01-29 12:40:40] Production.ERROR: pbx prc_insertCDR start [2025-01-29 12:40:40] Production.ERROR: pbx prc_insertCDR end [2025-01-29 12:40:40] Production.INFO: ==28735== Releasing lock... [2025-01-29 12:40:40] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 12:40:40] Production.INFO: 62 MB #Memory Used# [2025-01-29 12:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 09:41:06 [end_date_ymd] => 2025-01-29 12:41:06 [RateCDR] => 1 ) [2025-01-29 12:41:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 09:41:06' and `end` < '2025-01-29 12:41:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 12:41:24] Production.INFO: count ==4566 [2025-01-29 12:41:27] Production.ERROR: pbx CDR StartTime 2025-01-29 09:41:06 - End Time 2025-01-29 12:41:06 [2025-01-29 12:41:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 12:41:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356390', 'tblTempUsageDetail_20' ) start [2025-01-29 12:41:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356390', 'tblTempUsageDetail_20' ) end [2025-01-29 12:41:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356390', 'tblTempVendorCDR_20' ) start [2025-01-29 12:41:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356390', 'tblTempVendorCDR_20' ) end [2025-01-29 12:41:27] Production.INFO: ProcessCDR(1,14356390,1,1,2) [2025-01-29 12:41:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14356390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 12:41:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14356390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 12:41:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14356390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 12:41:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14356390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 12:41:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356390', 'tblTempUsageDetail_20' ) start [2025-01-29 12:41:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356390', 'tblTempUsageDetail_20' ) end [2025-01-29 12:41:31] Production.ERROR: pbx prc_insertCDR start [2025-01-29 12:41:31] Production.ERROR: pbx prc_insertCDR end [2025-01-29 12:41:31] Production.INFO: ==28826== Releasing lock... [2025-01-29 12:41:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 12:41:31] Production.INFO: 62.25 MB #Memory Used# [2025-01-29 12:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 09:42:06 [end_date_ymd] => 2025-01-29 12:42:06 [RateCDR] => 1 ) [2025-01-29 12:42:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 09:42:06' and `end` < '2025-01-29 12:42:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 12:42:21] Production.INFO: count ==4571 [2025-01-29 12:42:23] Production.ERROR: pbx CDR StartTime 2025-01-29 09:42:06 - End Time 2025-01-29 12:42:06 [2025-01-29 12:42:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 12:42:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356395', 'tblTempUsageDetail_20' ) start [2025-01-29 12:42:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356395', 'tblTempUsageDetail_20' ) end [2025-01-29 12:42:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356395', 'tblTempVendorCDR_20' ) start [2025-01-29 12:42:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356395', 'tblTempVendorCDR_20' ) end [2025-01-29 12:42:23] Production.INFO: ProcessCDR(1,14356395,1,1,2) [2025-01-29 12:42:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14356395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 12:42:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14356395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 12:42:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14356395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 12:42:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14356395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 12:42:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356395', 'tblTempUsageDetail_20' ) start [2025-01-29 12:42:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356395', 'tblTempUsageDetail_20' ) end [2025-01-29 12:42:28] Production.ERROR: pbx prc_insertCDR start [2025-01-29 12:42:29] Production.ERROR: pbx prc_insertCDR end [2025-01-29 12:42:29] Production.INFO: ==28907== Releasing lock... [2025-01-29 12:42:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 12:42:29] Production.INFO: 62.25 MB #Memory Used# [2025-01-29 12:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 09:43:06 [end_date_ymd] => 2025-01-29 12:43:06 [RateCDR] => 1 ) [2025-01-29 12:43:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 09:43:06' and `end` < '2025-01-29 12:43:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 12:43:19] Production.INFO: count ==4561 [2025-01-29 12:43:22] Production.ERROR: pbx CDR StartTime 2025-01-29 09:43:06 - End Time 2025-01-29 12:43:06 [2025-01-29 12:43:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 12:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356400', 'tblTempUsageDetail_20' ) start [2025-01-29 12:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356400', 'tblTempUsageDetail_20' ) end [2025-01-29 12:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356400', 'tblTempVendorCDR_20' ) start [2025-01-29 12:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356400', 'tblTempVendorCDR_20' ) end [2025-01-29 12:43:22] Production.INFO: ProcessCDR(1,14356400,1,1,2) [2025-01-29 12:43:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14356400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 12:43:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14356400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 12:43:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14356400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 12:43:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14356400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 12:43:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356400', 'tblTempUsageDetail_20' ) start [2025-01-29 12:43:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356400', 'tblTempUsageDetail_20' ) end [2025-01-29 12:43:27] Production.ERROR: pbx prc_insertCDR start [2025-01-29 12:43:27] Production.ERROR: pbx prc_insertCDR end [2025-01-29 12:43:27] Production.INFO: ==28991== Releasing lock... [2025-01-29 12:43:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 12:43:27] Production.INFO: 62.25 MB #Memory Used# [2025-01-29 12:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 09:44:05 [end_date_ymd] => 2025-01-29 12:44:05 [RateCDR] => 1 ) [2025-01-29 12:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 09:44:05' and `end` < '2025-01-29 12:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 12:44:20] Production.INFO: count ==4581 [2025-01-29 12:44:22] Production.ERROR: pbx CDR StartTime 2025-01-29 09:44:05 - End Time 2025-01-29 12:44:05 [2025-01-29 12:44:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 12:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356405', 'tblTempUsageDetail_20' ) start [2025-01-29 12:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356405', 'tblTempUsageDetail_20' ) end [2025-01-29 12:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356405', 'tblTempVendorCDR_20' ) start [2025-01-29 12:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356405', 'tblTempVendorCDR_20' ) end [2025-01-29 12:44:22] Production.INFO: ProcessCDR(1,14356405,1,1,2) [2025-01-29 12:44:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14356405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 12:44:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14356405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 12:44:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14356405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 12:44:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14356405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 12:44:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356405', 'tblTempUsageDetail_20' ) start [2025-01-29 12:44:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356405', 'tblTempUsageDetail_20' ) end [2025-01-29 12:44:27] Production.ERROR: pbx prc_insertCDR start [2025-01-29 12:44:27] Production.ERROR: pbx prc_insertCDR end [2025-01-29 12:44:27] Production.INFO: ==29071== Releasing lock... [2025-01-29 12:44:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 12:44:27] Production.INFO: 62.25 MB #Memory Used# [2025-01-29 12:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 09:45:06 [end_date_ymd] => 2025-01-29 12:45:06 [RateCDR] => 1 ) [2025-01-29 12:45:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 09:45:06' and `end` < '2025-01-29 12:45:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 12:45:20] Production.INFO: count ==4574 [2025-01-29 12:45:22] Production.ERROR: pbx CDR StartTime 2025-01-29 09:45:06 - End Time 2025-01-29 12:45:06 [2025-01-29 12:45:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 12:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356410', 'tblTempUsageDetail_20' ) start [2025-01-29 12:45:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356410', 'tblTempUsageDetail_20' ) end [2025-01-29 12:45:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356410', 'tblTempVendorCDR_20' ) start [2025-01-29 12:45:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356410', 'tblTempVendorCDR_20' ) end [2025-01-29 12:45:23] Production.INFO: ProcessCDR(1,14356410,1,1,2) [2025-01-29 12:45:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14356410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 12:45:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14356410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 12:45:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14356410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 12:45:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14356410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 12:45:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356410', 'tblTempUsageDetail_20' ) start [2025-01-29 12:45:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356410', 'tblTempUsageDetail_20' ) end [2025-01-29 12:45:28] Production.ERROR: pbx prc_insertCDR start [2025-01-29 12:45:28] Production.ERROR: pbx prc_insertCDR end [2025-01-29 12:45:28] Production.INFO: ==29159== Releasing lock... [2025-01-29 12:45:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 12:45:28] Production.INFO: 62.25 MB #Memory Used# [2025-01-29 12:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 09:46:05 [end_date_ymd] => 2025-01-29 12:46:05 [RateCDR] => 1 ) [2025-01-29 12:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 09:46:05' and `end` < '2025-01-29 12:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 12:46:21] Production.INFO: count ==4575 [2025-01-29 12:46:23] Production.ERROR: pbx CDR StartTime 2025-01-29 09:46:05 - End Time 2025-01-29 12:46:05 [2025-01-29 12:46:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 12:46:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356415', 'tblTempUsageDetail_20' ) start [2025-01-29 12:46:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356415', 'tblTempUsageDetail_20' ) end [2025-01-29 12:46:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356415', 'tblTempVendorCDR_20' ) start [2025-01-29 12:46:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356415', 'tblTempVendorCDR_20' ) end [2025-01-29 12:46:23] Production.INFO: ProcessCDR(1,14356415,1,1,2) [2025-01-29 12:46:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14356415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 12:46:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14356415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 12:46:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14356415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 12:46:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14356415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 12:46:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356415', 'tblTempUsageDetail_20' ) start [2025-01-29 12:46:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356415', 'tblTempUsageDetail_20' ) end [2025-01-29 12:46:29] Production.ERROR: pbx prc_insertCDR start [2025-01-29 12:46:29] Production.ERROR: pbx prc_insertCDR end [2025-01-29 12:46:29] Production.INFO: ==29241== Releasing lock... [2025-01-29 12:46:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 12:46:29] Production.INFO: 62.25 MB #Memory Used# [2025-01-29 12:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 09:47:06 [end_date_ymd] => 2025-01-29 12:47:06 [RateCDR] => 1 ) [2025-01-29 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-01-29 09:47:06' and `end` < '2025-01-29 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-01-29 12:47:20] Production.INFO: count ==4569 [2025-01-29 12:47:22] Production.ERROR: pbx CDR StartTime 2025-01-29 09:47:06 - End Time 2025-01-29 12:47:06 [2025-01-29 12:47:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 12:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356420', 'tblTempUsageDetail_20' ) start [2025-01-29 12:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356420', 'tblTempUsageDetail_20' ) end [2025-01-29 12:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356420', 'tblTempVendorCDR_20' ) start [2025-01-29 12:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356420', 'tblTempVendorCDR_20' ) end [2025-01-29 12:47:22] Production.INFO: ProcessCDR(1,14356420,1,1,2) [2025-01-29 12:47:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14356420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 12:47:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14356420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 12:47:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14356420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 12:47:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14356420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 12:47:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356420', 'tblTempUsageDetail_20' ) start [2025-01-29 12:47:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356420', 'tblTempUsageDetail_20' ) end [2025-01-29 12:47:27] Production.ERROR: pbx prc_insertCDR start [2025-01-29 12:47:27] Production.ERROR: pbx prc_insertCDR end [2025-01-29 12:47:27] Production.INFO: ==29325== Releasing lock... [2025-01-29 12:47:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 12:47:27] Production.INFO: 62.25 MB #Memory Used# [2025-01-29 12:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 09:48:05 [end_date_ymd] => 2025-01-29 12:48:05 [RateCDR] => 1 ) [2025-01-29 12:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 09:48:05' and `end` < '2025-01-29 12:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 12:48:22] Production.INFO: count ==4578 [2025-01-29 12:48:24] Production.ERROR: pbx CDR StartTime 2025-01-29 09:48:05 - End Time 2025-01-29 12:48:05 [2025-01-29 12:48:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 12:48:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356425', 'tblTempUsageDetail_20' ) start [2025-01-29 12:48:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356425', 'tblTempUsageDetail_20' ) end [2025-01-29 12:48:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356425', 'tblTempVendorCDR_20' ) start [2025-01-29 12:48:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356425', 'tblTempVendorCDR_20' ) end [2025-01-29 12:48:25] Production.INFO: ProcessCDR(1,14356425,1,1,2) [2025-01-29 12:48:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14356425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 12:48:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14356425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 12:48:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14356425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 12:48:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14356425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 12:48:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356425', 'tblTempUsageDetail_20' ) start [2025-01-29 12:48:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356425', 'tblTempUsageDetail_20' ) end [2025-01-29 12:48:30] Production.ERROR: pbx prc_insertCDR start [2025-01-29 12:48:30] Production.ERROR: pbx prc_insertCDR end [2025-01-29 12:48:30] Production.INFO: ==29410== Releasing lock... [2025-01-29 12:48:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 12:48:30] Production.INFO: 62.25 MB #Memory Used# [2025-01-29 12:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 09:49:06 [end_date_ymd] => 2025-01-29 12:49:06 [RateCDR] => 1 ) [2025-01-29 12:49:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 09:49:06' and `end` < '2025-01-29 12:49:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 12:49:21] Production.INFO: count ==4556 [2025-01-29 12:49:23] Production.ERROR: pbx CDR StartTime 2025-01-29 09:49:06 - End Time 2025-01-29 12:49:06 [2025-01-29 12:49:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 12:49:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356430', 'tblTempUsageDetail_20' ) start [2025-01-29 12:49:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356430', 'tblTempUsageDetail_20' ) end [2025-01-29 12:49:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356430', 'tblTempVendorCDR_20' ) start [2025-01-29 12:49:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356430', 'tblTempVendorCDR_20' ) end [2025-01-29 12:49:23] Production.INFO: ProcessCDR(1,14356430,1,1,2) [2025-01-29 12:49:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14356430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 12:49:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14356430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 12:49:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14356430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 12:49:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14356430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 12:49:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356430', 'tblTempUsageDetail_20' ) start [2025-01-29 12:49:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356430', 'tblTempUsageDetail_20' ) end [2025-01-29 12:49:28] Production.ERROR: pbx prc_insertCDR start [2025-01-29 12:49:28] Production.ERROR: pbx prc_insertCDR end [2025-01-29 12:49:28] Production.INFO: ==29493== Releasing lock... [2025-01-29 12:49:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 12:49:28] Production.INFO: 62 MB #Memory Used# [2025-01-29 12:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 09:50:06 [end_date_ymd] => 2025-01-29 12:50:06 [RateCDR] => 1 ) [2025-01-29 12:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 09:50:06' and `end` < '2025-01-29 12:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 12:50:22] Production.INFO: count ==4553 [2025-01-29 12:50:25] Production.ERROR: pbx CDR StartTime 2025-01-29 09:50:06 - End Time 2025-01-29 12:50:06 [2025-01-29 12:50:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 12:50:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356436', 'tblTempUsageDetail_20' ) start [2025-01-29 12:50:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356436', 'tblTempUsageDetail_20' ) end [2025-01-29 12:50:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356436', 'tblTempVendorCDR_20' ) start [2025-01-29 12:50:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356436', 'tblTempVendorCDR_20' ) end [2025-01-29 12:50:25] Production.INFO: ProcessCDR(1,14356436,1,1,2) [2025-01-29 12:50:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14356436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 12:50:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14356436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 12:50:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14356436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 12:50:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14356436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 12:50:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356436', 'tblTempUsageDetail_20' ) start [2025-01-29 12:50:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356436', 'tblTempUsageDetail_20' ) end [2025-01-29 12:50:30] Production.ERROR: pbx prc_insertCDR start [2025-01-29 12:50:30] Production.ERROR: pbx prc_insertCDR end [2025-01-29 12:50:30] Production.INFO: ==29618== Releasing lock... [2025-01-29 12:50:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 12:50:30] Production.INFO: 62 MB #Memory Used# [2025-01-29 12:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 09:51:05 [end_date_ymd] => 2025-01-29 12:51:05 [RateCDR] => 1 ) [2025-01-29 12:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 09:51:05' and `end` < '2025-01-29 12:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 12:51:22] Production.INFO: count ==4575 [2025-01-29 12:51:24] Production.ERROR: pbx CDR StartTime 2025-01-29 09:51:05 - End Time 2025-01-29 12:51:05 [2025-01-29 12:51:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 12:51:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356441', 'tblTempUsageDetail_20' ) start [2025-01-29 12:51:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356441', 'tblTempUsageDetail_20' ) end [2025-01-29 12:51:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356441', 'tblTempVendorCDR_20' ) start [2025-01-29 12:51:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356441', 'tblTempVendorCDR_20' ) end [2025-01-29 12:51:24] Production.INFO: ProcessCDR(1,14356441,1,1,2) [2025-01-29 12:51:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14356441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 12:51:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14356441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 12:51:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14356441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 12:51:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14356441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 12:51:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356441', 'tblTempUsageDetail_20' ) start [2025-01-29 12:51:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356441', 'tblTempUsageDetail_20' ) end [2025-01-29 12:51:30] Production.ERROR: pbx prc_insertCDR start [2025-01-29 12:51:30] Production.ERROR: pbx prc_insertCDR end [2025-01-29 12:51:30] Production.INFO: ==29700== Releasing lock... [2025-01-29 12:51:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 12:51:30] Production.INFO: 62.25 MB #Memory Used# [2025-01-29 12:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 09:52:06 [end_date_ymd] => 2025-01-29 12:52:06 [RateCDR] => 1 ) [2025-01-29 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-01-29 09:52:06' and `end` < '2025-01-29 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-01-29 12:52:24] Production.INFO: count ==4565 [2025-01-29 12:52:26] Production.ERROR: pbx CDR StartTime 2025-01-29 09:52:06 - End Time 2025-01-29 12:52:06 [2025-01-29 12:52:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 12:52:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356446', 'tblTempUsageDetail_20' ) start [2025-01-29 12:52:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356446', 'tblTempUsageDetail_20' ) end [2025-01-29 12:52:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356446', 'tblTempVendorCDR_20' ) start [2025-01-29 12:52:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356446', 'tblTempVendorCDR_20' ) end [2025-01-29 12:52:26] Production.INFO: ProcessCDR(1,14356446,1,1,2) [2025-01-29 12:52:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14356446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 12:52:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14356446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 12:52:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14356446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 12:52:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14356446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 12:52:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356446', 'tblTempUsageDetail_20' ) start [2025-01-29 12:52:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356446', 'tblTempUsageDetail_20' ) end [2025-01-29 12:52:32] Production.ERROR: pbx prc_insertCDR start [2025-01-29 12:52:32] Production.ERROR: pbx prc_insertCDR end [2025-01-29 12:52:32] Production.INFO: ==29781== Releasing lock... [2025-01-29 12:52:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 12:52:32] Production.INFO: 62.25 MB #Memory Used# [2025-01-29 12:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 09:53:05 [end_date_ymd] => 2025-01-29 12:53:05 [RateCDR] => 1 ) [2025-01-29 12:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 09:53:05' and `end` < '2025-01-29 12:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 12:53:23] Production.INFO: count ==4547 [2025-01-29 12:53:26] Production.ERROR: pbx CDR StartTime 2025-01-29 09:53:05 - End Time 2025-01-29 12:53:05 [2025-01-29 12:53:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 12:53:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356451', 'tblTempUsageDetail_20' ) start [2025-01-29 12:53:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356451', 'tblTempUsageDetail_20' ) end [2025-01-29 12:53:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356451', 'tblTempVendorCDR_20' ) start [2025-01-29 12:53:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356451', 'tblTempVendorCDR_20' ) end [2025-01-29 12:53:26] Production.INFO: ProcessCDR(1,14356451,1,1,2) [2025-01-29 12:53:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14356451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 12:53:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14356451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 12:53:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14356451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 12:53:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14356451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 12:53:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356451', 'tblTempUsageDetail_20' ) start [2025-01-29 12:53:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356451', 'tblTempUsageDetail_20' ) end [2025-01-29 12:53:31] Production.ERROR: pbx prc_insertCDR start [2025-01-29 12:53:31] Production.ERROR: pbx prc_insertCDR end [2025-01-29 12:53:31] Production.INFO: ==29867== Releasing lock... [2025-01-29 12:53:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 12:53:31] Production.INFO: 62 MB #Memory Used# [2025-01-29 12:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 09:54:06 [end_date_ymd] => 2025-01-29 12:54:06 [RateCDR] => 1 ) [2025-01-29 12:54:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 09:54:06' and `end` < '2025-01-29 12:54:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 12:54:23] Production.INFO: count ==4565 [2025-01-29 12:54:25] Production.ERROR: pbx CDR StartTime 2025-01-29 09:54:06 - End Time 2025-01-29 12:54:06 [2025-01-29 12:54:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 12:54:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356456', 'tblTempUsageDetail_20' ) start [2025-01-29 12:54:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356456', 'tblTempUsageDetail_20' ) end [2025-01-29 12:54:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356456', 'tblTempVendorCDR_20' ) start [2025-01-29 12:54:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356456', 'tblTempVendorCDR_20' ) end [2025-01-29 12:54:25] Production.INFO: ProcessCDR(1,14356456,1,1,2) [2025-01-29 12:54:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14356456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 12:54:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14356456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 12:54:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14356456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 12:54:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14356456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 12:54:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356456', 'tblTempUsageDetail_20' ) start [2025-01-29 12:54:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356456', 'tblTempUsageDetail_20' ) end [2025-01-29 12:54:31] Production.ERROR: pbx prc_insertCDR start [2025-01-29 12:54:31] Production.ERROR: pbx prc_insertCDR end [2025-01-29 12:54:31] Production.INFO: ==29964== Releasing lock... [2025-01-29 12:54:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 12:54:31] Production.INFO: 62.25 MB #Memory Used# [2025-01-29 12:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 09:55:05 [end_date_ymd] => 2025-01-29 12:55:05 [RateCDR] => 1 ) [2025-01-29 12:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 09:55:05' and `end` < '2025-01-29 12:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 12:55:26] Production.INFO: count ==4554 [2025-01-29 12:55:28] Production.ERROR: pbx CDR StartTime 2025-01-29 09:55:05 - End Time 2025-01-29 12:55:05 [2025-01-29 12:55:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 12:55:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356461', 'tblTempUsageDetail_20' ) start [2025-01-29 12:55:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356461', 'tblTempUsageDetail_20' ) end [2025-01-29 12:55:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356461', 'tblTempVendorCDR_20' ) start [2025-01-29 12:55:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356461', 'tblTempVendorCDR_20' ) end [2025-01-29 12:55:29] Production.INFO: ProcessCDR(1,14356461,1,1,2) [2025-01-29 12:55:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14356461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 12:55:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14356461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 12:55:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14356461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 12:55:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14356461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 12:55:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356461', 'tblTempUsageDetail_20' ) start [2025-01-29 12:55:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356461', 'tblTempUsageDetail_20' ) end [2025-01-29 12:55:34] Production.ERROR: pbx prc_insertCDR start [2025-01-29 12:55:34] Production.ERROR: pbx prc_insertCDR end [2025-01-29 12:55:34] Production.INFO: ==30042== Releasing lock... [2025-01-29 12:55:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 12:55:34] Production.INFO: 62 MB #Memory Used# [2025-01-29 12:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 09:56:05 [end_date_ymd] => 2025-01-29 12:56:05 [RateCDR] => 1 ) [2025-01-29 12:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 09:56:05' and `end` < '2025-01-29 12:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 12:56:20] Production.INFO: count ==4548 [2025-01-29 12:56:22] Production.ERROR: pbx CDR StartTime 2025-01-29 09:56:05 - End Time 2025-01-29 12:56:05 [2025-01-29 12:56:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 12:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356466', 'tblTempUsageDetail_20' ) start [2025-01-29 12:56:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356466', 'tblTempUsageDetail_20' ) end [2025-01-29 12:56:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356466', 'tblTempVendorCDR_20' ) start [2025-01-29 12:56:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356466', 'tblTempVendorCDR_20' ) end [2025-01-29 12:56:23] Production.INFO: ProcessCDR(1,14356466,1,1,2) [2025-01-29 12:56:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14356466,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 12:56:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14356466,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 12:56:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14356466,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 12:56:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14356466,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 12:56:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356466', 'tblTempUsageDetail_20' ) start [2025-01-29 12:56:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356466', 'tblTempUsageDetail_20' ) end [2025-01-29 12:56:28] Production.ERROR: pbx prc_insertCDR start [2025-01-29 12:56:28] Production.ERROR: pbx prc_insertCDR end [2025-01-29 12:56:28] Production.INFO: ==30121== Releasing lock... [2025-01-29 12:56:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 12:56:28] Production.INFO: 62 MB #Memory Used# [2025-01-29 12:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 09:57:05 [end_date_ymd] => 2025-01-29 12:57:05 [RateCDR] => 1 ) [2025-01-29 12:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 09:57:05' and `end` < '2025-01-29 12:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 12:57:24] Production.INFO: count ==4556 [2025-01-29 12:57:27] Production.ERROR: pbx CDR StartTime 2025-01-29 09:57:05 - End Time 2025-01-29 12:57:05 [2025-01-29 12:57:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 12:57:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356471', 'tblTempUsageDetail_20' ) start [2025-01-29 12:57:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356471', 'tblTempUsageDetail_20' ) end [2025-01-29 12:57:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356471', 'tblTempVendorCDR_20' ) start [2025-01-29 12:57:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356471', 'tblTempVendorCDR_20' ) end [2025-01-29 12:57:27] Production.INFO: ProcessCDR(1,14356471,1,1,2) [2025-01-29 12:57:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14356471,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 12:57:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14356471,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 12:57:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14356471,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 12:57:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14356471,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 12:57:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356471', 'tblTempUsageDetail_20' ) start [2025-01-29 12:57:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356471', 'tblTempUsageDetail_20' ) end [2025-01-29 12:57:32] Production.ERROR: pbx prc_insertCDR start [2025-01-29 12:57:33] Production.ERROR: pbx prc_insertCDR end [2025-01-29 12:57:33] Production.INFO: ==30199== Releasing lock... [2025-01-29 12:57:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 12:57:33] Production.INFO: 62 MB #Memory Used# [2025-01-29 12:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 09:58:06 [end_date_ymd] => 2025-01-29 12:58:06 [RateCDR] => 1 ) [2025-01-29 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-01-29 09:58:06' and `end` < '2025-01-29 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-01-29 12:58:24] Production.INFO: count ==4558 [2025-01-29 12:58:26] Production.ERROR: pbx CDR StartTime 2025-01-29 09:58:06 - End Time 2025-01-29 12:58:06 [2025-01-29 12:58:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 12:58:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356476', 'tblTempUsageDetail_20' ) start [2025-01-29 12:58:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356476', 'tblTempUsageDetail_20' ) end [2025-01-29 12:58:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356476', 'tblTempVendorCDR_20' ) start [2025-01-29 12:58:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356476', 'tblTempVendorCDR_20' ) end [2025-01-29 12:58:26] Production.INFO: ProcessCDR(1,14356476,1,1,2) [2025-01-29 12:58:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14356476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 12:58:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14356476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 12:58:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14356476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 12:58:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14356476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 12:58:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356476', 'tblTempUsageDetail_20' ) start [2025-01-29 12:58:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356476', 'tblTempUsageDetail_20' ) end [2025-01-29 12:58:32] Production.ERROR: pbx prc_insertCDR start [2025-01-29 12:58:32] Production.ERROR: pbx prc_insertCDR end [2025-01-29 12:58:32] Production.INFO: ==30276== Releasing lock... [2025-01-29 12:58:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 12:58:32] Production.INFO: 62 MB #Memory Used# [2025-01-29 12:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 09:59:05 [end_date_ymd] => 2025-01-29 12:59:05 [RateCDR] => 1 ) [2025-01-29 12:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 09:59:05' and `end` < '2025-01-29 12:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 12:59:20] Production.INFO: count ==4556 [2025-01-29 12:59:22] Production.ERROR: pbx CDR StartTime 2025-01-29 09:59:05 - End Time 2025-01-29 12:59:05 [2025-01-29 12:59:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 12:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356481', 'tblTempUsageDetail_20' ) start [2025-01-29 12:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356481', 'tblTempUsageDetail_20' ) end [2025-01-29 12:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356481', 'tblTempVendorCDR_20' ) start [2025-01-29 12:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356481', 'tblTempVendorCDR_20' ) end [2025-01-29 12:59:22] Production.INFO: ProcessCDR(1,14356481,1,1,2) [2025-01-29 12:59:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14356481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 12:59:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14356481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 12:59:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14356481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 12:59:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14356481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 12:59:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356481', 'tblTempUsageDetail_20' ) start [2025-01-29 12:59:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356481', 'tblTempUsageDetail_20' ) end [2025-01-29 12:59:28] Production.ERROR: pbx prc_insertCDR start [2025-01-29 12:59:28] Production.ERROR: pbx prc_insertCDR end [2025-01-29 12:59:28] Production.INFO: ==30357== Releasing lock... [2025-01-29 12:59:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 12:59:28] Production.INFO: 62 MB #Memory Used# [2025-01-29 13:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 10:00:06 [end_date_ymd] => 2025-01-29 13:00:06 [RateCDR] => 1 ) [2025-01-29 13:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 10:00:06' and `end` < '2025-01-29 13:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 13:00:28] Production.INFO: count ==4548 [2025-01-29 13:00:30] Production.ERROR: pbx CDR StartTime 2025-01-29 10:00:06 - End Time 2025-01-29 13:00:06 [2025-01-29 13:00:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 13:00:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356487', 'tblTempUsageDetail_20' ) start [2025-01-29 13:00:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356487', 'tblTempUsageDetail_20' ) end [2025-01-29 13:00:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356487', 'tblTempVendorCDR_20' ) start [2025-01-29 13:00:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356487', 'tblTempVendorCDR_20' ) end [2025-01-29 13:00:30] Production.INFO: ProcessCDR(1,14356487,1,1,2) [2025-01-29 13:00:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14356487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 13:00:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14356487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 13:00:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14356487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 13:00:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14356487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 13:00:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356487', 'tblTempUsageDetail_20' ) start [2025-01-29 13:00:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356487', 'tblTempUsageDetail_20' ) end [2025-01-29 13:00:36] Production.ERROR: pbx prc_insertCDR start [2025-01-29 13:00:36] Production.ERROR: pbx prc_insertCDR end [2025-01-29 13:00:36] Production.INFO: ==30440== Releasing lock... [2025-01-29 13:00:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 13:00:36] Production.INFO: 62 MB #Memory Used# [2025-01-29 13:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 10:01:06 [end_date_ymd] => 2025-01-29 13:01:06 [RateCDR] => 1 ) [2025-01-29 13:01:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 10:01:06' and `end` < '2025-01-29 13:01:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 13:01:20] Production.INFO: count ==4558 [2025-01-29 13:01:22] Production.ERROR: pbx CDR StartTime 2025-01-29 10:01:06 - End Time 2025-01-29 13:01:06 [2025-01-29 13:01:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 13:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356492', 'tblTempUsageDetail_20' ) start [2025-01-29 13:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356492', 'tblTempUsageDetail_20' ) end [2025-01-29 13:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356492', 'tblTempVendorCDR_20' ) start [2025-01-29 13:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356492', 'tblTempVendorCDR_20' ) end [2025-01-29 13:01:22] Production.INFO: ProcessCDR(1,14356492,1,1,2) [2025-01-29 13:01:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14356492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 13:01:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14356492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 13:01:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14356492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 13:01:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14356492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 13:01:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356492', 'tblTempUsageDetail_20' ) start [2025-01-29 13:01:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356492', 'tblTempUsageDetail_20' ) end [2025-01-29 13:01:28] Production.ERROR: pbx prc_insertCDR start [2025-01-29 13:01:28] Production.ERROR: pbx prc_insertCDR end [2025-01-29 13:01:28] Production.INFO: ==30532== Releasing lock... [2025-01-29 13:01:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 13:01:28] Production.INFO: 62.25 MB #Memory Used# [2025-01-29 13:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 10:02:06 [end_date_ymd] => 2025-01-29 13:02:06 [RateCDR] => 1 ) [2025-01-29 13:02:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 10:02:06' and `end` < '2025-01-29 13:02:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 13:02:20] Production.INFO: count ==4560 [2025-01-29 13:02:22] Production.ERROR: pbx CDR StartTime 2025-01-29 10:02:06 - End Time 2025-01-29 13:02:06 [2025-01-29 13:02:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 13:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356497', 'tblTempUsageDetail_20' ) start [2025-01-29 13:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356497', 'tblTempUsageDetail_20' ) end [2025-01-29 13:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356497', 'tblTempVendorCDR_20' ) start [2025-01-29 13:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356497', 'tblTempVendorCDR_20' ) end [2025-01-29 13:02:22] Production.INFO: ProcessCDR(1,14356497,1,1,2) [2025-01-29 13:02:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14356497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 13:02:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14356497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 13:02:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14356497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 13:02:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14356497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 13:02:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356497', 'tblTempUsageDetail_20' ) start [2025-01-29 13:02:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356497', 'tblTempUsageDetail_20' ) end [2025-01-29 13:02:28] Production.ERROR: pbx prc_insertCDR start [2025-01-29 13:02:28] Production.ERROR: pbx prc_insertCDR end [2025-01-29 13:02:28] Production.INFO: ==30613== Releasing lock... [2025-01-29 13:02:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 13:02:28] Production.INFO: 62.25 MB #Memory Used# [2025-01-29 13:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 10:03:05 [end_date_ymd] => 2025-01-29 13:03:05 [RateCDR] => 1 ) [2025-01-29 13:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 10:03:05' and `end` < '2025-01-29 13:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 13:03:23] Production.INFO: count ==4562 [2025-01-29 13:03:25] Production.ERROR: pbx CDR StartTime 2025-01-29 10:03:05 - End Time 2025-01-29 13:03:05 [2025-01-29 13:03:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 13:03:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356502', 'tblTempUsageDetail_20' ) start [2025-01-29 13:03:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356502', 'tblTempUsageDetail_20' ) end [2025-01-29 13:03:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356502', 'tblTempVendorCDR_20' ) start [2025-01-29 13:03:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356502', 'tblTempVendorCDR_20' ) end [2025-01-29 13:03:26] Production.INFO: ProcessCDR(1,14356502,1,1,2) [2025-01-29 13:03:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14356502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 13:03:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14356502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 13:03:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14356502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 13:03:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14356502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 13:03:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356502', 'tblTempUsageDetail_20' ) start [2025-01-29 13:03:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356502', 'tblTempUsageDetail_20' ) end [2025-01-29 13:03:31] Production.ERROR: pbx prc_insertCDR start [2025-01-29 13:03:31] Production.ERROR: pbx prc_insertCDR end [2025-01-29 13:03:31] Production.INFO: ==30688== Releasing lock... [2025-01-29 13:03:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 13:03:31] Production.INFO: 62.25 MB #Memory Used# [2025-01-29 13:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 10:04:06 [end_date_ymd] => 2025-01-29 13:04:06 [RateCDR] => 1 ) [2025-01-29 13:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 10:04:06' and `end` < '2025-01-29 13:04:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 13:04:29] Production.INFO: count ==4571 [2025-01-29 13:04:31] Production.ERROR: pbx CDR StartTime 2025-01-29 10:04:06 - End Time 2025-01-29 13:04:06 [2025-01-29 13:04:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 13:04:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356507', 'tblTempUsageDetail_20' ) start [2025-01-29 13:04:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356507', 'tblTempUsageDetail_20' ) end [2025-01-29 13:04:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356507', 'tblTempVendorCDR_20' ) start [2025-01-29 13:04:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356507', 'tblTempVendorCDR_20' ) end [2025-01-29 13:04:32] Production.INFO: ProcessCDR(1,14356507,1,1,2) [2025-01-29 13:04:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14356507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 13:04:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14356507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 13:04:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14356507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 13:04:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14356507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 13:04:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356507', 'tblTempUsageDetail_20' ) start [2025-01-29 13:04:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356507', 'tblTempUsageDetail_20' ) end [2025-01-29 13:04:37] Production.ERROR: pbx prc_insertCDR start [2025-01-29 13:04:37] Production.ERROR: pbx prc_insertCDR end [2025-01-29 13:04:37] Production.INFO: ==30766== Releasing lock... [2025-01-29 13:04:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 13:04:37] Production.INFO: 62.5 MB #Memory Used# [2025-01-29 13:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 10:05:06 [end_date_ymd] => 2025-01-29 13:05:06 [RateCDR] => 1 ) [2025-01-29 13:05:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 10:05:06' and `end` < '2025-01-29 13:05:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 13:05:25] Production.INFO: count ==4567 [2025-01-29 13:05:28] Production.ERROR: pbx CDR StartTime 2025-01-29 10:05:06 - End Time 2025-01-29 13:05:06 [2025-01-29 13:05:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 13:05:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356512', 'tblTempUsageDetail_20' ) start [2025-01-29 13:05:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356512', 'tblTempUsageDetail_20' ) end [2025-01-29 13:05:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356512', 'tblTempVendorCDR_20' ) start [2025-01-29 13:05:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356512', 'tblTempVendorCDR_20' ) end [2025-01-29 13:05:28] Production.INFO: ProcessCDR(1,14356512,1,1,2) [2025-01-29 13:05:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14356512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 13:05:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14356512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 13:05:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14356512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 13:05:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14356512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 13:05:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356512', 'tblTempUsageDetail_20' ) start [2025-01-29 13:05:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356512', 'tblTempUsageDetail_20' ) end [2025-01-29 13:05:33] Production.ERROR: pbx prc_insertCDR start [2025-01-29 13:05:33] Production.ERROR: pbx prc_insertCDR end [2025-01-29 13:05:33] Production.INFO: ==30846== Releasing lock... [2025-01-29 13:05:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 13:05:33] Production.INFO: 62.25 MB #Memory Used# [2025-01-29 13:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 10:06:05 [end_date_ymd] => 2025-01-29 13:06:05 [RateCDR] => 1 ) [2025-01-29 13:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 10:06:05' and `end` < '2025-01-29 13:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 13:06:21] Production.INFO: count ==4566 [2025-01-29 13:06:23] Production.ERROR: pbx CDR StartTime 2025-01-29 10:06:05 - End Time 2025-01-29 13:06:05 [2025-01-29 13:06:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 13:06:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356517', 'tblTempUsageDetail_20' ) start [2025-01-29 13:06:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356517', 'tblTempUsageDetail_20' ) end [2025-01-29 13:06:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356517', 'tblTempVendorCDR_20' ) start [2025-01-29 13:06:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356517', 'tblTempVendorCDR_20' ) end [2025-01-29 13:06:23] Production.INFO: ProcessCDR(1,14356517,1,1,2) [2025-01-29 13:06:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14356517,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 13:06:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14356517,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 13:06:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14356517,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 13:06:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14356517,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 13:06:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356517', 'tblTempUsageDetail_20' ) start [2025-01-29 13:06:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356517', 'tblTempUsageDetail_20' ) end [2025-01-29 13:06:29] Production.ERROR: pbx prc_insertCDR start [2025-01-29 13:06:29] Production.ERROR: pbx prc_insertCDR end [2025-01-29 13:06:29] Production.INFO: ==30966== Releasing lock... [2025-01-29 13:06:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 13:06:29] Production.INFO: 62.25 MB #Memory Used# [2025-01-29 13:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 10:07:05 [end_date_ymd] => 2025-01-29 13:07:05 [RateCDR] => 1 ) [2025-01-29 13:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 10:07:05' and `end` < '2025-01-29 13:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 13:07:19] Production.INFO: count ==4562 [2025-01-29 13:07:21] Production.ERROR: pbx CDR StartTime 2025-01-29 10:07:05 - End Time 2025-01-29 13:07:05 [2025-01-29 13:07:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 13:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356522', 'tblTempUsageDetail_20' ) start [2025-01-29 13:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356522', 'tblTempUsageDetail_20' ) end [2025-01-29 13:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356522', 'tblTempVendorCDR_20' ) start [2025-01-29 13:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356522', 'tblTempVendorCDR_20' ) end [2025-01-29 13:07:21] Production.INFO: ProcessCDR(1,14356522,1,1,2) [2025-01-29 13:07:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14356522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 13:07:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14356522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 13:07:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14356522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 13:07:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14356522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 13:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356522', 'tblTempUsageDetail_20' ) start [2025-01-29 13:07:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356522', 'tblTempUsageDetail_20' ) end [2025-01-29 13:07:27] Production.ERROR: pbx prc_insertCDR start [2025-01-29 13:07:27] Production.ERROR: pbx prc_insertCDR end [2025-01-29 13:07:27] Production.INFO: ==31045== Releasing lock... [2025-01-29 13:07:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 13:07:27] Production.INFO: 62.25 MB #Memory Used# [2025-01-29 13:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 10:08:06 [end_date_ymd] => 2025-01-29 13:08:06 [RateCDR] => 1 ) [2025-01-29 13:08:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 10:08:06' and `end` < '2025-01-29 13:08:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 13:08:20] Production.INFO: count ==4553 [2025-01-29 13:08:22] Production.ERROR: pbx CDR StartTime 2025-01-29 10:08:06 - End Time 2025-01-29 13:08:06 [2025-01-29 13:08:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 13:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356527', 'tblTempUsageDetail_20' ) start [2025-01-29 13:08:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356527', 'tblTempUsageDetail_20' ) end [2025-01-29 13:08:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356527', 'tblTempVendorCDR_20' ) start [2025-01-29 13:08:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356527', 'tblTempVendorCDR_20' ) end [2025-01-29 13:08:23] Production.INFO: ProcessCDR(1,14356527,1,1,2) [2025-01-29 13:08:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14356527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 13:08:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14356527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 13:08:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14356527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 13:08:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14356527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 13:08:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356527', 'tblTempUsageDetail_20' ) start [2025-01-29 13:08:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356527', 'tblTempUsageDetail_20' ) end [2025-01-29 13:08:28] Production.ERROR: pbx prc_insertCDR start [2025-01-29 13:08:28] Production.ERROR: pbx prc_insertCDR end [2025-01-29 13:08:28] Production.INFO: ==31125== Releasing lock... [2025-01-29 13:08:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 13:08:28] Production.INFO: 62 MB #Memory Used# [2025-01-29 13:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 10:09:05 [end_date_ymd] => 2025-01-29 13:09:05 [RateCDR] => 1 ) [2025-01-29 13:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 10:09:05' and `end` < '2025-01-29 13:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 13:09:19] Production.INFO: count ==4552 [2025-01-29 13:09:21] Production.ERROR: pbx CDR StartTime 2025-01-29 10:09:05 - End Time 2025-01-29 13:09:05 [2025-01-29 13:09:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 13:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356532', 'tblTempUsageDetail_20' ) start [2025-01-29 13:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356532', 'tblTempUsageDetail_20' ) end [2025-01-29 13:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356532', 'tblTempVendorCDR_20' ) start [2025-01-29 13:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356532', 'tblTempVendorCDR_20' ) end [2025-01-29 13:09:22] Production.INFO: ProcessCDR(1,14356532,1,1,2) [2025-01-29 13:09:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14356532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 13:09:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14356532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 13:09:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14356532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 13:09:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14356532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 13:09:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356532', 'tblTempUsageDetail_20' ) start [2025-01-29 13:09:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356532', 'tblTempUsageDetail_20' ) end [2025-01-29 13:09:27] Production.ERROR: pbx prc_insertCDR start [2025-01-29 13:09:27] Production.ERROR: pbx prc_insertCDR end [2025-01-29 13:09:27] Production.INFO: ==31200== Releasing lock... [2025-01-29 13:09:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 13:09:27] Production.INFO: 62 MB #Memory Used# [2025-01-29 13:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 10:10:06 [end_date_ymd] => 2025-01-29 13:10:06 [RateCDR] => 1 ) [2025-01-29 13:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 10:10:06' and `end` < '2025-01-29 13:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 13:10:25] Production.INFO: count ==4581 [2025-01-29 13:10:28] Production.ERROR: pbx CDR StartTime 2025-01-29 10:10:06 - End Time 2025-01-29 13:10:06 [2025-01-29 13:10:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 13:10:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356538', 'tblTempUsageDetail_20' ) start [2025-01-29 13:10:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356538', 'tblTempUsageDetail_20' ) end [2025-01-29 13:10:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356538', 'tblTempVendorCDR_20' ) start [2025-01-29 13:10:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356538', 'tblTempVendorCDR_20' ) end [2025-01-29 13:10:28] Production.INFO: ProcessCDR(1,14356538,1,1,2) [2025-01-29 13:10:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14356538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 13:10:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14356538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 13:10:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14356538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 13:10:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14356538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 13:10:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356538', 'tblTempUsageDetail_20' ) start [2025-01-29 13:10:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356538', 'tblTempUsageDetail_20' ) end [2025-01-29 13:10:33] Production.ERROR: pbx prc_insertCDR start [2025-01-29 13:10:34] Production.ERROR: pbx prc_insertCDR end [2025-01-29 13:10:34] Production.INFO: ==31279== Releasing lock... [2025-01-29 13:10:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 13:10:34] Production.INFO: 62.25 MB #Memory Used# [2025-01-29 13:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 10:11:06 [end_date_ymd] => 2025-01-29 13:11:06 [RateCDR] => 1 ) [2025-01-29 13:11:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 10:11:06' and `end` < '2025-01-29 13:11:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 13:11:35] Production.INFO: count ==4621 [2025-01-29 13:11:37] Production.ERROR: pbx CDR StartTime 2025-01-29 10:11:06 - End Time 2025-01-29 13:11:06 [2025-01-29 13:11:37] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 13:11:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356543', 'tblTempUsageDetail_20' ) start [2025-01-29 13:11:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356543', 'tblTempUsageDetail_20' ) end [2025-01-29 13:11:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356543', 'tblTempVendorCDR_20' ) start [2025-01-29 13:11:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356543', 'tblTempVendorCDR_20' ) end [2025-01-29 13:11:37] Production.INFO: ProcessCDR(1,14356543,1,1,2) [2025-01-29 13:11:37] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14356543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 13:11:40] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14356543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 13:11:40] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14356543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 13:11:43] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14356543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 13:11:43] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356543', 'tblTempUsageDetail_20' ) start [2025-01-29 13:11:43] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356543', 'tblTempUsageDetail_20' ) end [2025-01-29 13:11:43] Production.ERROR: pbx prc_insertCDR start [2025-01-29 13:11:44] Production.ERROR: pbx prc_insertCDR end [2025-01-29 13:11:44] Production.INFO: ==31359== Releasing lock... [2025-01-29 13:11:44] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 13:11:44] Production.INFO: 62.5 MB #Memory Used# [2025-01-29 13:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 10:12:05 [end_date_ymd] => 2025-01-29 13:12:05 [RateCDR] => 1 ) [2025-01-29 13:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 10:12:05' and `end` < '2025-01-29 13:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 13:12:29] Production.INFO: count ==4644 [2025-01-29 13:12:31] Production.ERROR: pbx CDR StartTime 2025-01-29 10:12:05 - End Time 2025-01-29 13:12:05 [2025-01-29 13:12:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 13:12:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356548', 'tblTempUsageDetail_20' ) start [2025-01-29 13:12:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356548', 'tblTempUsageDetail_20' ) end [2025-01-29 13:12:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356548', 'tblTempVendorCDR_20' ) start [2025-01-29 13:12:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356548', 'tblTempVendorCDR_20' ) end [2025-01-29 13:12:31] Production.INFO: ProcessCDR(1,14356548,1,1,2) [2025-01-29 13:12:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14356548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 13:12:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14356548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 13:12:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14356548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 13:12:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14356548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 13:12:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356548', 'tblTempUsageDetail_20' ) start [2025-01-29 13:12:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356548', 'tblTempUsageDetail_20' ) end [2025-01-29 13:12:36] Production.ERROR: pbx prc_insertCDR start [2025-01-29 13:12:36] Production.ERROR: pbx prc_insertCDR end [2025-01-29 13:12:36] Production.INFO: ==31439== Releasing lock... [2025-01-29 13:12:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 13:12:36] Production.INFO: 62.75 MB #Memory Used# [2025-01-29 13:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 10:13:06 [end_date_ymd] => 2025-01-29 13:13:06 [RateCDR] => 1 ) [2025-01-29 13:13:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 10:13:06' and `end` < '2025-01-29 13:13:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 13:13:24] Production.INFO: count ==4650 [2025-01-29 13:13:26] Production.ERROR: pbx CDR StartTime 2025-01-29 10:13:06 - End Time 2025-01-29 13:13:06 [2025-01-29 13:13:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 13:13:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356553', 'tblTempUsageDetail_20' ) start [2025-01-29 13:13:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356553', 'tblTempUsageDetail_20' ) end [2025-01-29 13:13:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356553', 'tblTempVendorCDR_20' ) start [2025-01-29 13:13:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356553', 'tblTempVendorCDR_20' ) end [2025-01-29 13:13:26] Production.INFO: ProcessCDR(1,14356553,1,1,2) [2025-01-29 13:13:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14356553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 13:13:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14356553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 13:13:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14356553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 13:13:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14356553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 13:13:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356553', 'tblTempUsageDetail_20' ) start [2025-01-29 13:13:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356553', 'tblTempUsageDetail_20' ) end [2025-01-29 13:13:32] Production.ERROR: pbx prc_insertCDR start [2025-01-29 13:13:32] Production.ERROR: pbx prc_insertCDR end [2025-01-29 13:13:32] Production.INFO: ==31523== Releasing lock... [2025-01-29 13:13:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 13:13:32] Production.INFO: 62.75 MB #Memory Used# [2025-01-29 13:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 10:14:05 [end_date_ymd] => 2025-01-29 13:14:05 [RateCDR] => 1 ) [2025-01-29 13:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 10:14:05' and `end` < '2025-01-29 13:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 13:14:23] Production.INFO: count ==4652 [2025-01-29 13:14:25] Production.ERROR: pbx CDR StartTime 2025-01-29 10:14:05 - End Time 2025-01-29 13:14:05 [2025-01-29 13:14:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 13:14:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356558', 'tblTempUsageDetail_20' ) start [2025-01-29 13:14:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356558', 'tblTempUsageDetail_20' ) end [2025-01-29 13:14:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356558', 'tblTempVendorCDR_20' ) start [2025-01-29 13:14:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356558', 'tblTempVendorCDR_20' ) end [2025-01-29 13:14:25] Production.INFO: ProcessCDR(1,14356558,1,1,2) [2025-01-29 13:14:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14356558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 13:14:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14356558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 13:14:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14356558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 13:14:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14356558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 13:14:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356558', 'tblTempUsageDetail_20' ) start [2025-01-29 13:14:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356558', 'tblTempUsageDetail_20' ) end [2025-01-29 13:14:31] Production.ERROR: pbx prc_insertCDR start [2025-01-29 13:14:31] Production.ERROR: pbx prc_insertCDR end [2025-01-29 13:14:31] Production.INFO: ==31600== Releasing lock... [2025-01-29 13:14:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 13:14:31] Production.INFO: 62.75 MB #Memory Used# [2025-01-29 13:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 10:15:05 [end_date_ymd] => 2025-01-29 13:15:05 [RateCDR] => 1 ) [2025-01-29 13:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 10:15:05' and `end` < '2025-01-29 13:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 13:15:28] Production.INFO: count ==4648 [2025-01-29 13:15:30] Production.ERROR: pbx CDR StartTime 2025-01-29 10:15:05 - End Time 2025-01-29 13:15:05 [2025-01-29 13:15:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 13:15:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356563', 'tblTempUsageDetail_20' ) start [2025-01-29 13:15:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356563', 'tblTempUsageDetail_20' ) end [2025-01-29 13:15:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356563', 'tblTempVendorCDR_20' ) start [2025-01-29 13:15:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356563', 'tblTempVendorCDR_20' ) end [2025-01-29 13:15:30] Production.INFO: ProcessCDR(1,14356563,1,1,2) [2025-01-29 13:15:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14356563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 13:15:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14356563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 13:15:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14356563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 13:15:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14356563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 13:15:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356563', 'tblTempUsageDetail_20' ) start [2025-01-29 13:15:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356563', 'tblTempUsageDetail_20' ) end [2025-01-29 13:15:35] Production.ERROR: pbx prc_insertCDR start [2025-01-29 13:15:35] Production.ERROR: pbx prc_insertCDR end [2025-01-29 13:15:35] Production.INFO: ==31679== Releasing lock... [2025-01-29 13:15:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 13:15:35] Production.INFO: 62.75 MB #Memory Used# [2025-01-29 13:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 10:16:05 [end_date_ymd] => 2025-01-29 13:16:05 [RateCDR] => 1 ) [2025-01-29 13:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 10:16:05' and `end` < '2025-01-29 13:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 13:16:24] Production.INFO: count ==4666 [2025-01-29 13:16:26] Production.ERROR: pbx CDR StartTime 2025-01-29 10:16:05 - End Time 2025-01-29 13:16:05 [2025-01-29 13:16:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 13:16:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356568', 'tblTempUsageDetail_20' ) start [2025-01-29 13:16:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356568', 'tblTempUsageDetail_20' ) end [2025-01-29 13:16:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356568', 'tblTempVendorCDR_20' ) start [2025-01-29 13:16:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356568', 'tblTempVendorCDR_20' ) end [2025-01-29 13:16:26] Production.INFO: ProcessCDR(1,14356568,1,1,2) [2025-01-29 13:16:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14356568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 13:16:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14356568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 13:16:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14356568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 13:16:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14356568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 13:16:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356568', 'tblTempUsageDetail_20' ) start [2025-01-29 13:16:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356568', 'tblTempUsageDetail_20' ) end [2025-01-29 13:16:32] Production.ERROR: pbx prc_insertCDR start [2025-01-29 13:16:32] Production.ERROR: pbx prc_insertCDR end [2025-01-29 13:16:32] Production.INFO: ==31754== Releasing lock... [2025-01-29 13:16:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 13:16:32] Production.INFO: 63 MB #Memory Used# [2025-01-29 13:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 10:17:06 [end_date_ymd] => 2025-01-29 13:17:06 [RateCDR] => 1 ) [2025-01-29 13:17:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 10:17:06' and `end` < '2025-01-29 13:17:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 13:17:25] Production.INFO: count ==4661 [2025-01-29 13:17:27] Production.ERROR: pbx CDR StartTime 2025-01-29 10:17:06 - End Time 2025-01-29 13:17:06 [2025-01-29 13:17:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 13:17:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356573', 'tblTempUsageDetail_20' ) start [2025-01-29 13:17:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356573', 'tblTempUsageDetail_20' ) end [2025-01-29 13:17:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356573', 'tblTempVendorCDR_20' ) start [2025-01-29 13:17:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356573', 'tblTempVendorCDR_20' ) end [2025-01-29 13:17:27] Production.INFO: ProcessCDR(1,14356573,1,1,2) [2025-01-29 13:17:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14356573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 13:17:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14356573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 13:17:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14356573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 13:17:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14356573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 13:17:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356573', 'tblTempUsageDetail_20' ) start [2025-01-29 13:17:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356573', 'tblTempUsageDetail_20' ) end [2025-01-29 13:17:33] Production.ERROR: pbx prc_insertCDR start [2025-01-29 13:17:33] Production.ERROR: pbx prc_insertCDR end [2025-01-29 13:17:33] Production.INFO: ==31831== Releasing lock... [2025-01-29 13:17:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 13:17:33] Production.INFO: 63 MB #Memory Used# [2025-01-29 13:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 10:18:05 [end_date_ymd] => 2025-01-29 13:18:05 [RateCDR] => 1 ) [2025-01-29 13:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 10:18:05' and `end` < '2025-01-29 13:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 13:18:27] Production.INFO: count ==4698 [2025-01-29 13:18:30] Production.ERROR: pbx CDR StartTime 2025-01-29 10:18:05 - End Time 2025-01-29 13:18:05 [2025-01-29 13:18:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 13:18:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356578', 'tblTempUsageDetail_20' ) start [2025-01-29 13:18:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356578', 'tblTempUsageDetail_20' ) end [2025-01-29 13:18:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356578', 'tblTempVendorCDR_20' ) start [2025-01-29 13:18:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356578', 'tblTempVendorCDR_20' ) end [2025-01-29 13:18:30] Production.INFO: ProcessCDR(1,14356578,1,1,2) [2025-01-29 13:18:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14356578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 13:18:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14356578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 13:18:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14356578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 13:18:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14356578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 13:18:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356578', 'tblTempUsageDetail_20' ) start [2025-01-29 13:18:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356578', 'tblTempUsageDetail_20' ) end [2025-01-29 13:18:35] Production.ERROR: pbx prc_insertCDR start [2025-01-29 13:18:35] Production.ERROR: pbx prc_insertCDR end [2025-01-29 13:18:35] Production.INFO: ==31912== Releasing lock... [2025-01-29 13:18:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 13:18:35] Production.INFO: 63.25 MB #Memory Used# [2025-01-29 13:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 10:19:06 [end_date_ymd] => 2025-01-29 13:19:06 [RateCDR] => 1 ) [2025-01-29 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-01-29 10:19:06' and `end` < '2025-01-29 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-01-29 13:19:28] Production.INFO: count ==4690 [2025-01-29 13:19:30] Production.ERROR: pbx CDR StartTime 2025-01-29 10:19:06 - End Time 2025-01-29 13:19:06 [2025-01-29 13:19:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 13:19:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356583', 'tblTempUsageDetail_20' ) start [2025-01-29 13:19:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356583', 'tblTempUsageDetail_20' ) end [2025-01-29 13:19:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356583', 'tblTempVendorCDR_20' ) start [2025-01-29 13:19:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356583', 'tblTempVendorCDR_20' ) end [2025-01-29 13:19:30] Production.INFO: ProcessCDR(1,14356583,1,1,2) [2025-01-29 13:19:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14356583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 13:19:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14356583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 13:19:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14356583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 13:19:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14356583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 13:19:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356583', 'tblTempUsageDetail_20' ) start [2025-01-29 13:19:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356583', 'tblTempUsageDetail_20' ) end [2025-01-29 13:19:36] Production.ERROR: pbx prc_insertCDR start [2025-01-29 13:19:36] Production.ERROR: pbx prc_insertCDR end [2025-01-29 13:19:36] Production.INFO: ==31992== Releasing lock... [2025-01-29 13:19:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 13:19:36] Production.INFO: 63 MB #Memory Used# [2025-01-29 13:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 10:20:06 [end_date_ymd] => 2025-01-29 13:20:06 [RateCDR] => 1 ) [2025-01-29 13:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 10:20:06' and `end` < '2025-01-29 13:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 13:20:37] Production.INFO: count ==4692 [2025-01-29 13:20:39] Production.ERROR: pbx CDR StartTime 2025-01-29 10:20:06 - End Time 2025-01-29 13:20:06 [2025-01-29 13:20:39] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 13:20:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356589', 'tblTempUsageDetail_20' ) start [2025-01-29 13:20:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356589', 'tblTempUsageDetail_20' ) end [2025-01-29 13:20:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356589', 'tblTempVendorCDR_20' ) start [2025-01-29 13:20:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356589', 'tblTempVendorCDR_20' ) end [2025-01-29 13:20:39] Production.INFO: ProcessCDR(1,14356589,1,1,2) [2025-01-29 13:20:39] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14356589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 13:20:42] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14356589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 13:20:42] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14356589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 13:20:44] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14356589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 13:20:44] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356589', 'tblTempUsageDetail_20' ) start [2025-01-29 13:20:44] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356589', 'tblTempUsageDetail_20' ) end [2025-01-29 13:20:44] Production.ERROR: pbx prc_insertCDR start [2025-01-29 13:20:44] Production.ERROR: pbx prc_insertCDR end [2025-01-29 13:20:44] Production.INFO: ==32074== Releasing lock... [2025-01-29 13:20:44] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 13:20:44] Production.INFO: 63.25 MB #Memory Used# [2025-01-29 13:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 10:21:06 [end_date_ymd] => 2025-01-29 13:21:06 [RateCDR] => 1 ) [2025-01-29 13:21:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 10:21:06' and `end` < '2025-01-29 13:21:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 13:21:23] Production.INFO: count ==4690 [2025-01-29 13:21:25] Production.ERROR: pbx CDR StartTime 2025-01-29 10:21:06 - End Time 2025-01-29 13:21:06 [2025-01-29 13:21:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 13:21:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356594', 'tblTempUsageDetail_20' ) start [2025-01-29 13:21:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356594', 'tblTempUsageDetail_20' ) end [2025-01-29 13:21:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356594', 'tblTempVendorCDR_20' ) start [2025-01-29 13:21:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356594', 'tblTempVendorCDR_20' ) end [2025-01-29 13:21:25] Production.INFO: ProcessCDR(1,14356594,1,1,2) [2025-01-29 13:21:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14356594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 13:21:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14356594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 13:21:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14356594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 13:21:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14356594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 13:21:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356594', 'tblTempUsageDetail_20' ) start [2025-01-29 13:21:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356594', 'tblTempUsageDetail_20' ) end [2025-01-29 13:21:30] Production.ERROR: pbx prc_insertCDR start [2025-01-29 13:21:30] Production.ERROR: pbx prc_insertCDR end [2025-01-29 13:21:30] Production.INFO: ==32198== Releasing lock... [2025-01-29 13:21:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 13:21:30] Production.INFO: 63.25 MB #Memory Used# [2025-01-29 13:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 10:22:05 [end_date_ymd] => 2025-01-29 13:22:05 [RateCDR] => 1 ) [2025-01-29 13:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 10:22:05' and `end` < '2025-01-29 13:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 13:22:23] Production.INFO: count ==4646 [2025-01-29 13:22:25] Production.ERROR: pbx CDR StartTime 2025-01-29 10:22:05 - End Time 2025-01-29 13:22:05 [2025-01-29 13:22:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 13:22:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356599', 'tblTempUsageDetail_20' ) start [2025-01-29 13:22:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356599', 'tblTempUsageDetail_20' ) end [2025-01-29 13:22:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356599', 'tblTempVendorCDR_20' ) start [2025-01-29 13:22:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356599', 'tblTempVendorCDR_20' ) end [2025-01-29 13:22:25] Production.INFO: ProcessCDR(1,14356599,1,1,2) [2025-01-29 13:22:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14356599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 13:22:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14356599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 13:22:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14356599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 13:22:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14356599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 13:22:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356599', 'tblTempUsageDetail_20' ) start [2025-01-29 13:22:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356599', 'tblTempUsageDetail_20' ) end [2025-01-29 13:22:29] Production.ERROR: pbx prc_insertCDR start [2025-01-29 13:22:29] Production.ERROR: pbx prc_insertCDR end [2025-01-29 13:22:29] Production.INFO: ==32272== Releasing lock... [2025-01-29 13:22:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 13:22:29] Production.INFO: 62.75 MB #Memory Used# [2025-01-29 13:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 10:23:06 [end_date_ymd] => 2025-01-29 13:23:06 [RateCDR] => 1 ) [2025-01-29 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-01-29 10:23:06' and `end` < '2025-01-29 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-01-29 13:23:19] Production.INFO: count ==4630 [2025-01-29 13:23:21] Production.ERROR: pbx CDR StartTime 2025-01-29 10:23:06 - End Time 2025-01-29 13:23:06 [2025-01-29 13:23:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 13:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356604', 'tblTempUsageDetail_20' ) start [2025-01-29 13:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356604', 'tblTempUsageDetail_20' ) end [2025-01-29 13:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356604', 'tblTempVendorCDR_20' ) start [2025-01-29 13:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356604', 'tblTempVendorCDR_20' ) end [2025-01-29 13:23:21] Production.INFO: ProcessCDR(1,14356604,1,1,2) [2025-01-29 13:23:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14356604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 13:23:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14356604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 13:23:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14356604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 13:23:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14356604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 13:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356604', 'tblTempUsageDetail_20' ) start [2025-01-29 13:23:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356604', 'tblTempUsageDetail_20' ) end [2025-01-29 13:23:27] Production.ERROR: pbx prc_insertCDR start [2025-01-29 13:23:27] Production.ERROR: pbx prc_insertCDR end [2025-01-29 13:23:27] Production.INFO: ==32351== Releasing lock... [2025-01-29 13:23:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 13:23:27] Production.INFO: 62.75 MB #Memory Used# [2025-01-29 13:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 10:24:05 [end_date_ymd] => 2025-01-29 13:24:05 [RateCDR] => 1 ) [2025-01-29 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-01-29 10:24:05' and `end` < '2025-01-29 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-01-29 13:24:20] Production.INFO: count ==4614 [2025-01-29 13:24:22] Production.ERROR: pbx CDR StartTime 2025-01-29 10:24:05 - End Time 2025-01-29 13:24:05 [2025-01-29 13:24:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 13:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356609', 'tblTempUsageDetail_20' ) start [2025-01-29 13:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356609', 'tblTempUsageDetail_20' ) end [2025-01-29 13:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356609', 'tblTempVendorCDR_20' ) start [2025-01-29 13:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356609', 'tblTempVendorCDR_20' ) end [2025-01-29 13:24:22] Production.INFO: ProcessCDR(1,14356609,1,1,2) [2025-01-29 13:24:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14356609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 13:24:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14356609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 13:24:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14356609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 13:24:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14356609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 13:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356609', 'tblTempUsageDetail_20' ) start [2025-01-29 13:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356609', 'tblTempUsageDetail_20' ) end [2025-01-29 13:24:25] Production.ERROR: pbx prc_insertCDR start [2025-01-29 13:24:25] Production.ERROR: pbx prc_insertCDR end [2025-01-29 13:24:25] Production.INFO: ==32431== Releasing lock... [2025-01-29 13:24:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 13:24:25] Production.INFO: 62.5 MB #Memory Used# [2025-01-29 13:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 10:25:06 [end_date_ymd] => 2025-01-29 13:25:06 [RateCDR] => 1 ) [2025-01-29 13:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 10:25:06' and `end` < '2025-01-29 13:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 13:25:22] Production.INFO: count ==4600 [2025-01-29 13:25:24] Production.ERROR: pbx CDR StartTime 2025-01-29 10:25:06 - End Time 2025-01-29 13:25:06 [2025-01-29 13:25:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 13:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356614', 'tblTempUsageDetail_20' ) start [2025-01-29 13:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356614', 'tblTempUsageDetail_20' ) end [2025-01-29 13:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356614', 'tblTempVendorCDR_20' ) start [2025-01-29 13:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356614', 'tblTempVendorCDR_20' ) end [2025-01-29 13:25:24] Production.INFO: ProcessCDR(1,14356614,1,1,2) [2025-01-29 13:25:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14356614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 13:25:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14356614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 13:25:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14356614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 13:25:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14356614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 13:25:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356614', 'tblTempUsageDetail_20' ) start [2025-01-29 13:25:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356614', 'tblTempUsageDetail_20' ) end [2025-01-29 13:25:29] Production.ERROR: pbx prc_insertCDR start [2025-01-29 13:25:29] Production.ERROR: pbx prc_insertCDR end [2025-01-29 13:25:29] Production.INFO: ==32514== Releasing lock... [2025-01-29 13:25:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 13:25:29] Production.INFO: 62.5 MB #Memory Used# [2025-01-29 13:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 10:26:05 [end_date_ymd] => 2025-01-29 13:26:05 [RateCDR] => 1 ) [2025-01-29 13:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 10:26:05' and `end` < '2025-01-29 13:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 13:26:19] Production.INFO: count ==4603 [2025-01-29 13:26:22] Production.ERROR: pbx CDR StartTime 2025-01-29 10:26:05 - End Time 2025-01-29 13:26:05 [2025-01-29 13:26:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 13:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356619', 'tblTempUsageDetail_20' ) start [2025-01-29 13:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356619', 'tblTempUsageDetail_20' ) end [2025-01-29 13:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356619', 'tblTempVendorCDR_20' ) start [2025-01-29 13:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356619', 'tblTempVendorCDR_20' ) end [2025-01-29 13:26:22] Production.INFO: ProcessCDR(1,14356619,1,1,2) [2025-01-29 13:26:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14356619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 13:26:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14356619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 13:26:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14356619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 13:26:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14356619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 13:26:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356619', 'tblTempUsageDetail_20' ) start [2025-01-29 13:26:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356619', 'tblTempUsageDetail_20' ) end [2025-01-29 13:26:27] Production.ERROR: pbx prc_insertCDR start [2025-01-29 13:26:27] Production.ERROR: pbx prc_insertCDR end [2025-01-29 13:26:27] Production.INFO: ==32593== Releasing lock... [2025-01-29 13:26:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 13:26:27] Production.INFO: 62.5 MB #Memory Used# [2025-01-29 13:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 10:27:05 [end_date_ymd] => 2025-01-29 13:27:05 [RateCDR] => 1 ) [2025-01-29 13:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 10:27:05' and `end` < '2025-01-29 13:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 13:27:24] Production.INFO: count ==4609 [2025-01-29 13:27:26] Production.ERROR: pbx CDR StartTime 2025-01-29 10:27:05 - End Time 2025-01-29 13:27:05 [2025-01-29 13:27:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 13:27:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356624', 'tblTempUsageDetail_20' ) start [2025-01-29 13:27:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356624', 'tblTempUsageDetail_20' ) end [2025-01-29 13:27:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356624', 'tblTempVendorCDR_20' ) start [2025-01-29 13:27:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356624', 'tblTempVendorCDR_20' ) end [2025-01-29 13:27:27] Production.INFO: ProcessCDR(1,14356624,1,1,2) [2025-01-29 13:27:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14356624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 13:27:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14356624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 13:27:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14356624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 13:27:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14356624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 13:27:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356624', 'tblTempUsageDetail_20' ) start [2025-01-29 13:27:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356624', 'tblTempUsageDetail_20' ) end [2025-01-29 13:27:32] Production.ERROR: pbx prc_insertCDR start [2025-01-29 13:27:32] Production.ERROR: pbx prc_insertCDR end [2025-01-29 13:27:32] Production.INFO: ==32674== Releasing lock... [2025-01-29 13:27:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 13:27:32] Production.INFO: 62.5 MB #Memory Used# [2025-01-29 13:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 10:28:05 [end_date_ymd] => 2025-01-29 13:28:05 [RateCDR] => 1 ) [2025-01-29 13:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 10:28:05' and `end` < '2025-01-29 13:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 13:28:23] Production.INFO: count ==4606 [2025-01-29 13:28:25] Production.ERROR: pbx CDR StartTime 2025-01-29 10:28:05 - End Time 2025-01-29 13:28:05 [2025-01-29 13:28:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 13:28:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356629', 'tblTempUsageDetail_20' ) start [2025-01-29 13:28:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356629', 'tblTempUsageDetail_20' ) end [2025-01-29 13:28:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356629', 'tblTempVendorCDR_20' ) start [2025-01-29 13:28:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356629', 'tblTempVendorCDR_20' ) end [2025-01-29 13:28:25] Production.INFO: ProcessCDR(1,14356629,1,1,2) [2025-01-29 13:28:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14356629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 13:28:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14356629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 13:28:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14356629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 13:28:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14356629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 13:28:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356629', 'tblTempUsageDetail_20' ) start [2025-01-29 13:28:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356629', 'tblTempUsageDetail_20' ) end [2025-01-29 13:28:31] Production.ERROR: pbx prc_insertCDR start [2025-01-29 13:28:31] Production.ERROR: pbx prc_insertCDR end [2025-01-29 13:28:31] Production.INFO: ==32753== Releasing lock... [2025-01-29 13:28:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 13:28:31] Production.INFO: 62.5 MB #Memory Used# [2025-01-29 13:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 10:29:06 [end_date_ymd] => 2025-01-29 13:29:06 [RateCDR] => 1 ) [2025-01-29 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-01-29 10:29:06' and `end` < '2025-01-29 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-01-29 13:29:28] Production.INFO: count ==4610 [2025-01-29 13:29:30] Production.ERROR: pbx CDR StartTime 2025-01-29 10:29:06 - End Time 2025-01-29 13:29:06 [2025-01-29 13:29:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 13:29:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356634', 'tblTempUsageDetail_20' ) start [2025-01-29 13:29:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356634', 'tblTempUsageDetail_20' ) end [2025-01-29 13:29:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356634', 'tblTempVendorCDR_20' ) start [2025-01-29 13:29:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356634', 'tblTempVendorCDR_20' ) end [2025-01-29 13:29:30] Production.INFO: ProcessCDR(1,14356634,1,1,2) [2025-01-29 13:29:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14356634,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 13:29:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14356634,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 13:29:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14356634,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 13:29:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14356634,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 13:29:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356634', 'tblTempUsageDetail_20' ) start [2025-01-29 13:29:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356634', 'tblTempUsageDetail_20' ) end [2025-01-29 13:29:36] Production.ERROR: pbx prc_insertCDR start [2025-01-29 13:29:36] Production.ERROR: pbx prc_insertCDR end [2025-01-29 13:29:36] Production.INFO: ==386== Releasing lock... [2025-01-29 13:29:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 13:29:36] Production.INFO: 62.5 MB #Memory Used# [2025-01-29 13:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 10:30:06 [end_date_ymd] => 2025-01-29 13:30:06 [RateCDR] => 1 ) [2025-01-29 13:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 10:30:06' and `end` < '2025-01-29 13:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 13:30:27] Production.INFO: count ==4621 [2025-01-29 13:30:29] Production.ERROR: pbx CDR StartTime 2025-01-29 10:30:06 - End Time 2025-01-29 13:30:06 [2025-01-29 13:30:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 13:30:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356640', 'tblTempUsageDetail_20' ) start [2025-01-29 13:30:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356640', 'tblTempUsageDetail_20' ) end [2025-01-29 13:30:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356640', 'tblTempVendorCDR_20' ) start [2025-01-29 13:30:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356640', 'tblTempVendorCDR_20' ) end [2025-01-29 13:30:29] Production.INFO: ProcessCDR(1,14356640,1,1,2) [2025-01-29 13:30:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14356640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 13:30:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14356640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 13:30:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14356640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 13:30:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14356640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 13:30:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356640', 'tblTempUsageDetail_20' ) start [2025-01-29 13:30:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356640', 'tblTempUsageDetail_20' ) end [2025-01-29 13:30:35] Production.ERROR: pbx prc_insertCDR start [2025-01-29 13:30:35] Production.ERROR: pbx prc_insertCDR end [2025-01-29 13:30:35] Production.INFO: ==473== Releasing lock... [2025-01-29 13:30:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 13:30:35] Production.INFO: 62.5 MB #Memory Used# [2025-01-29 13:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 10:31:05 [end_date_ymd] => 2025-01-29 13:31:05 [RateCDR] => 1 ) [2025-01-29 13:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 10:31:05' and `end` < '2025-01-29 13:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 13:31:19] Production.INFO: count ==4695 [2025-01-29 13:31:21] Production.ERROR: pbx CDR StartTime 2025-01-29 10:31:05 - End Time 2025-01-29 13:31:05 [2025-01-29 13:31:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 13:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356645', 'tblTempUsageDetail_20' ) start [2025-01-29 13:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356645', 'tblTempUsageDetail_20' ) end [2025-01-29 13:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356645', 'tblTempVendorCDR_20' ) start [2025-01-29 13:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356645', 'tblTempVendorCDR_20' ) end [2025-01-29 13:31:21] Production.INFO: ProcessCDR(1,14356645,1,1,2) [2025-01-29 13:31:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14356645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 13:31:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14356645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 13:31:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14356645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 13:31:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14356645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 13:31:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356645', 'tblTempUsageDetail_20' ) start [2025-01-29 13:31:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356645', 'tblTempUsageDetail_20' ) end [2025-01-29 13:31:27] Production.ERROR: pbx prc_insertCDR start [2025-01-29 13:31:27] Production.ERROR: pbx prc_insertCDR end [2025-01-29 13:31:27] Production.INFO: ==558== Releasing lock... [2025-01-29 13:31:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 13:31:27] Production.INFO: 63.25 MB #Memory Used# [2025-01-29 13:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 10:32:05 [end_date_ymd] => 2025-01-29 13:32:05 [RateCDR] => 1 ) [2025-01-29 13:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 10:32:05' and `end` < '2025-01-29 13:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 13:32:19] Production.INFO: count ==4706 [2025-01-29 13:32:22] Production.ERROR: pbx CDR StartTime 2025-01-29 10:32:05 - End Time 2025-01-29 13:32:05 [2025-01-29 13:32:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 13:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356650', 'tblTempUsageDetail_20' ) start [2025-01-29 13:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356650', 'tblTempUsageDetail_20' ) end [2025-01-29 13:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356650', 'tblTempVendorCDR_20' ) start [2025-01-29 13:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356650', 'tblTempVendorCDR_20' ) end [2025-01-29 13:32:22] Production.INFO: ProcessCDR(1,14356650,1,1,2) [2025-01-29 13:32:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14356650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 13:32:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14356650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 13:32:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14356650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 13:32:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14356650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 13:32:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356650', 'tblTempUsageDetail_20' ) start [2025-01-29 13:32:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356650', 'tblTempUsageDetail_20' ) end [2025-01-29 13:32:27] Production.ERROR: pbx prc_insertCDR start [2025-01-29 13:32:27] Production.ERROR: pbx prc_insertCDR end [2025-01-29 13:32:27] Production.INFO: ==649== Releasing lock... [2025-01-29 13:32:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 13:32:27] Production.INFO: 63.25 MB #Memory Used# [2025-01-29 13:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 10:33:06 [end_date_ymd] => 2025-01-29 13:33:06 [RateCDR] => 1 ) [2025-01-29 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-01-29 10:33:06' and `end` < '2025-01-29 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-01-29 13:33:25] Production.INFO: count ==4711 [2025-01-29 13:33:27] Production.ERROR: pbx CDR StartTime 2025-01-29 10:33:06 - End Time 2025-01-29 13:33:06 [2025-01-29 13:33:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 13:33:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356655', 'tblTempUsageDetail_20' ) start [2025-01-29 13:33:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356655', 'tblTempUsageDetail_20' ) end [2025-01-29 13:33:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356655', 'tblTempVendorCDR_20' ) start [2025-01-29 13:33:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356655', 'tblTempVendorCDR_20' ) end [2025-01-29 13:33:27] Production.INFO: ProcessCDR(1,14356655,1,1,2) [2025-01-29 13:33:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14356655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 13:33:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14356655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 13:33:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14356655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 13:33:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14356655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 13:33:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356655', 'tblTempUsageDetail_20' ) start [2025-01-29 13:33:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356655', 'tblTempUsageDetail_20' ) end [2025-01-29 13:33:32] Production.ERROR: pbx prc_insertCDR start [2025-01-29 13:33:32] Production.ERROR: pbx prc_insertCDR end [2025-01-29 13:33:32] Production.INFO: ==766== Releasing lock... [2025-01-29 13:33:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 13:33:32] Production.INFO: 63.25 MB #Memory Used# [2025-01-29 13:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 10:34:05 [end_date_ymd] => 2025-01-29 13:34:05 [RateCDR] => 1 ) [2025-01-29 13:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 10:34:05' and `end` < '2025-01-29 13:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 13:34:25] Production.INFO: count ==4709 [2025-01-29 13:34:27] Production.ERROR: pbx CDR StartTime 2025-01-29 10:34:05 - End Time 2025-01-29 13:34:05 [2025-01-29 13:34:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 13:34:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356660', 'tblTempUsageDetail_20' ) start [2025-01-29 13:34:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356660', 'tblTempUsageDetail_20' ) end [2025-01-29 13:34:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356660', 'tblTempVendorCDR_20' ) start [2025-01-29 13:34:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356660', 'tblTempVendorCDR_20' ) end [2025-01-29 13:34:27] Production.INFO: ProcessCDR(1,14356660,1,1,2) [2025-01-29 13:34:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14356660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 13:34:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14356660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 13:34:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14356660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 13:34:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14356660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 13:34:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356660', 'tblTempUsageDetail_20' ) start [2025-01-29 13:34:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356660', 'tblTempUsageDetail_20' ) end [2025-01-29 13:34:33] Production.ERROR: pbx prc_insertCDR start [2025-01-29 13:34:33] Production.ERROR: pbx prc_insertCDR end [2025-01-29 13:34:33] Production.INFO: ==853== Releasing lock... [2025-01-29 13:34:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 13:34:33] Production.INFO: 63.25 MB #Memory Used# [2025-01-29 13:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 10:35:05 [end_date_ymd] => 2025-01-29 13:35:05 [RateCDR] => 1 ) [2025-01-29 13:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 10:35:05' and `end` < '2025-01-29 13:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 13:35:27] Production.INFO: count ==4713 [2025-01-29 13:35:29] Production.ERROR: pbx CDR StartTime 2025-01-29 10:35:05 - End Time 2025-01-29 13:35:05 [2025-01-29 13:35:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 13:35:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356665', 'tblTempUsageDetail_20' ) start [2025-01-29 13:35:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356665', 'tblTempUsageDetail_20' ) end [2025-01-29 13:35:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356665', 'tblTempVendorCDR_20' ) start [2025-01-29 13:35:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356665', 'tblTempVendorCDR_20' ) end [2025-01-29 13:35:30] Production.INFO: ProcessCDR(1,14356665,1,1,2) [2025-01-29 13:35:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14356665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 13:35:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14356665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 13:35:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14356665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 13:35:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14356665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 13:35:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356665', 'tblTempUsageDetail_20' ) start [2025-01-29 13:35:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356665', 'tblTempUsageDetail_20' ) end [2025-01-29 13:35:35] Production.ERROR: pbx prc_insertCDR start [2025-01-29 13:35:35] Production.ERROR: pbx prc_insertCDR end [2025-01-29 13:35:35] Production.INFO: ==932== Releasing lock... [2025-01-29 13:35:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 13:35:35] Production.INFO: 63.25 MB #Memory Used# [2025-01-29 13:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 10:36:06 [end_date_ymd] => 2025-01-29 13:36:06 [RateCDR] => 1 ) [2025-01-29 13:36:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 10:36:06' and `end` < '2025-01-29 13:36:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 13:36:26] Production.INFO: count ==4728 [2025-01-29 13:36:28] Production.ERROR: pbx CDR StartTime 2025-01-29 10:36:06 - End Time 2025-01-29 13:36:06 [2025-01-29 13:36:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 13:36:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356670', 'tblTempUsageDetail_20' ) start [2025-01-29 13:36:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356670', 'tblTempUsageDetail_20' ) end [2025-01-29 13:36:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356670', 'tblTempVendorCDR_20' ) start [2025-01-29 13:36:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356670', 'tblTempVendorCDR_20' ) end [2025-01-29 13:36:28] Production.INFO: ProcessCDR(1,14356670,1,1,2) [2025-01-29 13:36:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14356670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 13:36:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14356670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 13:36:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14356670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 13:36:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14356670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 13:36:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356670', 'tblTempUsageDetail_20' ) start [2025-01-29 13:36:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356670', 'tblTempUsageDetail_20' ) end [2025-01-29 13:36:33] Production.ERROR: pbx prc_insertCDR start [2025-01-29 13:36:33] Production.ERROR: pbx prc_insertCDR end [2025-01-29 13:36:33] Production.INFO: ==1019== Releasing lock... [2025-01-29 13:36:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 13:36:33] Production.INFO: 63.5 MB #Memory Used# [2025-01-29 13:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 10:37:06 [end_date_ymd] => 2025-01-29 13:37:06 [RateCDR] => 1 ) [2025-01-29 13:37:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 10:37:06' and `end` < '2025-01-29 13:37:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 13:37:23] Production.INFO: count ==4752 [2025-01-29 13:37:25] Production.ERROR: pbx CDR StartTime 2025-01-29 10:37:06 - End Time 2025-01-29 13:37:06 [2025-01-29 13:37:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 13:37:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356675', 'tblTempUsageDetail_20' ) start [2025-01-29 13:37:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356675', 'tblTempUsageDetail_20' ) end [2025-01-29 13:37:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356675', 'tblTempVendorCDR_20' ) start [2025-01-29 13:37:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356675', 'tblTempVendorCDR_20' ) end [2025-01-29 13:37:25] Production.INFO: ProcessCDR(1,14356675,1,1,2) [2025-01-29 13:37:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14356675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 13:37:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14356675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 13:37:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14356675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 13:37:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14356675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 13:37:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356675', 'tblTempUsageDetail_20' ) start [2025-01-29 13:37:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356675', 'tblTempUsageDetail_20' ) end [2025-01-29 13:37:31] Production.ERROR: pbx prc_insertCDR start [2025-01-29 13:37:31] Production.ERROR: pbx prc_insertCDR end [2025-01-29 13:37:31] Production.INFO: ==1138== Releasing lock... [2025-01-29 13:37:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 13:37:31] Production.INFO: 63.5 MB #Memory Used# [2025-01-29 13:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 10:38:05 [end_date_ymd] => 2025-01-29 13:38:05 [RateCDR] => 1 ) [2025-01-29 13:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 10:38:05' and `end` < '2025-01-29 13:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 13:38:24] Production.INFO: count ==4764 [2025-01-29 13:38:26] Production.ERROR: pbx CDR StartTime 2025-01-29 10:38:05 - End Time 2025-01-29 13:38:05 [2025-01-29 13:38:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 13:38:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356680', 'tblTempUsageDetail_20' ) start [2025-01-29 13:38:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356680', 'tblTempUsageDetail_20' ) end [2025-01-29 13:38:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356680', 'tblTempVendorCDR_20' ) start [2025-01-29 13:38:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356680', 'tblTempVendorCDR_20' ) end [2025-01-29 13:38:26] Production.INFO: ProcessCDR(1,14356680,1,1,2) [2025-01-29 13:38:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14356680,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 13:38:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14356680,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 13:38:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14356680,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 13:38:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14356680,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 13:38:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356680', 'tblTempUsageDetail_20' ) start [2025-01-29 13:38:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356680', 'tblTempUsageDetail_20' ) end [2025-01-29 13:38:32] Production.ERROR: pbx prc_insertCDR start [2025-01-29 13:38:32] Production.ERROR: pbx prc_insertCDR end [2025-01-29 13:38:32] Production.INFO: ==1223== Releasing lock... [2025-01-29 13:38:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 13:38:32] Production.INFO: 63.75 MB #Memory Used# [2025-01-29 13:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 10:39:06 [end_date_ymd] => 2025-01-29 13:39:06 [RateCDR] => 1 ) [2025-01-29 13:39:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 10:39:06' and `end` < '2025-01-29 13:39:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 13:39:28] Production.INFO: count ==4760 [2025-01-29 13:39:30] Production.ERROR: pbx CDR StartTime 2025-01-29 10:39:06 - End Time 2025-01-29 13:39:06 [2025-01-29 13:39:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 13:39:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356685', 'tblTempUsageDetail_20' ) start [2025-01-29 13:39:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356685', 'tblTempUsageDetail_20' ) end [2025-01-29 13:39:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356685', 'tblTempVendorCDR_20' ) start [2025-01-29 13:39:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356685', 'tblTempVendorCDR_20' ) end [2025-01-29 13:39:30] Production.INFO: ProcessCDR(1,14356685,1,1,2) [2025-01-29 13:39:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14356685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 13:39:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14356685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 13:39:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14356685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 13:39:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14356685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 13:39:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356685', 'tblTempUsageDetail_20' ) start [2025-01-29 13:39:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356685', 'tblTempUsageDetail_20' ) end [2025-01-29 13:39:36] Production.ERROR: pbx prc_insertCDR start [2025-01-29 13:39:36] Production.ERROR: pbx prc_insertCDR end [2025-01-29 13:39:36] Production.INFO: ==1317== Releasing lock... [2025-01-29 13:39:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 13:39:36] Production.INFO: 63.75 MB #Memory Used# [2025-01-29 13:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 10:40:06 [end_date_ymd] => 2025-01-29 13:40:06 [RateCDR] => 1 ) [2025-01-29 13:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 10:40:06' and `end` < '2025-01-29 13:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 13:40:28] Production.INFO: count ==4752 [2025-01-29 13:40:30] Production.ERROR: pbx CDR StartTime 2025-01-29 10:40:06 - End Time 2025-01-29 13:40:06 [2025-01-29 13:40:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 13:40:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356691', 'tblTempUsageDetail_20' ) start [2025-01-29 13:40:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356691', 'tblTempUsageDetail_20' ) end [2025-01-29 13:40:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356691', 'tblTempVendorCDR_20' ) start [2025-01-29 13:40:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356691', 'tblTempVendorCDR_20' ) end [2025-01-29 13:40:30] Production.INFO: ProcessCDR(1,14356691,1,1,2) [2025-01-29 13:40:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14356691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 13:40:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14356691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 13:40:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14356691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 13:40:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14356691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 13:40:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356691', 'tblTempUsageDetail_20' ) start [2025-01-29 13:40:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356691', 'tblTempUsageDetail_20' ) end [2025-01-29 13:40:36] Production.ERROR: pbx prc_insertCDR start [2025-01-29 13:40:36] Production.ERROR: pbx prc_insertCDR end [2025-01-29 13:40:36] Production.INFO: ==1399== Releasing lock... [2025-01-29 13:40:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 13:40:36] Production.INFO: 63.5 MB #Memory Used# [2025-01-29 13:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 10:41:06 [end_date_ymd] => 2025-01-29 13:41:06 [RateCDR] => 1 ) [2025-01-29 13:41:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 10:41:06' and `end` < '2025-01-29 13:41:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 13:41:20] Production.INFO: count ==4762 [2025-01-29 13:41:22] Production.ERROR: pbx CDR StartTime 2025-01-29 10:41:06 - End Time 2025-01-29 13:41:06 [2025-01-29 13:41:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 13:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356696', 'tblTempUsageDetail_20' ) start [2025-01-29 13:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356696', 'tblTempUsageDetail_20' ) end [2025-01-29 13:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356696', 'tblTempVendorCDR_20' ) start [2025-01-29 13:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356696', 'tblTempVendorCDR_20' ) end [2025-01-29 13:41:22] Production.INFO: ProcessCDR(1,14356696,1,1,2) [2025-01-29 13:41:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14356696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 13:41:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14356696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 13:41:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14356696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 13:41:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14356696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 13:41:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356696', 'tblTempUsageDetail_20' ) start [2025-01-29 13:41:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356696', 'tblTempUsageDetail_20' ) end [2025-01-29 13:41:26] Production.ERROR: pbx prc_insertCDR start [2025-01-29 13:41:26] Production.ERROR: pbx prc_insertCDR end [2025-01-29 13:41:26] Production.INFO: ==1484== Releasing lock... [2025-01-29 13:41:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 13:41:26] Production.INFO: 63.75 MB #Memory Used# [2025-01-29 13:42:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 10:42:04 [end_date_ymd] => 2025-01-29 13:42:04 [RateCDR] => 1 ) [2025-01-29 13:42:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 10:42:04' and `end` < '2025-01-29 13:42:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 13:42:18] Production.INFO: count ==4759 [2025-01-29 13:42:21] Production.ERROR: pbx CDR StartTime 2025-01-29 10:42:04 - End Time 2025-01-29 13:42:04 [2025-01-29 13:42:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 13:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356701', 'tblTempUsageDetail_20' ) start [2025-01-29 13:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356701', 'tblTempUsageDetail_20' ) end [2025-01-29 13:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356701', 'tblTempVendorCDR_20' ) start [2025-01-29 13:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356701', 'tblTempVendorCDR_20' ) end [2025-01-29 13:42:21] Production.INFO: ProcessCDR(1,14356701,1,1,2) [2025-01-29 13:42:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14356701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 13:42:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14356701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 13:42:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14356701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 13:42:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14356701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 13:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356701', 'tblTempUsageDetail_20' ) start [2025-01-29 13:42:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356701', 'tblTempUsageDetail_20' ) end [2025-01-29 13:42:27] Production.ERROR: pbx prc_insertCDR start [2025-01-29 13:42:27] Production.ERROR: pbx prc_insertCDR end [2025-01-29 13:42:27] Production.INFO: ==1600== Releasing lock... [2025-01-29 13:42:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 13:42:27] Production.INFO: 63.75 MB #Memory Used# [2025-01-29 13:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 10:43:06 [end_date_ymd] => 2025-01-29 13:43:06 [RateCDR] => 1 ) [2025-01-29 13:43:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 10:43:06' and `end` < '2025-01-29 13:43:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 13:43:19] Production.INFO: count ==4798 [2025-01-29 13:43:22] Production.ERROR: pbx CDR StartTime 2025-01-29 10:43:06 - End Time 2025-01-29 13:43:06 [2025-01-29 13:43:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 13:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356706', 'tblTempUsageDetail_20' ) start [2025-01-29 13:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356706', 'tblTempUsageDetail_20' ) end [2025-01-29 13:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356706', 'tblTempVendorCDR_20' ) start [2025-01-29 13:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356706', 'tblTempVendorCDR_20' ) end [2025-01-29 13:43:22] Production.INFO: ProcessCDR(1,14356706,1,1,2) [2025-01-29 13:43:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14356706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 13:43:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14356706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 13:43:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14356706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 13:43:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14356706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 13:43:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356706', 'tblTempUsageDetail_20' ) start [2025-01-29 13:43:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356706', 'tblTempUsageDetail_20' ) end [2025-01-29 13:43:28] Production.ERROR: pbx prc_insertCDR start [2025-01-29 13:43:28] Production.ERROR: pbx prc_insertCDR end [2025-01-29 13:43:28] Production.INFO: ==1677== Releasing lock... [2025-01-29 13:43:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 13:43:28] Production.INFO: 64 MB #Memory Used# [2025-01-29 13:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 10:44:06 [end_date_ymd] => 2025-01-29 13:44:06 [RateCDR] => 1 ) [2025-01-29 13:44:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 10:44:06' and `end` < '2025-01-29 13:44:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 13:44:20] Production.INFO: count ==4783 [2025-01-29 13:44:22] Production.ERROR: pbx CDR StartTime 2025-01-29 10:44:06 - End Time 2025-01-29 13:44:06 [2025-01-29 13:44:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 13:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356711', 'tblTempUsageDetail_20' ) start [2025-01-29 13:44:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356711', 'tblTempUsageDetail_20' ) end [2025-01-29 13:44:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356711', 'tblTempVendorCDR_20' ) start [2025-01-29 13:44:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356711', 'tblTempVendorCDR_20' ) end [2025-01-29 13:44:23] Production.INFO: ProcessCDR(1,14356711,1,1,2) [2025-01-29 13:44:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14356711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 13:44:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14356711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 13:44:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14356711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 13:44:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14356711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 13:44:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356711', 'tblTempUsageDetail_20' ) start [2025-01-29 13:44:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356711', 'tblTempUsageDetail_20' ) end [2025-01-29 13:44:28] Production.ERROR: pbx prc_insertCDR start [2025-01-29 13:44:28] Production.ERROR: pbx prc_insertCDR end [2025-01-29 13:44:28] Production.INFO: ==1761== Releasing lock... [2025-01-29 13:44:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 13:44:28] Production.INFO: 63.75 MB #Memory Used# [2025-01-29 13:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 10:45:05 [end_date_ymd] => 2025-01-29 13:45:05 [RateCDR] => 1 ) [2025-01-29 13:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 10:45:05' and `end` < '2025-01-29 13:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 13:45:21] Production.INFO: count ==4797 [2025-01-29 13:45:23] Production.ERROR: pbx CDR StartTime 2025-01-29 10:45:05 - End Time 2025-01-29 13:45:05 [2025-01-29 13:45:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 13:45:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356716', 'tblTempUsageDetail_20' ) start [2025-01-29 13:45:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356716', 'tblTempUsageDetail_20' ) end [2025-01-29 13:45:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356716', 'tblTempVendorCDR_20' ) start [2025-01-29 13:45:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356716', 'tblTempVendorCDR_20' ) end [2025-01-29 13:45:23] Production.INFO: ProcessCDR(1,14356716,1,1,2) [2025-01-29 13:45:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14356716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 13:45:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14356716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 13:45:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14356716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 13:45:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14356716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 13:45:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356716', 'tblTempUsageDetail_20' ) start [2025-01-29 13:45:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356716', 'tblTempUsageDetail_20' ) end [2025-01-29 13:45:29] Production.ERROR: pbx prc_insertCDR start [2025-01-29 13:45:29] Production.ERROR: pbx prc_insertCDR end [2025-01-29 13:45:29] Production.INFO: ==1846== Releasing lock... [2025-01-29 13:45:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 13:45:29] Production.INFO: 64 MB #Memory Used# [2025-01-29 13:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 10:46:06 [end_date_ymd] => 2025-01-29 13:46:06 [RateCDR] => 1 ) [2025-01-29 13:46:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 10:46:06' and `end` < '2025-01-29 13:46:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 13:46:20] Production.INFO: count ==4782 [2025-01-29 13:46:22] Production.ERROR: pbx CDR StartTime 2025-01-29 10:46:06 - End Time 2025-01-29 13:46:06 [2025-01-29 13:46:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 13:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356721', 'tblTempUsageDetail_20' ) start [2025-01-29 13:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356721', 'tblTempUsageDetail_20' ) end [2025-01-29 13:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356721', 'tblTempVendorCDR_20' ) start [2025-01-29 13:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356721', 'tblTempVendorCDR_20' ) end [2025-01-29 13:46:22] Production.INFO: ProcessCDR(1,14356721,1,1,2) [2025-01-29 13:46:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14356721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 13:46:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14356721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 13:46:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14356721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 13:46:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14356721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 13:46:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356721', 'tblTempUsageDetail_20' ) start [2025-01-29 13:46:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356721', 'tblTempUsageDetail_20' ) end [2025-01-29 13:46:25] Production.ERROR: pbx prc_insertCDR start [2025-01-29 13:46:25] Production.ERROR: pbx prc_insertCDR end [2025-01-29 13:46:25] Production.INFO: ==1923== Releasing lock... [2025-01-29 13:46:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 13:46:25] Production.INFO: 63.75 MB #Memory Used# [2025-01-29 13:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 10:47:05 [end_date_ymd] => 2025-01-29 13:47:05 [RateCDR] => 1 ) [2025-01-29 13:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 10:47:05' and `end` < '2025-01-29 13:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 13:47:19] Production.INFO: count ==4778 [2025-01-29 13:47:21] Production.ERROR: pbx CDR StartTime 2025-01-29 10:47:05 - End Time 2025-01-29 13:47:05 [2025-01-29 13:47:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 13:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356726', 'tblTempUsageDetail_20' ) start [2025-01-29 13:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356726', 'tblTempUsageDetail_20' ) end [2025-01-29 13:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356726', 'tblTempVendorCDR_20' ) start [2025-01-29 13:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356726', 'tblTempVendorCDR_20' ) end [2025-01-29 13:47:22] Production.INFO: ProcessCDR(1,14356726,1,1,2) [2025-01-29 13:47:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14356726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 13:47:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14356726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 13:47:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14356726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 13:47:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14356726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 13:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356726', 'tblTempUsageDetail_20' ) start [2025-01-29 13:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356726', 'tblTempUsageDetail_20' ) end [2025-01-29 13:47:26] Production.ERROR: pbx prc_insertCDR start [2025-01-29 13:47:26] Production.ERROR: pbx prc_insertCDR end [2025-01-29 13:47:26] Production.INFO: ==2005== Releasing lock... [2025-01-29 13:47:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 13:47:26] Production.INFO: 63.75 MB #Memory Used# [2025-01-29 13:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 10:48:06 [end_date_ymd] => 2025-01-29 13:48:06 [RateCDR] => 1 ) [2025-01-29 13:48:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 10:48:06' and `end` < '2025-01-29 13:48:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 13:48:20] Production.INFO: count ==4785 [2025-01-29 13:48:22] Production.ERROR: pbx CDR StartTime 2025-01-29 10:48:06 - End Time 2025-01-29 13:48:06 [2025-01-29 13:48:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 13:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356731', 'tblTempUsageDetail_20' ) start [2025-01-29 13:48:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356731', 'tblTempUsageDetail_20' ) end [2025-01-29 13:48:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356731', 'tblTempVendorCDR_20' ) start [2025-01-29 13:48:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356731', 'tblTempVendorCDR_20' ) end [2025-01-29 13:48:23] Production.INFO: ProcessCDR(1,14356731,1,1,2) [2025-01-29 13:48:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14356731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 13:48:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14356731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 13:48:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14356731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 13:48:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14356731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 13:48:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356731', 'tblTempUsageDetail_20' ) start [2025-01-29 13:48:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356731', 'tblTempUsageDetail_20' ) end [2025-01-29 13:48:28] Production.ERROR: pbx prc_insertCDR start [2025-01-29 13:48:28] Production.ERROR: pbx prc_insertCDR end [2025-01-29 13:48:28] Production.INFO: ==2084== Releasing lock... [2025-01-29 13:48:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 13:48:28] Production.INFO: 63.75 MB #Memory Used# [2025-01-29 13:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 10:49:05 [end_date_ymd] => 2025-01-29 13:49:05 [RateCDR] => 1 ) [2025-01-29 13:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 10:49:05' and `end` < '2025-01-29 13:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 13:49:19] Production.INFO: count ==4798 [2025-01-29 13:49:21] Production.ERROR: pbx CDR StartTime 2025-01-29 10:49:05 - End Time 2025-01-29 13:49:05 [2025-01-29 13:49:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 13:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356736', 'tblTempUsageDetail_20' ) start [2025-01-29 13:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356736', 'tblTempUsageDetail_20' ) end [2025-01-29 13:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356736', 'tblTempVendorCDR_20' ) start [2025-01-29 13:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356736', 'tblTempVendorCDR_20' ) end [2025-01-29 13:49:21] Production.INFO: ProcessCDR(1,14356736,1,1,2) [2025-01-29 13:49:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14356736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 13:49:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14356736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 13:49:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14356736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 13:49:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14356736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 13:49:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356736', 'tblTempUsageDetail_20' ) start [2025-01-29 13:49:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356736', 'tblTempUsageDetail_20' ) end [2025-01-29 13:49:26] Production.ERROR: pbx prc_insertCDR start [2025-01-29 13:49:26] Production.ERROR: pbx prc_insertCDR end [2025-01-29 13:49:26] Production.INFO: ==2170== Releasing lock... [2025-01-29 13:49:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 13:49:26] Production.INFO: 64 MB #Memory Used# [2025-01-29 13:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 10:50:06 [end_date_ymd] => 2025-01-29 13:50:06 [RateCDR] => 1 ) [2025-01-29 13:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 10:50:06' and `end` < '2025-01-29 13:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 13:50:22] Production.INFO: count ==4831 [2025-01-29 13:50:24] Production.ERROR: pbx CDR StartTime 2025-01-29 10:50:06 - End Time 2025-01-29 13:50:06 [2025-01-29 13:50:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 13:50:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356742', 'tblTempUsageDetail_20' ) start [2025-01-29 13:50:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356742', 'tblTempUsageDetail_20' ) end [2025-01-29 13:50:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356742', 'tblTempVendorCDR_20' ) start [2025-01-29 13:50:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356742', 'tblTempVendorCDR_20' ) end [2025-01-29 13:50:24] Production.INFO: ProcessCDR(1,14356742,1,1,2) [2025-01-29 13:50:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14356742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 13:50:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14356742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 13:50:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14356742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 13:50:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14356742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 13:50:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356742', 'tblTempUsageDetail_20' ) start [2025-01-29 13:50:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356742', 'tblTempUsageDetail_20' ) end [2025-01-29 13:50:30] Production.ERROR: pbx prc_insertCDR start [2025-01-29 13:50:30] Production.ERROR: pbx prc_insertCDR end [2025-01-29 13:50:30] Production.INFO: ==2254== Releasing lock... [2025-01-29 13:50:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 13:50:30] Production.INFO: 64.25 MB #Memory Used# [2025-01-29 13:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 10:51:05 [end_date_ymd] => 2025-01-29 13:51:05 [RateCDR] => 1 ) [2025-01-29 13:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 10:51:05' and `end` < '2025-01-29 13:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 13:51:24] Production.INFO: count ==4852 [2025-01-29 13:51:26] Production.ERROR: pbx CDR StartTime 2025-01-29 10:51:05 - End Time 2025-01-29 13:51:05 [2025-01-29 13:51:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 13:51:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356747', 'tblTempUsageDetail_20' ) start [2025-01-29 13:51:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356747', 'tblTempUsageDetail_20' ) end [2025-01-29 13:51:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356747', 'tblTempVendorCDR_20' ) start [2025-01-29 13:51:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356747', 'tblTempVendorCDR_20' ) end [2025-01-29 13:51:26] Production.INFO: ProcessCDR(1,14356747,1,1,2) [2025-01-29 13:51:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14356747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 13:51:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14356747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 13:51:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14356747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 13:51:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14356747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 13:51:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356747', 'tblTempUsageDetail_20' ) start [2025-01-29 13:51:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356747', 'tblTempUsageDetail_20' ) end [2025-01-29 13:51:31] Production.ERROR: pbx prc_insertCDR start [2025-01-29 13:51:31] Production.ERROR: pbx prc_insertCDR end [2025-01-29 13:51:31] Production.INFO: ==2333== Releasing lock... [2025-01-29 13:51:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 13:51:31] Production.INFO: 64.25 MB #Memory Used# [2025-01-29 13:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 10:52:06 [end_date_ymd] => 2025-01-29 13:52:06 [RateCDR] => 1 ) [2025-01-29 13:52:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 10:52:06' and `end` < '2025-01-29 13:52:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 13:52:23] Production.INFO: count ==4887 [2025-01-29 13:52:25] Production.ERROR: pbx CDR StartTime 2025-01-29 10:52:06 - End Time 2025-01-29 13:52:06 [2025-01-29 13:52:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 13:52:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356752', 'tblTempUsageDetail_20' ) start [2025-01-29 13:52:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356752', 'tblTempUsageDetail_20' ) end [2025-01-29 13:52:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356752', 'tblTempVendorCDR_20' ) start [2025-01-29 13:52:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356752', 'tblTempVendorCDR_20' ) end [2025-01-29 13:52:25] Production.INFO: ProcessCDR(1,14356752,1,1,2) [2025-01-29 13:52:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14356752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 13:52:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14356752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 13:52:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14356752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 13:52:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14356752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 13:52:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356752', 'tblTempUsageDetail_20' ) start [2025-01-29 13:52:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356752', 'tblTempUsageDetail_20' ) end [2025-01-29 13:52:30] Production.ERROR: pbx prc_insertCDR start [2025-01-29 13:52:30] Production.ERROR: pbx prc_insertCDR end [2025-01-29 13:52:30] Production.INFO: ==2458== Releasing lock... [2025-01-29 13:52:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 13:52:30] Production.INFO: 64.5 MB #Memory Used# [2025-01-29 13:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 10:53:05 [end_date_ymd] => 2025-01-29 13:53:05 [RateCDR] => 1 ) [2025-01-29 13:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 10:53:05' and `end` < '2025-01-29 13:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 13:53:22] Production.INFO: count ==4884 [2025-01-29 13:53:24] Production.ERROR: pbx CDR StartTime 2025-01-29 10:53:05 - End Time 2025-01-29 13:53:05 [2025-01-29 13:53:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 13:53:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356757', 'tblTempUsageDetail_20' ) start [2025-01-29 13:53:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356757', 'tblTempUsageDetail_20' ) end [2025-01-29 13:53:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356757', 'tblTempVendorCDR_20' ) start [2025-01-29 13:53:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356757', 'tblTempVendorCDR_20' ) end [2025-01-29 13:53:24] Production.INFO: ProcessCDR(1,14356757,1,1,2) [2025-01-29 13:53:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14356757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 13:53:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14356757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 13:53:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14356757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 13:53:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14356757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 13:53:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356757', 'tblTempUsageDetail_20' ) start [2025-01-29 13:53:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356757', 'tblTempUsageDetail_20' ) end [2025-01-29 13:53:29] Production.ERROR: pbx prc_insertCDR start [2025-01-29 13:53:29] Production.ERROR: pbx prc_insertCDR end [2025-01-29 13:53:29] Production.INFO: ==2539== Releasing lock... [2025-01-29 13:53:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 13:53:29] Production.INFO: 64.5 MB #Memory Used# [2025-01-29 13:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 10:54:06 [end_date_ymd] => 2025-01-29 13:54:06 [RateCDR] => 1 ) [2025-01-29 13:54:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 10:54:06' and `end` < '2025-01-29 13:54:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 13:54:23] Production.INFO: count ==4879 [2025-01-29 13:54:25] Production.ERROR: pbx CDR StartTime 2025-01-29 10:54:06 - End Time 2025-01-29 13:54:06 [2025-01-29 13:54:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 13:54:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356762', 'tblTempUsageDetail_20' ) start [2025-01-29 13:54:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356762', 'tblTempUsageDetail_20' ) end [2025-01-29 13:54:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356762', 'tblTempVendorCDR_20' ) start [2025-01-29 13:54:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356762', 'tblTempVendorCDR_20' ) end [2025-01-29 13:54:25] Production.INFO: ProcessCDR(1,14356762,1,1,2) [2025-01-29 13:54:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14356762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 13:54:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14356762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 13:54:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14356762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 13:54:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14356762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 13:54:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356762', 'tblTempUsageDetail_20' ) start [2025-01-29 13:54:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356762', 'tblTempUsageDetail_20' ) end [2025-01-29 13:54:30] Production.ERROR: pbx prc_insertCDR start [2025-01-29 13:54:30] Production.ERROR: pbx prc_insertCDR end [2025-01-29 13:54:30] Production.INFO: ==2615== Releasing lock... [2025-01-29 13:54:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 13:54:30] Production.INFO: 64.5 MB #Memory Used# [2025-01-29 13:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 10:55:05 [end_date_ymd] => 2025-01-29 13:55:05 [RateCDR] => 1 ) [2025-01-29 13:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 10:55:05' and `end` < '2025-01-29 13:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 13:55:22] Production.INFO: count ==4888 [2025-01-29 13:55:24] Production.ERROR: pbx CDR StartTime 2025-01-29 10:55:05 - End Time 2025-01-29 13:55:05 [2025-01-29 13:55:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 13:55:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356767', 'tblTempUsageDetail_20' ) start [2025-01-29 13:55:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356767', 'tblTempUsageDetail_20' ) end [2025-01-29 13:55:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356767', 'tblTempVendorCDR_20' ) start [2025-01-29 13:55:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356767', 'tblTempVendorCDR_20' ) end [2025-01-29 13:55:24] Production.INFO: ProcessCDR(1,14356767,1,1,2) [2025-01-29 13:55:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14356767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 13:55:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14356767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 13:55:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14356767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 13:55:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14356767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 13:55:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356767', 'tblTempUsageDetail_20' ) start [2025-01-29 13:55:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356767', 'tblTempUsageDetail_20' ) end [2025-01-29 13:55:29] Production.ERROR: pbx prc_insertCDR start [2025-01-29 13:55:29] Production.ERROR: pbx prc_insertCDR end [2025-01-29 13:55:29] Production.INFO: ==2697== Releasing lock... [2025-01-29 13:55:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 13:55:29] Production.INFO: 64.5 MB #Memory Used# [2025-01-29 13:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 10:56:05 [end_date_ymd] => 2025-01-29 13:56:05 [RateCDR] => 1 ) [2025-01-29 13:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 10:56:05' and `end` < '2025-01-29 13:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 13:56:19] Production.INFO: count ==4888 [2025-01-29 13:56:22] Production.ERROR: pbx CDR StartTime 2025-01-29 10:56:05 - End Time 2025-01-29 13:56:05 [2025-01-29 13:56:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 13:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356772', 'tblTempUsageDetail_20' ) start [2025-01-29 13:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356772', 'tblTempUsageDetail_20' ) end [2025-01-29 13:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356772', 'tblTempVendorCDR_20' ) start [2025-01-29 13:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356772', 'tblTempVendorCDR_20' ) end [2025-01-29 13:56:22] Production.INFO: ProcessCDR(1,14356772,1,1,2) [2025-01-29 13:56:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14356772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 13:56:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14356772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 13:56:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14356772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 13:56:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14356772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 13:56:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356772', 'tblTempUsageDetail_20' ) start [2025-01-29 13:56:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356772', 'tblTempUsageDetail_20' ) end [2025-01-29 13:56:26] Production.ERROR: pbx prc_insertCDR start [2025-01-29 13:56:27] Production.ERROR: pbx prc_insertCDR end [2025-01-29 13:56:27] Production.INFO: ==2778== Releasing lock... [2025-01-29 13:56:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 13:56:27] Production.INFO: 64.5 MB #Memory Used# [2025-01-29 13:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 10:57:05 [end_date_ymd] => 2025-01-29 13:57:05 [RateCDR] => 1 ) [2025-01-29 13:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 10:57:05' and `end` < '2025-01-29 13:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 13:57:22] Production.INFO: count ==4901 [2025-01-29 13:57:24] Production.ERROR: pbx CDR StartTime 2025-01-29 10:57:05 - End Time 2025-01-29 13:57:05 [2025-01-29 13:57:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 13:57:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356777', 'tblTempUsageDetail_20' ) start [2025-01-29 13:57:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356777', 'tblTempUsageDetail_20' ) end [2025-01-29 13:57:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356777', 'tblTempVendorCDR_20' ) start [2025-01-29 13:57:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356777', 'tblTempVendorCDR_20' ) end [2025-01-29 13:57:24] Production.INFO: ProcessCDR(1,14356777,1,1,2) [2025-01-29 13:57:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14356777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 13:57:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14356777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 13:57:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14356777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 13:57:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14356777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 13:57:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356777', 'tblTempUsageDetail_20' ) start [2025-01-29 13:57:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356777', 'tblTempUsageDetail_20' ) end [2025-01-29 13:57:29] Production.ERROR: pbx prc_insertCDR start [2025-01-29 13:57:29] Production.ERROR: pbx prc_insertCDR end [2025-01-29 13:57:29] Production.INFO: ==2859== Releasing lock... [2025-01-29 13:57:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 13:57:29] Production.INFO: 64.75 MB #Memory Used# [2025-01-29 13:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 10:58:05 [end_date_ymd] => 2025-01-29 13:58:05 [RateCDR] => 1 ) [2025-01-29 13:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 10:58:05' and `end` < '2025-01-29 13:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 13:58:20] Production.INFO: count ==4887 [2025-01-29 13:58:22] Production.ERROR: pbx CDR StartTime 2025-01-29 10:58:05 - End Time 2025-01-29 13:58:05 [2025-01-29 13:58:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 13:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356782', 'tblTempUsageDetail_20' ) start [2025-01-29 13:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356782', 'tblTempUsageDetail_20' ) end [2025-01-29 13:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356782', 'tblTempVendorCDR_20' ) start [2025-01-29 13:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356782', 'tblTempVendorCDR_20' ) end [2025-01-29 13:58:22] Production.INFO: ProcessCDR(1,14356782,1,1,2) [2025-01-29 13:58:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14356782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 13:58:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14356782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 13:58:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14356782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 13:58:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14356782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 13:58:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356782', 'tblTempUsageDetail_20' ) start [2025-01-29 13:58:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356782', 'tblTempUsageDetail_20' ) end [2025-01-29 13:58:26] Production.ERROR: pbx prc_insertCDR start [2025-01-29 13:58:26] Production.ERROR: pbx prc_insertCDR end [2025-01-29 13:58:26] Production.INFO: ==2940== Releasing lock... [2025-01-29 13:58:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 13:58:26] Production.INFO: 64.5 MB #Memory Used# [2025-01-29 13:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 10:59:05 [end_date_ymd] => 2025-01-29 13:59:05 [RateCDR] => 1 ) [2025-01-29 13:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 10:59:05' and `end` < '2025-01-29 13:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 13:59:18] Production.INFO: count ==4880 [2025-01-29 13:59:20] Production.ERROR: pbx CDR StartTime 2025-01-29 10:59:05 - End Time 2025-01-29 13:59:05 [2025-01-29 13:59:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 13:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356787', 'tblTempUsageDetail_20' ) start [2025-01-29 13:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356787', 'tblTempUsageDetail_20' ) end [2025-01-29 13:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356787', 'tblTempVendorCDR_20' ) start [2025-01-29 13:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356787', 'tblTempVendorCDR_20' ) end [2025-01-29 13:59:20] Production.INFO: ProcessCDR(1,14356787,1,1,2) [2025-01-29 13:59:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14356787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 13:59:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14356787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 13:59:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14356787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 13:59:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14356787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 13:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356787', 'tblTempUsageDetail_20' ) start [2025-01-29 13:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356787', 'tblTempUsageDetail_20' ) end [2025-01-29 13:59:25] Production.ERROR: pbx prc_insertCDR start [2025-01-29 13:59:25] Production.ERROR: pbx prc_insertCDR end [2025-01-29 13:59:25] Production.INFO: ==3019== Releasing lock... [2025-01-29 13:59:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 13:59:25] Production.INFO: 64.5 MB #Memory Used# [2025-01-29 14:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 11:00:06 [end_date_ymd] => 2025-01-29 14:00:06 [RateCDR] => 1 ) [2025-01-29 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-01-29 11:00:06' and `end` < '2025-01-29 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-01-29 14:00:27] Production.INFO: count ==4888 [2025-01-29 14:00:29] Production.ERROR: pbx CDR StartTime 2025-01-29 11:00:06 - End Time 2025-01-29 14:00:06 [2025-01-29 14:00:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 14:00:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356793', 'tblTempUsageDetail_20' ) start [2025-01-29 14:00:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356793', 'tblTempUsageDetail_20' ) end [2025-01-29 14:00:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356793', 'tblTempVendorCDR_20' ) start [2025-01-29 14:00:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356793', 'tblTempVendorCDR_20' ) end [2025-01-29 14:00:29] Production.INFO: ProcessCDR(1,14356793,1,1,2) [2025-01-29 14:00:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14356793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 14:00:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14356793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 14:00:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14356793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 14:00:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14356793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 14:00:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356793', 'tblTempUsageDetail_20' ) start [2025-01-29 14:00:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356793', 'tblTempUsageDetail_20' ) end [2025-01-29 14:00:34] Production.ERROR: pbx prc_insertCDR start [2025-01-29 14:00:35] Production.ERROR: pbx prc_insertCDR end [2025-01-29 14:00:35] Production.INFO: ==3103== Releasing lock... [2025-01-29 14:00:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 14:00:35] Production.INFO: 64.5 MB #Memory Used# [2025-01-29 14:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 11:01:05 [end_date_ymd] => 2025-01-29 14:01:05 [RateCDR] => 1 ) [2025-01-29 14:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 11:01:05' and `end` < '2025-01-29 14:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 14:01:19] Production.INFO: count ==4860 [2025-01-29 14:01:21] Production.ERROR: pbx CDR StartTime 2025-01-29 11:01:05 - End Time 2025-01-29 14:01:05 [2025-01-29 14:01:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 14:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356798', 'tblTempUsageDetail_20' ) start [2025-01-29 14:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356798', 'tblTempUsageDetail_20' ) end [2025-01-29 14:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356798', 'tblTempVendorCDR_20' ) start [2025-01-29 14:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356798', 'tblTempVendorCDR_20' ) end [2025-01-29 14:01:22] Production.INFO: ProcessCDR(1,14356798,1,1,2) [2025-01-29 14:01:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14356798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 14:01:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14356798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 14:01:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14356798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 14:01:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14356798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 14:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356798', 'tblTempUsageDetail_20' ) start [2025-01-29 14:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356798', 'tblTempUsageDetail_20' ) end [2025-01-29 14:01:26] Production.ERROR: pbx prc_insertCDR start [2025-01-29 14:01:26] Production.ERROR: pbx prc_insertCDR end [2025-01-29 14:01:26] Production.INFO: ==3202== Releasing lock... [2025-01-29 14:01:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 14:01:26] Production.INFO: 64.5 MB #Memory Used# [2025-01-29 14:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 11:02:06 [end_date_ymd] => 2025-01-29 14:02:06 [RateCDR] => 1 ) [2025-01-29 14:02:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 11:02:06' and `end` < '2025-01-29 14:02:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 14:02:28] Production.INFO: count ==4865 [2025-01-29 14:02:31] Production.ERROR: pbx CDR StartTime 2025-01-29 11:02:06 - End Time 2025-01-29 14:02:06 [2025-01-29 14:02:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 14:02:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356803', 'tblTempUsageDetail_20' ) start [2025-01-29 14:02:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356803', 'tblTempUsageDetail_20' ) end [2025-01-29 14:02:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356803', 'tblTempVendorCDR_20' ) start [2025-01-29 14:02:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356803', 'tblTempVendorCDR_20' ) end [2025-01-29 14:02:31] Production.INFO: ProcessCDR(1,14356803,1,1,2) [2025-01-29 14:02:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14356803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 14:02:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14356803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 14:02:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14356803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 14:02:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14356803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 14:02:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356803', 'tblTempUsageDetail_20' ) start [2025-01-29 14:02:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356803', 'tblTempUsageDetail_20' ) end [2025-01-29 14:02:36] Production.ERROR: pbx prc_insertCDR start [2025-01-29 14:02:36] Production.ERROR: pbx prc_insertCDR end [2025-01-29 14:02:36] Production.INFO: ==3280== Releasing lock... [2025-01-29 14:02:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 14:02:36] Production.INFO: 64.5 MB #Memory Used# [2025-01-29 14:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 11:03:05 [end_date_ymd] => 2025-01-29 14:03:05 [RateCDR] => 1 ) [2025-01-29 14:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 11:03:05' and `end` < '2025-01-29 14:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 14:03:23] Production.INFO: count ==4867 [2025-01-29 14:03:25] Production.ERROR: pbx CDR StartTime 2025-01-29 11:03:05 - End Time 2025-01-29 14:03:05 [2025-01-29 14:03:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 14:03:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356808', 'tblTempUsageDetail_20' ) start [2025-01-29 14:03:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356808', 'tblTempUsageDetail_20' ) end [2025-01-29 14:03:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356808', 'tblTempVendorCDR_20' ) start [2025-01-29 14:03:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356808', 'tblTempVendorCDR_20' ) end [2025-01-29 14:03:25] Production.INFO: ProcessCDR(1,14356808,1,1,2) [2025-01-29 14:03:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14356808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 14:03:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14356808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 14:03:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14356808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 14:03:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14356808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 14:03:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356808', 'tblTempUsageDetail_20' ) start [2025-01-29 14:03:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356808', 'tblTempUsageDetail_20' ) end [2025-01-29 14:03:30] Production.ERROR: pbx prc_insertCDR start [2025-01-29 14:03:31] Production.ERROR: pbx prc_insertCDR end [2025-01-29 14:03:31] Production.INFO: ==3361== Releasing lock... [2025-01-29 14:03:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 14:03:31] Production.INFO: 64.5 MB #Memory Used# [2025-01-29 14:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 11:04:06 [end_date_ymd] => 2025-01-29 14:04:06 [RateCDR] => 1 ) [2025-01-29 14:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 11:04:06' and `end` < '2025-01-29 14:04:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 14:04:20] Production.INFO: count ==4858 [2025-01-29 14:04:22] Production.ERROR: pbx CDR StartTime 2025-01-29 11:04:06 - End Time 2025-01-29 14:04:06 [2025-01-29 14:04:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 14:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356813', 'tblTempUsageDetail_20' ) start [2025-01-29 14:04:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356813', 'tblTempUsageDetail_20' ) end [2025-01-29 14:04:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356813', 'tblTempVendorCDR_20' ) start [2025-01-29 14:04:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356813', 'tblTempVendorCDR_20' ) end [2025-01-29 14:04:23] Production.INFO: ProcessCDR(1,14356813,1,1,2) [2025-01-29 14:04:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14356813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 14:04:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14356813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 14:04:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14356813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 14:04:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14356813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 14:04:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356813', 'tblTempUsageDetail_20' ) start [2025-01-29 14:04:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356813', 'tblTempUsageDetail_20' ) end [2025-01-29 14:04:28] Production.ERROR: pbx prc_insertCDR start [2025-01-29 14:04:28] Production.ERROR: pbx prc_insertCDR end [2025-01-29 14:04:28] Production.INFO: ==3451== Releasing lock... [2025-01-29 14:04:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 14:04:28] Production.INFO: 64.5 MB #Memory Used# [2025-01-29 14:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 11:05:05 [end_date_ymd] => 2025-01-29 14:05:05 [RateCDR] => 1 ) [2025-01-29 14:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 11:05:05' and `end` < '2025-01-29 14:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 14:05:20] Production.INFO: count ==4862 [2025-01-29 14:05:22] Production.ERROR: pbx CDR StartTime 2025-01-29 11:05:05 - End Time 2025-01-29 14:05:05 [2025-01-29 14:05:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 14:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356818', 'tblTempUsageDetail_20' ) start [2025-01-29 14:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356818', 'tblTempUsageDetail_20' ) end [2025-01-29 14:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356818', 'tblTempVendorCDR_20' ) start [2025-01-29 14:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356818', 'tblTempVendorCDR_20' ) end [2025-01-29 14:05:22] Production.INFO: ProcessCDR(1,14356818,1,1,2) [2025-01-29 14:05:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14356818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 14:05:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14356818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 14:05:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14356818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 14:05:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14356818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 14:05:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356818', 'tblTempUsageDetail_20' ) start [2025-01-29 14:05:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356818', 'tblTempUsageDetail_20' ) end [2025-01-29 14:05:27] Production.ERROR: pbx prc_insertCDR start [2025-01-29 14:05:27] Production.ERROR: pbx prc_insertCDR end [2025-01-29 14:05:27] Production.INFO: ==3528== Releasing lock... [2025-01-29 14:05:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 14:05:27] Production.INFO: 64.5 MB #Memory Used# [2025-01-29 14:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 11:06:05 [end_date_ymd] => 2025-01-29 14:06:05 [RateCDR] => 1 ) [2025-01-29 14:06:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 11:06:05' and `end` < '2025-01-29 14:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 14:06:19] Production.INFO: count ==4876 [2025-01-29 14:06:21] Production.ERROR: pbx CDR StartTime 2025-01-29 11:06:05 - End Time 2025-01-29 14:06:05 [2025-01-29 14:06:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 14:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356823', 'tblTempUsageDetail_20' ) start [2025-01-29 14:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356823', 'tblTempUsageDetail_20' ) end [2025-01-29 14:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356823', 'tblTempVendorCDR_20' ) start [2025-01-29 14:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356823', 'tblTempVendorCDR_20' ) end [2025-01-29 14:06:21] Production.INFO: ProcessCDR(1,14356823,1,1,2) [2025-01-29 14:06:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14356823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 14:06:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14356823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 14:06:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14356823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 14:06:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14356823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 14:06:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356823', 'tblTempUsageDetail_20' ) start [2025-01-29 14:06:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356823', 'tblTempUsageDetail_20' ) end [2025-01-29 14:06:27] Production.ERROR: pbx prc_insertCDR start [2025-01-29 14:06:27] Production.ERROR: pbx prc_insertCDR end [2025-01-29 14:06:27] Production.INFO: ==3607== Releasing lock... [2025-01-29 14:06:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 14:06:27] Production.INFO: 64.5 MB #Memory Used# [2025-01-29 14:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 11:07:05 [end_date_ymd] => 2025-01-29 14:07:05 [RateCDR] => 1 ) [2025-01-29 14:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 11:07:05' and `end` < '2025-01-29 14:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 14:07:19] Production.INFO: count ==4863 [2025-01-29 14:07:21] Production.ERROR: pbx CDR StartTime 2025-01-29 11:07:05 - End Time 2025-01-29 14:07:05 [2025-01-29 14:07:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 14:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356828', 'tblTempUsageDetail_20' ) start [2025-01-29 14:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356828', 'tblTempUsageDetail_20' ) end [2025-01-29 14:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356828', 'tblTempVendorCDR_20' ) start [2025-01-29 14:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356828', 'tblTempVendorCDR_20' ) end [2025-01-29 14:07:21] Production.INFO: ProcessCDR(1,14356828,1,1,2) [2025-01-29 14:07:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14356828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 14:07:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14356828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 14:07:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14356828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 14:07:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14356828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 14:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356828', 'tblTempUsageDetail_20' ) start [2025-01-29 14:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356828', 'tblTempUsageDetail_20' ) end [2025-01-29 14:07:26] Production.ERROR: pbx prc_insertCDR start [2025-01-29 14:07:26] Production.ERROR: pbx prc_insertCDR end [2025-01-29 14:07:26] Production.INFO: ==3724== Releasing lock... [2025-01-29 14:07:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 14:07:26] Production.INFO: 64.5 MB #Memory Used# [2025-01-29 14:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 11:08:05 [end_date_ymd] => 2025-01-29 14:08:05 [RateCDR] => 1 ) [2025-01-29 14:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 11:08:05' and `end` < '2025-01-29 14:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 14:08:25] Production.INFO: count ==4879 [2025-01-29 14:08:27] Production.ERROR: pbx CDR StartTime 2025-01-29 11:08:05 - End Time 2025-01-29 14:08:05 [2025-01-29 14:08:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 14:08:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356833', 'tblTempUsageDetail_20' ) start [2025-01-29 14:08:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356833', 'tblTempUsageDetail_20' ) end [2025-01-29 14:08:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356833', 'tblTempVendorCDR_20' ) start [2025-01-29 14:08:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356833', 'tblTempVendorCDR_20' ) end [2025-01-29 14:08:28] Production.INFO: ProcessCDR(1,14356833,1,1,2) [2025-01-29 14:08:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14356833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 14:08:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14356833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 14:08:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14356833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 14:08:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14356833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 14:08:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356833', 'tblTempUsageDetail_20' ) start [2025-01-29 14:08:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356833', 'tblTempUsageDetail_20' ) end [2025-01-29 14:08:33] Production.ERROR: pbx prc_insertCDR start [2025-01-29 14:08:33] Production.ERROR: pbx prc_insertCDR end [2025-01-29 14:08:33] Production.INFO: ==3822== Releasing lock... [2025-01-29 14:08:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 14:08:33] Production.INFO: 64.5 MB #Memory Used# [2025-01-29 14:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 11:09:05 [end_date_ymd] => 2025-01-29 14:09:05 [RateCDR] => 1 ) [2025-01-29 14:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 11:09:05' and `end` < '2025-01-29 14:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 14:09:23] Production.INFO: count ==4869 [2025-01-29 14:09:25] Production.ERROR: pbx CDR StartTime 2025-01-29 11:09:05 - End Time 2025-01-29 14:09:05 [2025-01-29 14:09:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 14:09:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356838', 'tblTempUsageDetail_20' ) start [2025-01-29 14:09:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356838', 'tblTempUsageDetail_20' ) end [2025-01-29 14:09:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356838', 'tblTempVendorCDR_20' ) start [2025-01-29 14:09:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356838', 'tblTempVendorCDR_20' ) end [2025-01-29 14:09:25] Production.INFO: ProcessCDR(1,14356838,1,1,2) [2025-01-29 14:09:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14356838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 14:09:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14356838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 14:09:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14356838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 14:09:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14356838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 14:09:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356838', 'tblTempUsageDetail_20' ) start [2025-01-29 14:09:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356838', 'tblTempUsageDetail_20' ) end [2025-01-29 14:09:30] Production.ERROR: pbx prc_insertCDR start [2025-01-29 14:09:30] Production.ERROR: pbx prc_insertCDR end [2025-01-29 14:09:30] Production.INFO: ==3933== Releasing lock... [2025-01-29 14:09:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 14:09:30] Production.INFO: 64.5 MB #Memory Used# [2025-01-29 14:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 11:10:06 [end_date_ymd] => 2025-01-29 14:10:06 [RateCDR] => 1 ) [2025-01-29 14:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 11:10:06' and `end` < '2025-01-29 14:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 14:10:26] Production.INFO: count ==4920 [2025-01-29 14:10:29] Production.ERROR: pbx CDR StartTime 2025-01-29 11:10:06 - End Time 2025-01-29 14:10:06 [2025-01-29 14:10:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 14:10:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356844', 'tblTempUsageDetail_20' ) start [2025-01-29 14:10:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356844', 'tblTempUsageDetail_20' ) end [2025-01-29 14:10:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356844', 'tblTempVendorCDR_20' ) start [2025-01-29 14:10:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356844', 'tblTempVendorCDR_20' ) end [2025-01-29 14:10:29] Production.INFO: ProcessCDR(1,14356844,1,1,2) [2025-01-29 14:10:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14356844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 14:10:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14356844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 14:10:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14356844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 14:10:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14356844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 14:10:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356844', 'tblTempUsageDetail_20' ) start [2025-01-29 14:10:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356844', 'tblTempUsageDetail_20' ) end [2025-01-29 14:10:34] Production.ERROR: pbx prc_insertCDR start [2025-01-29 14:10:34] Production.ERROR: pbx prc_insertCDR end [2025-01-29 14:10:34] Production.INFO: ==4043== Releasing lock... [2025-01-29 14:10:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 14:10:34] Production.INFO: 64.75 MB #Memory Used# [2025-01-29 14:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 11:11:06 [end_date_ymd] => 2025-01-29 14:11:06 [RateCDR] => 1 ) [2025-01-29 14:11:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 11:11:06' and `end` < '2025-01-29 14:11:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 14:11:26] Production.INFO: count ==4939 [2025-01-29 14:11:29] Production.ERROR: pbx CDR StartTime 2025-01-29 11:11:06 - End Time 2025-01-29 14:11:06 [2025-01-29 14:11:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 14:11:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356849', 'tblTempUsageDetail_20' ) start [2025-01-29 14:11:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356849', 'tblTempUsageDetail_20' ) end [2025-01-29 14:11:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356849', 'tblTempVendorCDR_20' ) start [2025-01-29 14:11:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356849', 'tblTempVendorCDR_20' ) end [2025-01-29 14:11:29] Production.INFO: ProcessCDR(1,14356849,1,1,2) [2025-01-29 14:11:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14356849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 14:11:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14356849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 14:11:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14356849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 14:11:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14356849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 14:11:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356849', 'tblTempUsageDetail_20' ) start [2025-01-29 14:11:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356849', 'tblTempUsageDetail_20' ) end [2025-01-29 14:11:34] Production.ERROR: pbx prc_insertCDR start [2025-01-29 14:11:34] Production.ERROR: pbx prc_insertCDR end [2025-01-29 14:11:34] Production.INFO: ==4136== Releasing lock... [2025-01-29 14:11:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 14:11:34] Production.INFO: 65 MB #Memory Used# [2025-01-29 14:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 11:12:05 [end_date_ymd] => 2025-01-29 14:12:05 [RateCDR] => 1 ) [2025-01-29 14:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 11:12:05' and `end` < '2025-01-29 14:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 14:12:25] Production.INFO: count ==4939 [2025-01-29 14:12:27] Production.ERROR: pbx CDR StartTime 2025-01-29 11:12:05 - End Time 2025-01-29 14:12:05 [2025-01-29 14:12:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 14:12:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356854', 'tblTempUsageDetail_20' ) start [2025-01-29 14:12:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356854', 'tblTempUsageDetail_20' ) end [2025-01-29 14:12:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356854', 'tblTempVendorCDR_20' ) start [2025-01-29 14:12:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356854', 'tblTempVendorCDR_20' ) end [2025-01-29 14:12:27] Production.INFO: ProcessCDR(1,14356854,1,1,2) [2025-01-29 14:12:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14356854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 14:12:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14356854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 14:12:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14356854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 14:12:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14356854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 14:12:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356854', 'tblTempUsageDetail_20' ) start [2025-01-29 14:12:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356854', 'tblTempUsageDetail_20' ) end [2025-01-29 14:12:32] Production.ERROR: pbx prc_insertCDR start [2025-01-29 14:12:32] Production.ERROR: pbx prc_insertCDR end [2025-01-29 14:12:32] Production.INFO: ==4212== Releasing lock... [2025-01-29 14:12:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 14:12:32] Production.INFO: 65 MB #Memory Used# [2025-01-29 14:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 11:13:05 [end_date_ymd] => 2025-01-29 14:13:05 [RateCDR] => 1 ) [2025-01-29 14:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 11:13:05' and `end` < '2025-01-29 14:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 14:13:23] Production.INFO: count ==4920 [2025-01-29 14:13:25] Production.ERROR: pbx CDR StartTime 2025-01-29 11:13:05 - End Time 2025-01-29 14:13:05 [2025-01-29 14:13:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 14:13:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356859', 'tblTempUsageDetail_20' ) start [2025-01-29 14:13:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356859', 'tblTempUsageDetail_20' ) end [2025-01-29 14:13:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356859', 'tblTempVendorCDR_20' ) start [2025-01-29 14:13:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356859', 'tblTempVendorCDR_20' ) end [2025-01-29 14:13:26] Production.INFO: ProcessCDR(1,14356859,1,1,2) [2025-01-29 14:13:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14356859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 14:13:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14356859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 14:13:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14356859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 14:13:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14356859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 14:13:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356859', 'tblTempUsageDetail_20' ) start [2025-01-29 14:13:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356859', 'tblTempUsageDetail_20' ) end [2025-01-29 14:13:31] Production.ERROR: pbx prc_insertCDR start [2025-01-29 14:13:31] Production.ERROR: pbx prc_insertCDR end [2025-01-29 14:13:31] Production.INFO: ==4289== Releasing lock... [2025-01-29 14:13:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 14:13:31] Production.INFO: 64.75 MB #Memory Used# [2025-01-29 14:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 11:14:05 [end_date_ymd] => 2025-01-29 14:14:05 [RateCDR] => 1 ) [2025-01-29 14:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 11:14:05' and `end` < '2025-01-29 14:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 14:14:18] Production.INFO: count ==4882 [2025-01-29 14:14:21] Production.ERROR: pbx CDR StartTime 2025-01-29 11:14:05 - End Time 2025-01-29 14:14:05 [2025-01-29 14:14:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 14:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356864', 'tblTempUsageDetail_20' ) start [2025-01-29 14:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356864', 'tblTempUsageDetail_20' ) end [2025-01-29 14:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356864', 'tblTempVendorCDR_20' ) start [2025-01-29 14:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356864', 'tblTempVendorCDR_20' ) end [2025-01-29 14:14:21] Production.INFO: ProcessCDR(1,14356864,1,1,2) [2025-01-29 14:14:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14356864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 14:14:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14356864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 14:14:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14356864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 14:14:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14356864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 14:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356864', 'tblTempUsageDetail_20' ) start [2025-01-29 14:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356864', 'tblTempUsageDetail_20' ) end [2025-01-29 14:14:26] Production.ERROR: pbx prc_insertCDR start [2025-01-29 14:14:26] Production.ERROR: pbx prc_insertCDR end [2025-01-29 14:14:26] Production.INFO: ==4366== Releasing lock... [2025-01-29 14:14:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 14:14:26] Production.INFO: 64.5 MB #Memory Used# [2025-01-29 14:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 11:15:06 [end_date_ymd] => 2025-01-29 14:15:06 [RateCDR] => 1 ) [2025-01-29 14:15:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 11:15:06' and `end` < '2025-01-29 14:15:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 14:15:20] Production.INFO: count ==4866 [2025-01-29 14:15:22] Production.ERROR: pbx CDR StartTime 2025-01-29 11:15:06 - End Time 2025-01-29 14:15:06 [2025-01-29 14:15:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 14:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356869', 'tblTempUsageDetail_20' ) start [2025-01-29 14:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356869', 'tblTempUsageDetail_20' ) end [2025-01-29 14:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356869', 'tblTempVendorCDR_20' ) start [2025-01-29 14:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356869', 'tblTempVendorCDR_20' ) end [2025-01-29 14:15:22] Production.INFO: ProcessCDR(1,14356869,1,1,2) [2025-01-29 14:15:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14356869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 14:15:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14356869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 14:15:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14356869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 14:15:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14356869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 14:15:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356869', 'tblTempUsageDetail_20' ) start [2025-01-29 14:15:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356869', 'tblTempUsageDetail_20' ) end [2025-01-29 14:15:27] Production.ERROR: pbx prc_insertCDR start [2025-01-29 14:15:27] Production.ERROR: pbx prc_insertCDR end [2025-01-29 14:15:27] Production.INFO: ==4447== Releasing lock... [2025-01-29 14:15:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 14:15:27] Production.INFO: 64.5 MB #Memory Used# [2025-01-29 14:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 11:16:06 [end_date_ymd] => 2025-01-29 14:16:06 [RateCDR] => 1 ) [2025-01-29 14:16:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 11:16:06' and `end` < '2025-01-29 14:16:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 14:16:20] Production.INFO: count ==4868 [2025-01-29 14:16:22] Production.ERROR: pbx CDR StartTime 2025-01-29 11:16:06 - End Time 2025-01-29 14:16:06 [2025-01-29 14:16:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 14:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356874', 'tblTempUsageDetail_20' ) start [2025-01-29 14:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356874', 'tblTempUsageDetail_20' ) end [2025-01-29 14:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356874', 'tblTempVendorCDR_20' ) start [2025-01-29 14:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356874', 'tblTempVendorCDR_20' ) end [2025-01-29 14:16:22] Production.INFO: ProcessCDR(1,14356874,1,1,2) [2025-01-29 14:16:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14356874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 14:16:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14356874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 14:16:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14356874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 14:16:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14356874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 14:16:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356874', 'tblTempUsageDetail_20' ) start [2025-01-29 14:16:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356874', 'tblTempUsageDetail_20' ) end [2025-01-29 14:16:27] Production.ERROR: pbx prc_insertCDR start [2025-01-29 14:16:27] Production.ERROR: pbx prc_insertCDR end [2025-01-29 14:16:27] Production.INFO: ==4525== Releasing lock... [2025-01-29 14:16:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 14:16:27] Production.INFO: 64.5 MB #Memory Used# [2025-01-29 14:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 11:17:05 [end_date_ymd] => 2025-01-29 14:17:05 [RateCDR] => 1 ) [2025-01-29 14:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 11:17:05' and `end` < '2025-01-29 14:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 14:17:20] Production.INFO: count ==4864 [2025-01-29 14:17:22] Production.ERROR: pbx CDR StartTime 2025-01-29 11:17:05 - End Time 2025-01-29 14:17:05 [2025-01-29 14:17:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 14:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356879', 'tblTempUsageDetail_20' ) start [2025-01-29 14:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356879', 'tblTempUsageDetail_20' ) end [2025-01-29 14:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356879', 'tblTempVendorCDR_20' ) start [2025-01-29 14:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356879', 'tblTempVendorCDR_20' ) end [2025-01-29 14:17:22] Production.INFO: ProcessCDR(1,14356879,1,1,2) [2025-01-29 14:17:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14356879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 14:17:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14356879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 14:17:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14356879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 14:17:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14356879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 14:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356879', 'tblTempUsageDetail_20' ) start [2025-01-29 14:17:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356879', 'tblTempUsageDetail_20' ) end [2025-01-29 14:17:27] Production.ERROR: pbx prc_insertCDR start [2025-01-29 14:17:27] Production.ERROR: pbx prc_insertCDR end [2025-01-29 14:17:27] Production.INFO: ==4611== Releasing lock... [2025-01-29 14:17:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 14:17:27] Production.INFO: 64.5 MB #Memory Used# [2025-01-29 14:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 11:18:05 [end_date_ymd] => 2025-01-29 14:18:05 [RateCDR] => 1 ) [2025-01-29 14:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 11:18:05' and `end` < '2025-01-29 14:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 14:18:18] Production.INFO: count ==4850 [2025-01-29 14:18:21] Production.ERROR: pbx CDR StartTime 2025-01-29 11:18:05 - End Time 2025-01-29 14:18:05 [2025-01-29 14:18:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 14:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356884', 'tblTempUsageDetail_20' ) start [2025-01-29 14:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356884', 'tblTempUsageDetail_20' ) end [2025-01-29 14:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356884', 'tblTempVendorCDR_20' ) start [2025-01-29 14:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356884', 'tblTempVendorCDR_20' ) end [2025-01-29 14:18:21] Production.INFO: ProcessCDR(1,14356884,1,1,2) [2025-01-29 14:18:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14356884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 14:18:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14356884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 14:18:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14356884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 14:18:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14356884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 14:18:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356884', 'tblTempUsageDetail_20' ) start [2025-01-29 14:18:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356884', 'tblTempUsageDetail_20' ) end [2025-01-29 14:18:25] Production.ERROR: pbx prc_insertCDR start [2025-01-29 14:18:25] Production.ERROR: pbx prc_insertCDR end [2025-01-29 14:18:25] Production.INFO: ==4690== Releasing lock... [2025-01-29 14:18:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 14:18:25] Production.INFO: 64.25 MB #Memory Used# [2025-01-29 14:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 11:19:05 [end_date_ymd] => 2025-01-29 14:19:05 [RateCDR] => 1 ) [2025-01-29 14:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 11:19:05' and `end` < '2025-01-29 14:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 14:19:19] Production.INFO: count ==4859 [2025-01-29 14:19:21] Production.ERROR: pbx CDR StartTime 2025-01-29 11:19:05 - End Time 2025-01-29 14:19:05 [2025-01-29 14:19:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 14:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356889', 'tblTempUsageDetail_20' ) start [2025-01-29 14:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356889', 'tblTempUsageDetail_20' ) end [2025-01-29 14:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356889', 'tblTempVendorCDR_20' ) start [2025-01-29 14:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356889', 'tblTempVendorCDR_20' ) end [2025-01-29 14:19:21] Production.INFO: ProcessCDR(1,14356889,1,1,2) [2025-01-29 14:19:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14356889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 14:19:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14356889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 14:19:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14356889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 14:19:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14356889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 14:19:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356889', 'tblTempUsageDetail_20' ) start [2025-01-29 14:19:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356889', 'tblTempUsageDetail_20' ) end [2025-01-29 14:19:25] Production.ERROR: pbx prc_insertCDR start [2025-01-29 14:19:25] Production.ERROR: pbx prc_insertCDR end [2025-01-29 14:19:25] Production.INFO: ==4775== Releasing lock... [2025-01-29 14:19:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 14:19:25] Production.INFO: 64.5 MB #Memory Used# [2025-01-29 14:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 11:20:06 [end_date_ymd] => 2025-01-29 14:20:06 [RateCDR] => 1 ) [2025-01-29 14:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 11:20:06' and `end` < '2025-01-29 14:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 14:20:25] Production.INFO: count ==4816 [2025-01-29 14:20:27] Production.ERROR: pbx CDR StartTime 2025-01-29 11:20:06 - End Time 2025-01-29 14:20:06 [2025-01-29 14:20:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 14:20:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356895', 'tblTempUsageDetail_20' ) start [2025-01-29 14:20:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356895', 'tblTempUsageDetail_20' ) end [2025-01-29 14:20:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356895', 'tblTempVendorCDR_20' ) start [2025-01-29 14:20:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356895', 'tblTempVendorCDR_20' ) end [2025-01-29 14:20:27] Production.INFO: ProcessCDR(1,14356895,1,1,2) [2025-01-29 14:20:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14356895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 14:20:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14356895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 14:20:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14356895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 14:20:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14356895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 14:20:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356895', 'tblTempUsageDetail_20' ) start [2025-01-29 14:20:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356895', 'tblTempUsageDetail_20' ) end [2025-01-29 14:20:32] Production.ERROR: pbx prc_insertCDR start [2025-01-29 14:20:32] Production.ERROR: pbx prc_insertCDR end [2025-01-29 14:20:32] Production.INFO: ==4853== Releasing lock... [2025-01-29 14:20:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 14:20:32] Production.INFO: 64 MB #Memory Used# [2025-01-29 14:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 11:21:06 [end_date_ymd] => 2025-01-29 14:21:06 [RateCDR] => 1 ) [2025-01-29 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-01-29 11:21:06' and `end` < '2025-01-29 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-01-29 14:21:23] Production.INFO: count ==4830 [2025-01-29 14:21:25] Production.ERROR: pbx CDR StartTime 2025-01-29 11:21:06 - End Time 2025-01-29 14:21:06 [2025-01-29 14:21:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 14:21:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356900', 'tblTempUsageDetail_20' ) start [2025-01-29 14:21:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356900', 'tblTempUsageDetail_20' ) end [2025-01-29 14:21:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356900', 'tblTempVendorCDR_20' ) start [2025-01-29 14:21:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356900', 'tblTempVendorCDR_20' ) end [2025-01-29 14:21:25] Production.INFO: ProcessCDR(1,14356900,1,1,2) [2025-01-29 14:21:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14356900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 14:21:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14356900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 14:21:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14356900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 14:21:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14356900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 14:21:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356900', 'tblTempUsageDetail_20' ) start [2025-01-29 14:21:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356900', 'tblTempUsageDetail_20' ) end [2025-01-29 14:21:30] Production.ERROR: pbx prc_insertCDR start [2025-01-29 14:21:30] Production.ERROR: pbx prc_insertCDR end [2025-01-29 14:21:30] Production.INFO: ==4935== Releasing lock... [2025-01-29 14:21:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 14:21:30] Production.INFO: 64.25 MB #Memory Used# [2025-01-29 14:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 11:22:05 [end_date_ymd] => 2025-01-29 14:22:05 [RateCDR] => 1 ) [2025-01-29 14:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 11:22:05' and `end` < '2025-01-29 14:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 14:22:19] Production.INFO: count ==4821 [2025-01-29 14:22:21] Production.ERROR: pbx CDR StartTime 2025-01-29 11:22:05 - End Time 2025-01-29 14:22:05 [2025-01-29 14:22:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 14:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356905', 'tblTempUsageDetail_20' ) start [2025-01-29 14:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356905', 'tblTempUsageDetail_20' ) end [2025-01-29 14:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356905', 'tblTempVendorCDR_20' ) start [2025-01-29 14:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356905', 'tblTempVendorCDR_20' ) end [2025-01-29 14:22:21] Production.INFO: ProcessCDR(1,14356905,1,1,2) [2025-01-29 14:22:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14356905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 14:22:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14356905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 14:22:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14356905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 14:22:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14356905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 14:22:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356905', 'tblTempUsageDetail_20' ) start [2025-01-29 14:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356905', 'tblTempUsageDetail_20' ) end [2025-01-29 14:22:26] Production.ERROR: pbx prc_insertCDR start [2025-01-29 14:22:26] Production.ERROR: pbx prc_insertCDR end [2025-01-29 14:22:26] Production.INFO: ==5012== Releasing lock... [2025-01-29 14:22:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 14:22:26] Production.INFO: 64 MB #Memory Used# [2025-01-29 14:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 11:23:05 [end_date_ymd] => 2025-01-29 14:23:05 [RateCDR] => 1 ) [2025-01-29 14:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 11:23:05' and `end` < '2025-01-29 14:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 14:23:19] Production.INFO: count ==4822 [2025-01-29 14:23:21] Production.ERROR: pbx CDR StartTime 2025-01-29 11:23:05 - End Time 2025-01-29 14:23:05 [2025-01-29 14:23:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 14:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356910', 'tblTempUsageDetail_20' ) start [2025-01-29 14:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356910', 'tblTempUsageDetail_20' ) end [2025-01-29 14:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356910', 'tblTempVendorCDR_20' ) start [2025-01-29 14:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356910', 'tblTempVendorCDR_20' ) end [2025-01-29 14:23:21] Production.INFO: ProcessCDR(1,14356910,1,1,2) [2025-01-29 14:23:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14356910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 14:23:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14356910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 14:23:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14356910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 14:23:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14356910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 14:23:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356910', 'tblTempUsageDetail_20' ) start [2025-01-29 14:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356910', 'tblTempUsageDetail_20' ) end [2025-01-29 14:23:26] Production.ERROR: pbx prc_insertCDR start [2025-01-29 14:23:26] Production.ERROR: pbx prc_insertCDR end [2025-01-29 14:23:26] Production.INFO: ==5129== Releasing lock... [2025-01-29 14:23:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 14:23:26] Production.INFO: 64 MB #Memory Used# [2025-01-29 14:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 11:24:05 [end_date_ymd] => 2025-01-29 14:24:05 [RateCDR] => 1 ) [2025-01-29 14:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 11:24:05' and `end` < '2025-01-29 14:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 14:24:20] Production.INFO: count ==4798 [2025-01-29 14:24:22] Production.ERROR: pbx CDR StartTime 2025-01-29 11:24:05 - End Time 2025-01-29 14:24:05 [2025-01-29 14:24:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 14:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356915', 'tblTempUsageDetail_20' ) start [2025-01-29 14:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356915', 'tblTempUsageDetail_20' ) end [2025-01-29 14:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356915', 'tblTempVendorCDR_20' ) start [2025-01-29 14:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356915', 'tblTempVendorCDR_20' ) end [2025-01-29 14:24:22] Production.INFO: ProcessCDR(1,14356915,1,1,2) [2025-01-29 14:24:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14356915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 14:24:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14356915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 14:24:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14356915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 14:24:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14356915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 14:24:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356915', 'tblTempUsageDetail_20' ) start [2025-01-29 14:24:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356915', 'tblTempUsageDetail_20' ) end [2025-01-29 14:24:27] Production.ERROR: pbx prc_insertCDR start [2025-01-29 14:24:27] Production.ERROR: pbx prc_insertCDR end [2025-01-29 14:24:27] Production.INFO: ==5205== Releasing lock... [2025-01-29 14:24:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 14:24:27] Production.INFO: 64 MB #Memory Used# [2025-01-29 14:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 11:25:05 [end_date_ymd] => 2025-01-29 14:25:05 [RateCDR] => 1 ) [2025-01-29 14:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 11:25:05' and `end` < '2025-01-29 14:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 14:25:21] Production.INFO: count ==4764 [2025-01-29 14:25:23] Production.ERROR: pbx CDR StartTime 2025-01-29 11:25:05 - End Time 2025-01-29 14:25:05 [2025-01-29 14:25:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 14:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356920', 'tblTempUsageDetail_20' ) start [2025-01-29 14:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356920', 'tblTempUsageDetail_20' ) end [2025-01-29 14:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356920', 'tblTempVendorCDR_20' ) start [2025-01-29 14:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356920', 'tblTempVendorCDR_20' ) end [2025-01-29 14:25:23] Production.INFO: ProcessCDR(1,14356920,1,1,2) [2025-01-29 14:25:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14356920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 14:25:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14356920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 14:25:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14356920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 14:25:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14356920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 14:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356920', 'tblTempUsageDetail_20' ) start [2025-01-29 14:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356920', 'tblTempUsageDetail_20' ) end [2025-01-29 14:25:28] Production.ERROR: pbx prc_insertCDR start [2025-01-29 14:25:28] Production.ERROR: pbx prc_insertCDR end [2025-01-29 14:25:28] Production.INFO: ==5283== Releasing lock... [2025-01-29 14:25:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 14:25:28] Production.INFO: 63.75 MB #Memory Used# [2025-01-29 14:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 11:26:05 [end_date_ymd] => 2025-01-29 14:26:05 [RateCDR] => 1 ) [2025-01-29 14:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 11:26:05' and `end` < '2025-01-29 14:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 14:26:21] Production.INFO: count ==4740 [2025-01-29 14:26:23] Production.ERROR: pbx CDR StartTime 2025-01-29 11:26:05 - End Time 2025-01-29 14:26:05 [2025-01-29 14:26:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 14:26:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356925', 'tblTempUsageDetail_20' ) start [2025-01-29 14:26:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356925', 'tblTempUsageDetail_20' ) end [2025-01-29 14:26:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356925', 'tblTempVendorCDR_20' ) start [2025-01-29 14:26:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356925', 'tblTempVendorCDR_20' ) end [2025-01-29 14:26:23] Production.INFO: ProcessCDR(1,14356925,1,1,2) [2025-01-29 14:26:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14356925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 14:26:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14356925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 14:26:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14356925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 14:26:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14356925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 14:26:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356925', 'tblTempUsageDetail_20' ) start [2025-01-29 14:26:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356925', 'tblTempUsageDetail_20' ) end [2025-01-29 14:26:28] Production.ERROR: pbx prc_insertCDR start [2025-01-29 14:26:28] Production.ERROR: pbx prc_insertCDR end [2025-01-29 14:26:28] Production.INFO: ==5361== Releasing lock... [2025-01-29 14:26:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 14:26:28] Production.INFO: 63.5 MB #Memory Used# [2025-01-29 14:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 11:27:05 [end_date_ymd] => 2025-01-29 14:27:05 [RateCDR] => 1 ) [2025-01-29 14:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 11:27:05' and `end` < '2025-01-29 14:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 14:27:19] Production.INFO: count ==4750 [2025-01-29 14:27:21] Production.ERROR: pbx CDR StartTime 2025-01-29 11:27:05 - End Time 2025-01-29 14:27:05 [2025-01-29 14:27:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 14:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356930', 'tblTempUsageDetail_20' ) start [2025-01-29 14:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356930', 'tblTempUsageDetail_20' ) end [2025-01-29 14:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356930', 'tblTempVendorCDR_20' ) start [2025-01-29 14:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356930', 'tblTempVendorCDR_20' ) end [2025-01-29 14:27:21] Production.INFO: ProcessCDR(1,14356930,1,1,2) [2025-01-29 14:27:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14356930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 14:27:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14356930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 14:27:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14356930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 14:27:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14356930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 14:27:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356930', 'tblTempUsageDetail_20' ) start [2025-01-29 14:27:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356930', 'tblTempUsageDetail_20' ) end [2025-01-29 14:27:26] Production.ERROR: pbx prc_insertCDR start [2025-01-29 14:27:26] Production.ERROR: pbx prc_insertCDR end [2025-01-29 14:27:26] Production.INFO: ==5437== Releasing lock... [2025-01-29 14:27:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 14:27:26] Production.INFO: 63.5 MB #Memory Used# [2025-01-29 14:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 11:28:05 [end_date_ymd] => 2025-01-29 14:28:05 [RateCDR] => 1 ) [2025-01-29 14:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 11:28:05' and `end` < '2025-01-29 14:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 14:28:21] Production.INFO: count ==4753 [2025-01-29 14:28:23] Production.ERROR: pbx CDR StartTime 2025-01-29 11:28:05 - End Time 2025-01-29 14:28:05 [2025-01-29 14:28:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 14:28:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356935', 'tblTempUsageDetail_20' ) start [2025-01-29 14:28:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356935', 'tblTempUsageDetail_20' ) end [2025-01-29 14:28:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356935', 'tblTempVendorCDR_20' ) start [2025-01-29 14:28:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356935', 'tblTempVendorCDR_20' ) end [2025-01-29 14:28:23] Production.INFO: ProcessCDR(1,14356935,1,1,2) [2025-01-29 14:28:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14356935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 14:28:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14356935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 14:28:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14356935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 14:28:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14356935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 14:28:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356935', 'tblTempUsageDetail_20' ) start [2025-01-29 14:28:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356935', 'tblTempUsageDetail_20' ) end [2025-01-29 14:28:28] Production.ERROR: pbx prc_insertCDR start [2025-01-29 14:28:28] Production.ERROR: pbx prc_insertCDR end [2025-01-29 14:28:28] Production.INFO: ==5525== Releasing lock... [2025-01-29 14:28:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 14:28:28] Production.INFO: 63.5 MB #Memory Used# [2025-01-29 14:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 11:29:05 [end_date_ymd] => 2025-01-29 14:29:05 [RateCDR] => 1 ) [2025-01-29 14:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 11:29:05' and `end` < '2025-01-29 14:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 14:29:19] Production.INFO: count ==4753 [2025-01-29 14:29:21] Production.ERROR: pbx CDR StartTime 2025-01-29 11:29:05 - End Time 2025-01-29 14:29:05 [2025-01-29 14:29:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 14:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356940', 'tblTempUsageDetail_20' ) start [2025-01-29 14:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356940', 'tblTempUsageDetail_20' ) end [2025-01-29 14:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356940', 'tblTempVendorCDR_20' ) start [2025-01-29 14:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356940', 'tblTempVendorCDR_20' ) end [2025-01-29 14:29:21] Production.INFO: ProcessCDR(1,14356940,1,1,2) [2025-01-29 14:29:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14356940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 14:29:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14356940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 14:29:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14356940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 14:29:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14356940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 14:29:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356940', 'tblTempUsageDetail_20' ) start [2025-01-29 14:29:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356940', 'tblTempUsageDetail_20' ) end [2025-01-29 14:29:26] Production.ERROR: pbx prc_insertCDR start [2025-01-29 14:29:26] Production.ERROR: pbx prc_insertCDR end [2025-01-29 14:29:26] Production.INFO: ==5599== Releasing lock... [2025-01-29 14:29:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 14:29:26] Production.INFO: 63.5 MB #Memory Used# [2025-01-29 14:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 11:30:06 [end_date_ymd] => 2025-01-29 14:30:06 [RateCDR] => 1 ) [2025-01-29 14:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 11:30:06' and `end` < '2025-01-29 14:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 14:30:31] Production.INFO: count ==4731 [2025-01-29 14:30:34] Production.ERROR: pbx CDR StartTime 2025-01-29 11:30:06 - End Time 2025-01-29 14:30:06 [2025-01-29 14:30:34] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 14:30:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356945', 'tblTempUsageDetail_20' ) start [2025-01-29 14:30:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356945', 'tblTempUsageDetail_20' ) end [2025-01-29 14:30:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356945', 'tblTempVendorCDR_20' ) start [2025-01-29 14:30:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356945', 'tblTempVendorCDR_20' ) end [2025-01-29 14:30:34] Production.INFO: ProcessCDR(1,14356945,1,1,2) [2025-01-29 14:30:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14356945,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 14:30:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14356945,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 14:30:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14356945,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 14:30:39] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14356945,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 14:30:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356945', 'tblTempUsageDetail_20' ) start [2025-01-29 14:30:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356945', 'tblTempUsageDetail_20' ) end [2025-01-29 14:30:39] Production.ERROR: pbx prc_insertCDR start [2025-01-29 14:30:39] Production.ERROR: pbx prc_insertCDR end [2025-01-29 14:30:39] Production.INFO: ==5684== Releasing lock... [2025-01-29 14:30:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 14:30:39] Production.INFO: 63.5 MB #Memory Used# [2025-01-29 14:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 11:31:05 [end_date_ymd] => 2025-01-29 14:31:05 [RateCDR] => 1 ) [2025-01-29 14:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 11:31:05' and `end` < '2025-01-29 14:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 14:31:23] Production.INFO: count ==4716 [2025-01-29 14:31:25] Production.ERROR: pbx CDR StartTime 2025-01-29 11:31:05 - End Time 2025-01-29 14:31:05 [2025-01-29 14:31:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 14:31:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356951', 'tblTempUsageDetail_20' ) start [2025-01-29 14:31:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356951', 'tblTempUsageDetail_20' ) end [2025-01-29 14:31:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356951', 'tblTempVendorCDR_20' ) start [2025-01-29 14:31:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356951', 'tblTempVendorCDR_20' ) end [2025-01-29 14:31:25] Production.INFO: ProcessCDR(1,14356951,1,1,2) [2025-01-29 14:31:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14356951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 14:31:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14356951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 14:31:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14356951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 14:31:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14356951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 14:31:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356951', 'tblTempUsageDetail_20' ) start [2025-01-29 14:31:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356951', 'tblTempUsageDetail_20' ) end [2025-01-29 14:31:30] Production.ERROR: pbx prc_insertCDR start [2025-01-29 14:31:30] Production.ERROR: pbx prc_insertCDR end [2025-01-29 14:31:30] Production.INFO: ==5768== Releasing lock... [2025-01-29 14:31:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 14:31:30] Production.INFO: 63.25 MB #Memory Used# [2025-01-29 14:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 11:32:06 [end_date_ymd] => 2025-01-29 14:32:06 [RateCDR] => 1 ) [2025-01-29 14:32:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 11:32:06' and `end` < '2025-01-29 14:32:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 14:32:26] Production.INFO: count ==4714 [2025-01-29 14:32:28] Production.ERROR: pbx CDR StartTime 2025-01-29 11:32:06 - End Time 2025-01-29 14:32:06 [2025-01-29 14:32:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 14:32:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356956', 'tblTempUsageDetail_20' ) start [2025-01-29 14:32:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356956', 'tblTempUsageDetail_20' ) end [2025-01-29 14:32:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356956', 'tblTempVendorCDR_20' ) start [2025-01-29 14:32:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356956', 'tblTempVendorCDR_20' ) end [2025-01-29 14:32:28] Production.INFO: ProcessCDR(1,14356956,1,1,2) [2025-01-29 14:32:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14356956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 14:32:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14356956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 14:32:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14356956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 14:32:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14356956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 14:32:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356956', 'tblTempUsageDetail_20' ) start [2025-01-29 14:32:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356956', 'tblTempUsageDetail_20' ) end [2025-01-29 14:32:33] Production.ERROR: pbx prc_insertCDR start [2025-01-29 14:32:33] Production.ERROR: pbx prc_insertCDR end [2025-01-29 14:32:33] Production.INFO: ==5846== Releasing lock... [2025-01-29 14:32:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 14:32:33] Production.INFO: 63.25 MB #Memory Used# [2025-01-29 14:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 11:33:05 [end_date_ymd] => 2025-01-29 14:33:05 [RateCDR] => 1 ) [2025-01-29 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-01-29 11:33:05' and `end` < '2025-01-29 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-01-29 14:33:23] Production.INFO: count ==4715 [2025-01-29 14:33:25] Production.ERROR: pbx CDR StartTime 2025-01-29 11:33:05 - End Time 2025-01-29 14:33:05 [2025-01-29 14:33:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 14:33:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356961', 'tblTempUsageDetail_20' ) start [2025-01-29 14:33:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356961', 'tblTempUsageDetail_20' ) end [2025-01-29 14:33:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356961', 'tblTempVendorCDR_20' ) start [2025-01-29 14:33:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356961', 'tblTempVendorCDR_20' ) end [2025-01-29 14:33:26] Production.INFO: ProcessCDR(1,14356961,1,1,2) [2025-01-29 14:33:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14356961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 14:33:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14356961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 14:33:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14356961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 14:33:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14356961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 14:33:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356961', 'tblTempUsageDetail_20' ) start [2025-01-29 14:33:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356961', 'tblTempUsageDetail_20' ) end [2025-01-29 14:33:30] Production.ERROR: pbx prc_insertCDR start [2025-01-29 14:33:30] Production.ERROR: pbx prc_insertCDR end [2025-01-29 14:33:30] Production.INFO: ==5923== Releasing lock... [2025-01-29 14:33:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 14:33:30] Production.INFO: 63.25 MB #Memory Used# [2025-01-29 14:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 11:34:05 [end_date_ymd] => 2025-01-29 14:34:05 [RateCDR] => 1 ) [2025-01-29 14:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 11:34:05' and `end` < '2025-01-29 14:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 14:34:21] Production.INFO: count ==4699 [2025-01-29 14:34:24] Production.ERROR: pbx CDR StartTime 2025-01-29 11:34:05 - End Time 2025-01-29 14:34:05 [2025-01-29 14:34:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 14:34:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356966', 'tblTempUsageDetail_20' ) start [2025-01-29 14:34:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356966', 'tblTempUsageDetail_20' ) end [2025-01-29 14:34:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356966', 'tblTempVendorCDR_20' ) start [2025-01-29 14:34:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356966', 'tblTempVendorCDR_20' ) end [2025-01-29 14:34:24] Production.INFO: ProcessCDR(1,14356966,1,1,2) [2025-01-29 14:34:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14356966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 14:34:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14356966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 14:34:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14356966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 14:34:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14356966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 14:34:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356966', 'tblTempUsageDetail_20' ) start [2025-01-29 14:34:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356966', 'tblTempUsageDetail_20' ) end [2025-01-29 14:34:28] Production.ERROR: pbx prc_insertCDR start [2025-01-29 14:34:28] Production.ERROR: pbx prc_insertCDR end [2025-01-29 14:34:29] Production.INFO: ==6003== Releasing lock... [2025-01-29 14:34:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 14:34:29] Production.INFO: 63.25 MB #Memory Used# [2025-01-29 14:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 11:35:05 [end_date_ymd] => 2025-01-29 14:35:05 [RateCDR] => 1 ) [2025-01-29 14:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 11:35:05' and `end` < '2025-01-29 14:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 14:35:20] Production.INFO: count ==4685 [2025-01-29 14:35:22] Production.ERROR: pbx CDR StartTime 2025-01-29 11:35:05 - End Time 2025-01-29 14:35:05 [2025-01-29 14:35:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 14:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356971', 'tblTempUsageDetail_20' ) start [2025-01-29 14:35:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356971', 'tblTempUsageDetail_20' ) end [2025-01-29 14:35:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356971', 'tblTempVendorCDR_20' ) start [2025-01-29 14:35:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356971', 'tblTempVendorCDR_20' ) end [2025-01-29 14:35:23] Production.INFO: ProcessCDR(1,14356971,1,1,2) [2025-01-29 14:35:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14356971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 14:35:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14356971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 14:35:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14356971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 14:35:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14356971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 14:35:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356971', 'tblTempUsageDetail_20' ) start [2025-01-29 14:35:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356971', 'tblTempUsageDetail_20' ) end [2025-01-29 14:35:27] Production.ERROR: pbx prc_insertCDR start [2025-01-29 14:35:27] Production.ERROR: pbx prc_insertCDR end [2025-01-29 14:35:27] Production.INFO: ==6095== Releasing lock... [2025-01-29 14:35:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 14:35:27] Production.INFO: 63 MB #Memory Used# [2025-01-29 14:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 11:36:05 [end_date_ymd] => 2025-01-29 14:36:05 [RateCDR] => 1 ) [2025-01-29 14:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 11:36:05' and `end` < '2025-01-29 14:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 14:36:22] Production.INFO: count ==4691 [2025-01-29 14:36:24] Production.ERROR: pbx CDR StartTime 2025-01-29 11:36:05 - End Time 2025-01-29 14:36:05 [2025-01-29 14:36:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 14:36:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356976', 'tblTempUsageDetail_20' ) start [2025-01-29 14:36:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356976', 'tblTempUsageDetail_20' ) end [2025-01-29 14:36:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356976', 'tblTempVendorCDR_20' ) start [2025-01-29 14:36:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356976', 'tblTempVendorCDR_20' ) end [2025-01-29 14:36:24] Production.INFO: ProcessCDR(1,14356976,1,1,2) [2025-01-29 14:36:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14356976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 14:36:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14356976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 14:36:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14356976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 14:36:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14356976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 14:36:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356976', 'tblTempUsageDetail_20' ) start [2025-01-29 14:36:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356976', 'tblTempUsageDetail_20' ) end [2025-01-29 14:36:29] Production.ERROR: pbx prc_insertCDR start [2025-01-29 14:36:29] Production.ERROR: pbx prc_insertCDR end [2025-01-29 14:36:29] Production.INFO: ==6172== Releasing lock... [2025-01-29 14:36:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 14:36:29] Production.INFO: 63.25 MB #Memory Used# [2025-01-29 14:37:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 11:37:04 [end_date_ymd] => 2025-01-29 14:37:04 [RateCDR] => 1 ) [2025-01-29 14:37:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 11:37:04' and `end` < '2025-01-29 14:37:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 14:37:18] Production.INFO: count ==4680 [2025-01-29 14:37:20] Production.ERROR: pbx CDR StartTime 2025-01-29 11:37:04 - End Time 2025-01-29 14:37:04 [2025-01-29 14:37:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 14:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356981', 'tblTempUsageDetail_20' ) start [2025-01-29 14:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356981', 'tblTempUsageDetail_20' ) end [2025-01-29 14:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356981', 'tblTempVendorCDR_20' ) start [2025-01-29 14:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356981', 'tblTempVendorCDR_20' ) end [2025-01-29 14:37:20] Production.INFO: ProcessCDR(1,14356981,1,1,2) [2025-01-29 14:37:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14356981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 14:37:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14356981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 14:37:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14356981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 14:37:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14356981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 14:37:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356981', 'tblTempUsageDetail_20' ) start [2025-01-29 14:37:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356981', 'tblTempUsageDetail_20' ) end [2025-01-29 14:37:25] Production.ERROR: pbx prc_insertCDR start [2025-01-29 14:37:25] Production.ERROR: pbx prc_insertCDR end [2025-01-29 14:37:25] Production.INFO: ==6248== Releasing lock... [2025-01-29 14:37:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 14:37:25] Production.INFO: 63 MB #Memory Used# [2025-01-29 14:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 11:38:05 [end_date_ymd] => 2025-01-29 14:38:05 [RateCDR] => 1 ) [2025-01-29 14:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 11:38:05' and `end` < '2025-01-29 14:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 14:38:21] Production.INFO: count ==4670 [2025-01-29 14:38:23] Production.ERROR: pbx CDR StartTime 2025-01-29 11:38:05 - End Time 2025-01-29 14:38:05 [2025-01-29 14:38:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 14:38:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356986', 'tblTempUsageDetail_20' ) start [2025-01-29 14:38:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356986', 'tblTempUsageDetail_20' ) end [2025-01-29 14:38:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356986', 'tblTempVendorCDR_20' ) start [2025-01-29 14:38:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356986', 'tblTempVendorCDR_20' ) end [2025-01-29 14:38:23] Production.INFO: ProcessCDR(1,14356986,1,1,2) [2025-01-29 14:38:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14356986,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 14:38:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14356986,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 14:38:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14356986,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 14:38:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14356986,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 14:38:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356986', 'tblTempUsageDetail_20' ) start [2025-01-29 14:38:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356986', 'tblTempUsageDetail_20' ) end [2025-01-29 14:38:28] Production.ERROR: pbx prc_insertCDR start [2025-01-29 14:38:28] Production.ERROR: pbx prc_insertCDR end [2025-01-29 14:38:28] Production.INFO: ==6368== Releasing lock... [2025-01-29 14:38:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 14:38:28] Production.INFO: 63 MB #Memory Used# [2025-01-29 14:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 11:39:05 [end_date_ymd] => 2025-01-29 14:39:05 [RateCDR] => 1 ) [2025-01-29 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-01-29 11:39:05' and `end` < '2025-01-29 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-01-29 14:39:23] Production.INFO: count ==4663 [2025-01-29 14:39:25] Production.ERROR: pbx CDR StartTime 2025-01-29 11:39:05 - End Time 2025-01-29 14:39:05 [2025-01-29 14:39:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 14:39:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356991', 'tblTempUsageDetail_20' ) start [2025-01-29 14:39:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356991', 'tblTempUsageDetail_20' ) end [2025-01-29 14:39:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356991', 'tblTempVendorCDR_20' ) start [2025-01-29 14:39:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356991', 'tblTempVendorCDR_20' ) end [2025-01-29 14:39:25] Production.INFO: ProcessCDR(1,14356991,1,1,2) [2025-01-29 14:39:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14356991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 14:39:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14356991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 14:39:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14356991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 14:39:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14356991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 14:39:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356991', 'tblTempUsageDetail_20' ) start [2025-01-29 14:39:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356991', 'tblTempUsageDetail_20' ) end [2025-01-29 14:39:30] Production.ERROR: pbx prc_insertCDR start [2025-01-29 14:39:30] Production.ERROR: pbx prc_insertCDR end [2025-01-29 14:39:30] Production.INFO: ==6446== Releasing lock... [2025-01-29 14:39:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 14:39:30] Production.INFO: 63 MB #Memory Used# [2025-01-29 14:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 11:40:06 [end_date_ymd] => 2025-01-29 14:40:06 [RateCDR] => 1 ) [2025-01-29 14:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 11:40:06' and `end` < '2025-01-29 14:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 14:40:25] Production.INFO: count ==4667 [2025-01-29 14:40:27] Production.ERROR: pbx CDR StartTime 2025-01-29 11:40:06 - End Time 2025-01-29 14:40:06 [2025-01-29 14:40:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 14:40:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356996', 'tblTempUsageDetail_20' ) start [2025-01-29 14:40:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14356996', 'tblTempUsageDetail_20' ) end [2025-01-29 14:40:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356996', 'tblTempVendorCDR_20' ) start [2025-01-29 14:40:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14356996', 'tblTempVendorCDR_20' ) end [2025-01-29 14:40:27] Production.INFO: ProcessCDR(1,14356996,1,1,2) [2025-01-29 14:40:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14356996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 14:40:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14356996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 14:40:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14356996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 14:40:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14356996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 14:40:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356996', 'tblTempUsageDetail_20' ) start [2025-01-29 14:40:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14356996', 'tblTempUsageDetail_20' ) end [2025-01-29 14:40:32] Production.ERROR: pbx prc_insertCDR start [2025-01-29 14:40:32] Production.ERROR: pbx prc_insertCDR end [2025-01-29 14:40:32] Production.INFO: ==6526== Releasing lock... [2025-01-29 14:40:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 14:40:32] Production.INFO: 63 MB #Memory Used# [2025-01-29 14:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 11:41:05 [end_date_ymd] => 2025-01-29 14:41:05 [RateCDR] => 1 ) [2025-01-29 14:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 11:41:05' and `end` < '2025-01-29 14:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 14:41:23] Production.INFO: count ==4661 [2025-01-29 14:41:25] Production.ERROR: pbx CDR StartTime 2025-01-29 11:41:05 - End Time 2025-01-29 14:41:05 [2025-01-29 14:41:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 14:41:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357002', 'tblTempUsageDetail_20' ) start [2025-01-29 14:41:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357002', 'tblTempUsageDetail_20' ) end [2025-01-29 14:41:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357002', 'tblTempVendorCDR_20' ) start [2025-01-29 14:41:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357002', 'tblTempVendorCDR_20' ) end [2025-01-29 14:41:26] Production.INFO: ProcessCDR(1,14357002,1,1,2) [2025-01-29 14:41:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14357002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 14:41:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14357002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 14:41:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14357002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 14:41:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14357002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 14:41:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357002', 'tblTempUsageDetail_20' ) start [2025-01-29 14:41:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357002', 'tblTempUsageDetail_20' ) end [2025-01-29 14:41:31] Production.ERROR: pbx prc_insertCDR start [2025-01-29 14:41:31] Production.ERROR: pbx prc_insertCDR end [2025-01-29 14:41:31] Production.INFO: ==6606== Releasing lock... [2025-01-29 14:41:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 14:41:31] Production.INFO: 63 MB #Memory Used# [2025-01-29 14:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 11:42:05 [end_date_ymd] => 2025-01-29 14:42:05 [RateCDR] => 1 ) [2025-01-29 14:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 11:42:05' and `end` < '2025-01-29 14:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 14:42:19] Production.INFO: count ==4662 [2025-01-29 14:42:21] Production.ERROR: pbx CDR StartTime 2025-01-29 11:42:05 - End Time 2025-01-29 14:42:05 [2025-01-29 14:42:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 14:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357007', 'tblTempUsageDetail_20' ) start [2025-01-29 14:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357007', 'tblTempUsageDetail_20' ) end [2025-01-29 14:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357007', 'tblTempVendorCDR_20' ) start [2025-01-29 14:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357007', 'tblTempVendorCDR_20' ) end [2025-01-29 14:42:21] Production.INFO: ProcessCDR(1,14357007,1,1,2) [2025-01-29 14:42:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14357007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 14:42:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14357007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 14:42:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14357007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 14:42:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14357007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 14:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357007', 'tblTempUsageDetail_20' ) start [2025-01-29 14:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357007', 'tblTempUsageDetail_20' ) end [2025-01-29 14:42:26] Production.ERROR: pbx prc_insertCDR start [2025-01-29 14:42:26] Production.ERROR: pbx prc_insertCDR end [2025-01-29 14:42:26] Production.INFO: ==6682== Releasing lock... [2025-01-29 14:42:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 14:42:26] Production.INFO: 63 MB #Memory Used# [2025-01-29 14:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 11:43:05 [end_date_ymd] => 2025-01-29 14:43:05 [RateCDR] => 1 ) [2025-01-29 14:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 11:43:05' and `end` < '2025-01-29 14:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 14:43:22] Production.INFO: count ==4661 [2025-01-29 14:43:24] Production.ERROR: pbx CDR StartTime 2025-01-29 11:43:05 - End Time 2025-01-29 14:43:05 [2025-01-29 14:43:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 14:43:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357012', 'tblTempUsageDetail_20' ) start [2025-01-29 14:43:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357012', 'tblTempUsageDetail_20' ) end [2025-01-29 14:43:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357012', 'tblTempVendorCDR_20' ) start [2025-01-29 14:43:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357012', 'tblTempVendorCDR_20' ) end [2025-01-29 14:43:24] Production.INFO: ProcessCDR(1,14357012,1,1,2) [2025-01-29 14:43:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14357012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 14:43:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14357012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 14:43:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14357012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 14:43:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14357012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 14:43:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357012', 'tblTempUsageDetail_20' ) start [2025-01-29 14:43:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357012', 'tblTempUsageDetail_20' ) end [2025-01-29 14:43:29] Production.ERROR: pbx prc_insertCDR start [2025-01-29 14:43:29] Production.ERROR: pbx prc_insertCDR end [2025-01-29 14:43:29] Production.INFO: ==6758== Releasing lock... [2025-01-29 14:43:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 14:43:29] Production.INFO: 63 MB #Memory Used# [2025-01-29 14:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 11:44:05 [end_date_ymd] => 2025-01-29 14:44:05 [RateCDR] => 1 ) [2025-01-29 14:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 11:44:05' and `end` < '2025-01-29 14:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 14:44:24] Production.INFO: count ==4663 [2025-01-29 14:44:26] Production.ERROR: pbx CDR StartTime 2025-01-29 11:44:05 - End Time 2025-01-29 14:44:05 [2025-01-29 14:44:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 14:44:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357017', 'tblTempUsageDetail_20' ) start [2025-01-29 14:44:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357017', 'tblTempUsageDetail_20' ) end [2025-01-29 14:44:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357017', 'tblTempVendorCDR_20' ) start [2025-01-29 14:44:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357017', 'tblTempVendorCDR_20' ) end [2025-01-29 14:44:26] Production.INFO: ProcessCDR(1,14357017,1,1,2) [2025-01-29 14:44:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14357017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 14:44:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14357017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 14:44:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14357017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 14:44:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14357017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 14:44:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357017', 'tblTempUsageDetail_20' ) start [2025-01-29 14:44:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357017', 'tblTempUsageDetail_20' ) end [2025-01-29 14:44:31] Production.ERROR: pbx prc_insertCDR start [2025-01-29 14:44:31] Production.ERROR: pbx prc_insertCDR end [2025-01-29 14:44:31] Production.INFO: ==6838== Releasing lock... [2025-01-29 14:44:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 14:44:31] Production.INFO: 63 MB #Memory Used# [2025-01-29 14:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 11:45:06 [end_date_ymd] => 2025-01-29 14:45:06 [RateCDR] => 1 ) [2025-01-29 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-01-29 11:45:06' and `end` < '2025-01-29 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-01-29 14:45:27] Production.INFO: count ==4651 [2025-01-29 14:45:29] Production.ERROR: pbx CDR StartTime 2025-01-29 11:45:06 - End Time 2025-01-29 14:45:06 [2025-01-29 14:45:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 14:45:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357022', 'tblTempUsageDetail_20' ) start [2025-01-29 14:45:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357022', 'tblTempUsageDetail_20' ) end [2025-01-29 14:45:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357022', 'tblTempVendorCDR_20' ) start [2025-01-29 14:45:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357022', 'tblTempVendorCDR_20' ) end [2025-01-29 14:45:29] Production.INFO: ProcessCDR(1,14357022,1,1,2) [2025-01-29 14:45:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14357022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 14:45:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14357022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 14:45:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14357022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 14:45:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14357022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 14:45:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357022', 'tblTempUsageDetail_20' ) start [2025-01-29 14:45:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357022', 'tblTempUsageDetail_20' ) end [2025-01-29 14:45:34] Production.ERROR: pbx prc_insertCDR start [2025-01-29 14:45:34] Production.ERROR: pbx prc_insertCDR end [2025-01-29 14:45:34] Production.INFO: ==6912== Releasing lock... [2025-01-29 14:45:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 14:45:34] Production.INFO: 62.75 MB #Memory Used# [2025-01-29 14:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 11:46:05 [end_date_ymd] => 2025-01-29 14:46:05 [RateCDR] => 1 ) [2025-01-29 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-01-29 11:46:05' and `end` < '2025-01-29 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-01-29 14:46:19] Production.INFO: count ==4634 [2025-01-29 14:46:21] Production.ERROR: pbx CDR StartTime 2025-01-29 11:46:05 - End Time 2025-01-29 14:46:05 [2025-01-29 14:46:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 14:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357027', 'tblTempUsageDetail_20' ) start [2025-01-29 14:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357027', 'tblTempUsageDetail_20' ) end [2025-01-29 14:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357027', 'tblTempVendorCDR_20' ) start [2025-01-29 14:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357027', 'tblTempVendorCDR_20' ) end [2025-01-29 14:46:21] Production.INFO: ProcessCDR(1,14357027,1,1,2) [2025-01-29 14:46:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14357027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 14:46:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14357027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 14:46:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14357027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 14:46:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14357027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 14:46:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357027', 'tblTempUsageDetail_20' ) start [2025-01-29 14:46:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357027', 'tblTempUsageDetail_20' ) end [2025-01-29 14:46:26] Production.ERROR: pbx prc_insertCDR start [2025-01-29 14:46:26] Production.ERROR: pbx prc_insertCDR end [2025-01-29 14:46:26] Production.INFO: ==6982== Releasing lock... [2025-01-29 14:46:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 14:46:26] Production.INFO: 62.75 MB #Memory Used# [2025-01-29 14:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 11:47:05 [end_date_ymd] => 2025-01-29 14:47:05 [RateCDR] => 1 ) [2025-01-29 14:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 11:47:05' and `end` < '2025-01-29 14:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 14:47:19] Production.INFO: count ==4629 [2025-01-29 14:47:21] Production.ERROR: pbx CDR StartTime 2025-01-29 11:47:05 - End Time 2025-01-29 14:47:05 [2025-01-29 14:47:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 14:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357032', 'tblTempUsageDetail_20' ) start [2025-01-29 14:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357032', 'tblTempUsageDetail_20' ) end [2025-01-29 14:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357032', 'tblTempVendorCDR_20' ) start [2025-01-29 14:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357032', 'tblTempVendorCDR_20' ) end [2025-01-29 14:47:21] Production.INFO: ProcessCDR(1,14357032,1,1,2) [2025-01-29 14:47:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14357032,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 14:47:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14357032,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 14:47:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14357032,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 14:47:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14357032,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 14:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357032', 'tblTempUsageDetail_20' ) start [2025-01-29 14:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357032', 'tblTempUsageDetail_20' ) end [2025-01-29 14:47:26] Production.ERROR: pbx prc_insertCDR start [2025-01-29 14:47:26] Production.ERROR: pbx prc_insertCDR end [2025-01-29 14:47:26] Production.INFO: ==7060== Releasing lock... [2025-01-29 14:47:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 14:47:26] Production.INFO: 62.75 MB #Memory Used# [2025-01-29 14:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 11:48:05 [end_date_ymd] => 2025-01-29 14:48:05 [RateCDR] => 1 ) [2025-01-29 14:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 11:48:05' and `end` < '2025-01-29 14:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 14:48:18] Production.INFO: count ==4653 [2025-01-29 14:48:20] Production.ERROR: pbx CDR StartTime 2025-01-29 11:48:05 - End Time 2025-01-29 14:48:05 [2025-01-29 14:48:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 14:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357037', 'tblTempUsageDetail_20' ) start [2025-01-29 14:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357037', 'tblTempUsageDetail_20' ) end [2025-01-29 14:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357037', 'tblTempVendorCDR_20' ) start [2025-01-29 14:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357037', 'tblTempVendorCDR_20' ) end [2025-01-29 14:48:20] Production.INFO: ProcessCDR(1,14357037,1,1,2) [2025-01-29 14:48:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14357037,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 14:48:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14357037,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 14:48:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14357037,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 14:48:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14357037,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 14:48:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357037', 'tblTempUsageDetail_20' ) start [2025-01-29 14:48:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357037', 'tblTempUsageDetail_20' ) end [2025-01-29 14:48:25] Production.ERROR: pbx prc_insertCDR start [2025-01-29 14:48:25] Production.ERROR: pbx prc_insertCDR end [2025-01-29 14:48:25] Production.INFO: ==7133== Releasing lock... [2025-01-29 14:48:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 14:48:25] Production.INFO: 62.75 MB #Memory Used# [2025-01-29 14:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 11:49:05 [end_date_ymd] => 2025-01-29 14:49:05 [RateCDR] => 1 ) [2025-01-29 14:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 11:49:05' and `end` < '2025-01-29 14:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 14:49:19] Production.INFO: count ==4636 [2025-01-29 14:49:21] Production.ERROR: pbx CDR StartTime 2025-01-29 11:49:05 - End Time 2025-01-29 14:49:05 [2025-01-29 14:49:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 14:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357042', 'tblTempUsageDetail_20' ) start [2025-01-29 14:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357042', 'tblTempUsageDetail_20' ) end [2025-01-29 14:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357042', 'tblTempVendorCDR_20' ) start [2025-01-29 14:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357042', 'tblTempVendorCDR_20' ) end [2025-01-29 14:49:21] Production.INFO: ProcessCDR(1,14357042,1,1,2) [2025-01-29 14:49:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14357042,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 14:49:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14357042,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 14:49:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14357042,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 14:49:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14357042,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 14:49:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357042', 'tblTempUsageDetail_20' ) start [2025-01-29 14:49:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357042', 'tblTempUsageDetail_20' ) end [2025-01-29 14:49:26] Production.ERROR: pbx prc_insertCDR start [2025-01-29 14:49:26] Production.ERROR: pbx prc_insertCDR end [2025-01-29 14:49:26] Production.INFO: ==7207== Releasing lock... [2025-01-29 14:49:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 14:49:26] Production.INFO: 62.75 MB #Memory Used# [2025-01-29 14:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 11:50:05 [end_date_ymd] => 2025-01-29 14:50:05 [RateCDR] => 1 ) [2025-01-29 14:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 11:50:05' and `end` < '2025-01-29 14:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 14:50:22] Production.INFO: count ==4613 [2025-01-29 14:50:24] Production.ERROR: pbx CDR StartTime 2025-01-29 11:50:05 - End Time 2025-01-29 14:50:05 [2025-01-29 14:50:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 14:50:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357047', 'tblTempUsageDetail_20' ) start [2025-01-29 14:50:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357047', 'tblTempUsageDetail_20' ) end [2025-01-29 14:50:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357047', 'tblTempVendorCDR_20' ) start [2025-01-29 14:50:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357047', 'tblTempVendorCDR_20' ) end [2025-01-29 14:50:25] Production.INFO: ProcessCDR(1,14357047,1,1,2) [2025-01-29 14:50:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14357047,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 14:50:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14357047,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 14:50:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14357047,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 14:50:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14357047,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 14:50:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357047', 'tblTempUsageDetail_20' ) start [2025-01-29 14:50:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357047', 'tblTempUsageDetail_20' ) end [2025-01-29 14:50:30] Production.ERROR: pbx prc_insertCDR start [2025-01-29 14:50:30] Production.ERROR: pbx prc_insertCDR end [2025-01-29 14:50:30] Production.INFO: ==7289== Releasing lock... [2025-01-29 14:50:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 14:50:30] Production.INFO: 62.5 MB #Memory Used# [2025-01-29 14:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 11:51:05 [end_date_ymd] => 2025-01-29 14:51:05 [RateCDR] => 1 ) [2025-01-29 14:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 11:51:05' and `end` < '2025-01-29 14:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 14:51:19] Production.INFO: count ==4568 [2025-01-29 14:51:21] Production.ERROR: pbx CDR StartTime 2025-01-29 11:51:05 - End Time 2025-01-29 14:51:05 [2025-01-29 14:51:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 14:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357052', 'tblTempUsageDetail_20' ) start [2025-01-29 14:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357052', 'tblTempUsageDetail_20' ) end [2025-01-29 14:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357052', 'tblTempVendorCDR_20' ) start [2025-01-29 14:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357052', 'tblTempVendorCDR_20' ) end [2025-01-29 14:51:21] Production.INFO: ProcessCDR(1,14357052,1,1,2) [2025-01-29 14:51:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14357052,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 14:51:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14357052,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 14:51:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14357052,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 14:51:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14357052,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 14:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357052', 'tblTempUsageDetail_20' ) start [2025-01-29 14:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357052', 'tblTempUsageDetail_20' ) end [2025-01-29 14:51:26] Production.ERROR: pbx prc_insertCDR start [2025-01-29 14:51:26] Production.ERROR: pbx prc_insertCDR end [2025-01-29 14:51:26] Production.INFO: ==7369== Releasing lock... [2025-01-29 14:51:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 14:51:26] Production.INFO: 62.25 MB #Memory Used# [2025-01-29 14:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 11:52:06 [end_date_ymd] => 2025-01-29 14:52:06 [RateCDR] => 1 ) [2025-01-29 14:52:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 11:52:06' and `end` < '2025-01-29 14:52:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 14:52:19] Production.INFO: count ==4580 [2025-01-29 14:52:21] Production.ERROR: pbx CDR StartTime 2025-01-29 11:52:06 - End Time 2025-01-29 14:52:06 [2025-01-29 14:52:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 14:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357058', 'tblTempUsageDetail_20' ) start [2025-01-29 14:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357058', 'tblTempUsageDetail_20' ) end [2025-01-29 14:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357058', 'tblTempVendorCDR_20' ) start [2025-01-29 14:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357058', 'tblTempVendorCDR_20' ) end [2025-01-29 14:52:22] Production.INFO: ProcessCDR(1,14357058,1,1,2) [2025-01-29 14:52:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14357058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 14:52:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14357058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 14:52:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14357058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 14:52:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14357058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 14:52:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357058', 'tblTempUsageDetail_20' ) start [2025-01-29 14:52:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357058', 'tblTempUsageDetail_20' ) end [2025-01-29 14:52:26] Production.ERROR: pbx prc_insertCDR start [2025-01-29 14:52:26] Production.ERROR: pbx prc_insertCDR end [2025-01-29 14:52:26] Production.INFO: ==7439== Releasing lock... [2025-01-29 14:52:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 14:52:26] Production.INFO: 62.25 MB #Memory Used# [2025-01-29 14:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 11:53:05 [end_date_ymd] => 2025-01-29 14:53:05 [RateCDR] => 1 ) [2025-01-29 14:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 11:53:05' and `end` < '2025-01-29 14:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 14:53:20] Production.INFO: count ==4564 [2025-01-29 14:53:22] Production.ERROR: pbx CDR StartTime 2025-01-29 11:53:05 - End Time 2025-01-29 14:53:05 [2025-01-29 14:53:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 14:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357063', 'tblTempUsageDetail_20' ) start [2025-01-29 14:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357063', 'tblTempUsageDetail_20' ) end [2025-01-29 14:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357063', 'tblTempVendorCDR_20' ) start [2025-01-29 14:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357063', 'tblTempVendorCDR_20' ) end [2025-01-29 14:53:22] Production.INFO: ProcessCDR(1,14357063,1,1,2) [2025-01-29 14:53:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14357063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 14:53:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14357063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 14:53:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14357063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 14:53:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14357063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 14:53:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357063', 'tblTempUsageDetail_20' ) start [2025-01-29 14:53:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357063', 'tblTempUsageDetail_20' ) end [2025-01-29 14:53:27] Production.ERROR: pbx prc_insertCDR start [2025-01-29 14:53:27] Production.ERROR: pbx prc_insertCDR end [2025-01-29 14:53:27] Production.INFO: ==7509== Releasing lock... [2025-01-29 14:53:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 14:53:27] Production.INFO: 62.25 MB #Memory Used# [2025-01-29 14:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 11:54:06 [end_date_ymd] => 2025-01-29 14:54:06 [RateCDR] => 1 ) [2025-01-29 14:54:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 11:54:06' and `end` < '2025-01-29 14:54:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 14:54:26] Production.INFO: count ==4585 [2025-01-29 14:54:28] Production.ERROR: pbx CDR StartTime 2025-01-29 11:54:06 - End Time 2025-01-29 14:54:06 [2025-01-29 14:54:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 14:54:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357068', 'tblTempUsageDetail_20' ) start [2025-01-29 14:54:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357068', 'tblTempUsageDetail_20' ) end [2025-01-29 14:54:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357068', 'tblTempVendorCDR_20' ) start [2025-01-29 14:54:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357068', 'tblTempVendorCDR_20' ) end [2025-01-29 14:54:28] Production.INFO: ProcessCDR(1,14357068,1,1,2) [2025-01-29 14:54:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14357068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 14:54:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14357068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 14:54:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14357068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 14:54:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14357068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 14:54:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357068', 'tblTempUsageDetail_20' ) start [2025-01-29 14:54:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357068', 'tblTempUsageDetail_20' ) end [2025-01-29 14:54:33] Production.ERROR: pbx prc_insertCDR start [2025-01-29 14:54:33] Production.ERROR: pbx prc_insertCDR end [2025-01-29 14:54:33] Production.INFO: ==7620== Releasing lock... [2025-01-29 14:54:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 14:54:33] Production.INFO: 62.25 MB #Memory Used# [2025-01-29 14:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 11:55:05 [end_date_ymd] => 2025-01-29 14:55:05 [RateCDR] => 1 ) [2025-01-29 14:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 11:55:05' and `end` < '2025-01-29 14:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 14:55:31] Production.INFO: count ==4583 [2025-01-29 14:55:33] Production.ERROR: pbx CDR StartTime 2025-01-29 11:55:05 - End Time 2025-01-29 14:55:05 [2025-01-29 14:55:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 14:55:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357073', 'tblTempUsageDetail_20' ) start [2025-01-29 14:55:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357073', 'tblTempUsageDetail_20' ) end [2025-01-29 14:55:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357073', 'tblTempVendorCDR_20' ) start [2025-01-29 14:55:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357073', 'tblTempVendorCDR_20' ) end [2025-01-29 14:55:33] Production.INFO: ProcessCDR(1,14357073,1,1,2) [2025-01-29 14:55:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14357073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 14:55:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14357073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 14:55:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14357073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 14:55:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14357073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 14:55:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357073', 'tblTempUsageDetail_20' ) start [2025-01-29 14:55:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357073', 'tblTempUsageDetail_20' ) end [2025-01-29 14:55:39] Production.ERROR: pbx prc_insertCDR start [2025-01-29 14:55:39] Production.ERROR: pbx prc_insertCDR end [2025-01-29 14:55:39] Production.INFO: ==7696== Releasing lock... [2025-01-29 14:55:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 14:55:39] Production.INFO: 62.25 MB #Memory Used# [2025-01-29 14:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 11:56:06 [end_date_ymd] => 2025-01-29 14:56:06 [RateCDR] => 1 ) [2025-01-29 14:56:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 11:56:06' and `end` < '2025-01-29 14:56:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 14:56:26] Production.INFO: count ==4577 [2025-01-29 14:56:28] Production.ERROR: pbx CDR StartTime 2025-01-29 11:56:06 - End Time 2025-01-29 14:56:06 [2025-01-29 14:56:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 14:56:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357078', 'tblTempUsageDetail_20' ) start [2025-01-29 14:56:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357078', 'tblTempUsageDetail_20' ) end [2025-01-29 14:56:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357078', 'tblTempVendorCDR_20' ) start [2025-01-29 14:56:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357078', 'tblTempVendorCDR_20' ) end [2025-01-29 14:56:28] Production.INFO: ProcessCDR(1,14357078,1,1,2) [2025-01-29 14:56:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14357078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 14:56:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14357078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 14:56:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14357078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 14:56:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14357078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 14:56:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357078', 'tblTempUsageDetail_20' ) start [2025-01-29 14:56:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357078', 'tblTempUsageDetail_20' ) end [2025-01-29 14:56:33] Production.ERROR: pbx prc_insertCDR start [2025-01-29 14:56:33] Production.ERROR: pbx prc_insertCDR end [2025-01-29 14:56:33] Production.INFO: ==7770== Releasing lock... [2025-01-29 14:56:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 14:56:33] Production.INFO: 62.25 MB #Memory Used# [2025-01-29 14:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 11:57:05 [end_date_ymd] => 2025-01-29 14:57:05 [RateCDR] => 1 ) [2025-01-29 14:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 11:57:05' and `end` < '2025-01-29 14:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 14:57:22] Production.INFO: count ==4567 [2025-01-29 14:57:24] Production.ERROR: pbx CDR StartTime 2025-01-29 11:57:05 - End Time 2025-01-29 14:57:05 [2025-01-29 14:57:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 14:57:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357083', 'tblTempUsageDetail_20' ) start [2025-01-29 14:57:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357083', 'tblTempUsageDetail_20' ) end [2025-01-29 14:57:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357083', 'tblTempVendorCDR_20' ) start [2025-01-29 14:57:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357083', 'tblTempVendorCDR_20' ) end [2025-01-29 14:57:24] Production.INFO: ProcessCDR(1,14357083,1,1,2) [2025-01-29 14:57:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14357083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 14:57:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14357083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 14:57:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14357083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 14:57:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14357083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 14:57:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357083', 'tblTempUsageDetail_20' ) start [2025-01-29 14:57:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357083', 'tblTempUsageDetail_20' ) end [2025-01-29 14:57:29] Production.ERROR: pbx prc_insertCDR start [2025-01-29 14:57:29] Production.ERROR: pbx prc_insertCDR end [2025-01-29 14:57:29] Production.INFO: ==7841== Releasing lock... [2025-01-29 14:57:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 14:57:29] Production.INFO: 62.25 MB #Memory Used# [2025-01-29 14:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 11:58:06 [end_date_ymd] => 2025-01-29 14:58:06 [RateCDR] => 1 ) [2025-01-29 14:58:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 11:58:06' and `end` < '2025-01-29 14:58:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 14:58:24] Production.INFO: count ==4559 [2025-01-29 14:58:26] Production.ERROR: pbx CDR StartTime 2025-01-29 11:58:06 - End Time 2025-01-29 14:58:06 [2025-01-29 14:58:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 14:58:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357088', 'tblTempUsageDetail_20' ) start [2025-01-29 14:58:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357088', 'tblTempUsageDetail_20' ) end [2025-01-29 14:58:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357088', 'tblTempVendorCDR_20' ) start [2025-01-29 14:58:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357088', 'tblTempVendorCDR_20' ) end [2025-01-29 14:58:26] Production.INFO: ProcessCDR(1,14357088,1,1,2) [2025-01-29 14:58:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14357088,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 14:58:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14357088,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 14:58:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14357088,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 14:58:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14357088,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 14:58:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357088', 'tblTempUsageDetail_20' ) start [2025-01-29 14:58:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357088', 'tblTempUsageDetail_20' ) end [2025-01-29 14:58:31] Production.ERROR: pbx prc_insertCDR start [2025-01-29 14:58:31] Production.ERROR: pbx prc_insertCDR end [2025-01-29 14:58:31] Production.INFO: ==7912== Releasing lock... [2025-01-29 14:58:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 14:58:31] Production.INFO: 62.25 MB #Memory Used# [2025-01-29 14:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 11:59:05 [end_date_ymd] => 2025-01-29 14:59:05 [RateCDR] => 1 ) [2025-01-29 14:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 11:59:05' and `end` < '2025-01-29 14:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 14:59:21] Production.INFO: count ==4558 [2025-01-29 14:59:23] Production.ERROR: pbx CDR StartTime 2025-01-29 11:59:05 - End Time 2025-01-29 14:59:05 [2025-01-29 14:59:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 14:59:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357093', 'tblTempUsageDetail_20' ) start [2025-01-29 14:59:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357093', 'tblTempUsageDetail_20' ) end [2025-01-29 14:59:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357093', 'tblTempVendorCDR_20' ) start [2025-01-29 14:59:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357093', 'tblTempVendorCDR_20' ) end [2025-01-29 14:59:23] Production.INFO: ProcessCDR(1,14357093,1,1,2) [2025-01-29 14:59:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14357093,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 14:59:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14357093,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 14:59:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14357093,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 14:59:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14357093,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 14:59:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357093', 'tblTempUsageDetail_20' ) start [2025-01-29 14:59:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357093', 'tblTempUsageDetail_20' ) end [2025-01-29 14:59:28] Production.ERROR: pbx prc_insertCDR start [2025-01-29 14:59:28] Production.ERROR: pbx prc_insertCDR end [2025-01-29 14:59:28] Production.INFO: ==7982== Releasing lock... [2025-01-29 14:59:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 14:59:28] Production.INFO: 62 MB #Memory Used# [2025-01-29 15:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 12:00:06 [end_date_ymd] => 2025-01-29 15:00:06 [RateCDR] => 1 ) [2025-01-29 15:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 12:00:06' and `end` < '2025-01-29 15:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 15:00:20] Production.INFO: count ==4548 [2025-01-29 15:00:22] Production.ERROR: pbx CDR StartTime 2025-01-29 12:00:06 - End Time 2025-01-29 15:00:06 [2025-01-29 15:00:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 15:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357098', 'tblTempUsageDetail_20' ) start [2025-01-29 15:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357098', 'tblTempUsageDetail_20' ) end [2025-01-29 15:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357098', 'tblTempVendorCDR_20' ) start [2025-01-29 15:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357098', 'tblTempVendorCDR_20' ) end [2025-01-29 15:00:22] Production.INFO: ProcessCDR(1,14357098,1,1,2) [2025-01-29 15:00:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14357098,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 15:00:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14357098,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 15:00:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14357098,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 15:00:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14357098,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 15:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357098', 'tblTempUsageDetail_20' ) start [2025-01-29 15:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357098', 'tblTempUsageDetail_20' ) end [2025-01-29 15:00:27] Production.ERROR: pbx prc_insertCDR start [2025-01-29 15:00:27] Production.ERROR: pbx prc_insertCDR end [2025-01-29 15:00:27] Production.INFO: ==8057== Releasing lock... [2025-01-29 15:00:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 15:00:27] Production.INFO: 62 MB #Memory Used# [2025-01-29 15:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 12:01:05 [end_date_ymd] => 2025-01-29 15:01:05 [RateCDR] => 1 ) [2025-01-29 15:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 12:01:05' and `end` < '2025-01-29 15:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 15:01:26] Production.INFO: count ==4545 [2025-01-29 15:01:28] Production.ERROR: pbx CDR StartTime 2025-01-29 12:01:05 - End Time 2025-01-29 15:01:05 [2025-01-29 15:01:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 15:01:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357104', 'tblTempUsageDetail_20' ) start [2025-01-29 15:01:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357104', 'tblTempUsageDetail_20' ) end [2025-01-29 15:01:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357104', 'tblTempVendorCDR_20' ) start [2025-01-29 15:01:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357104', 'tblTempVendorCDR_20' ) end [2025-01-29 15:01:28] Production.INFO: ProcessCDR(1,14357104,1,1,2) [2025-01-29 15:01:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14357104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 15:01:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14357104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 15:01:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14357104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 15:01:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14357104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 15:01:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357104', 'tblTempUsageDetail_20' ) start [2025-01-29 15:01:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357104', 'tblTempUsageDetail_20' ) end [2025-01-29 15:01:33] Production.ERROR: pbx prc_insertCDR start [2025-01-29 15:01:33] Production.ERROR: pbx prc_insertCDR end [2025-01-29 15:01:33] Production.INFO: ==8143== Releasing lock... [2025-01-29 15:01:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 15:01:33] Production.INFO: 62 MB #Memory Used# [2025-01-29 15:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 12:02:06 [end_date_ymd] => 2025-01-29 15:02:06 [RateCDR] => 1 ) [2025-01-29 15:02:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 12:02:06' and `end` < '2025-01-29 15:02:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 15:02:25] Production.INFO: count ==4542 [2025-01-29 15:02:27] Production.ERROR: pbx CDR StartTime 2025-01-29 12:02:06 - End Time 2025-01-29 15:02:06 [2025-01-29 15:02:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 15:02:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357109', 'tblTempUsageDetail_20' ) start [2025-01-29 15:02:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357109', 'tblTempUsageDetail_20' ) end [2025-01-29 15:02:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357109', 'tblTempVendorCDR_20' ) start [2025-01-29 15:02:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357109', 'tblTempVendorCDR_20' ) end [2025-01-29 15:02:27] Production.INFO: ProcessCDR(1,14357109,1,1,2) [2025-01-29 15:02:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14357109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 15:02:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14357109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 15:02:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14357109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 15:02:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14357109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 15:02:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357109', 'tblTempUsageDetail_20' ) start [2025-01-29 15:02:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357109', 'tblTempUsageDetail_20' ) end [2025-01-29 15:02:32] Production.ERROR: pbx prc_insertCDR start [2025-01-29 15:02:32] Production.ERROR: pbx prc_insertCDR end [2025-01-29 15:02:32] Production.INFO: ==8295== Releasing lock... [2025-01-29 15:02:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 15:02:32] Production.INFO: 62 MB #Memory Used# [2025-01-29 15:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 12:03:06 [end_date_ymd] => 2025-01-29 15:03:06 [RateCDR] => 1 ) [2025-01-29 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-01-29 12:03:06' and `end` < '2025-01-29 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-01-29 15:03:22] Production.INFO: count ==4537 [2025-01-29 15:03:25] Production.ERROR: pbx CDR StartTime 2025-01-29 12:03:06 - End Time 2025-01-29 15:03:06 [2025-01-29 15:03:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 15:03:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357114', 'tblTempUsageDetail_20' ) start [2025-01-29 15:03:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357114', 'tblTempUsageDetail_20' ) end [2025-01-29 15:03:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357114', 'tblTempVendorCDR_20' ) start [2025-01-29 15:03:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357114', 'tblTempVendorCDR_20' ) end [2025-01-29 15:03:25] Production.INFO: ProcessCDR(1,14357114,1,1,2) [2025-01-29 15:03:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14357114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 15:03:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14357114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 15:03:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14357114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 15:03:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14357114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 15:03:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357114', 'tblTempUsageDetail_20' ) start [2025-01-29 15:03:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357114', 'tblTempUsageDetail_20' ) end [2025-01-29 15:03:30] Production.ERROR: pbx prc_insertCDR start [2025-01-29 15:03:30] Production.ERROR: pbx prc_insertCDR end [2025-01-29 15:03:30] Production.INFO: ==8373== Releasing lock... [2025-01-29 15:03:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 15:03:30] Production.INFO: 62 MB #Memory Used# [2025-01-29 15:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 12:04:06 [end_date_ymd] => 2025-01-29 15:04:06 [RateCDR] => 1 ) [2025-01-29 15:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 12:04:06' and `end` < '2025-01-29 15:04:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 15:04:20] Production.INFO: count ==4518 [2025-01-29 15:04:22] Production.ERROR: pbx CDR StartTime 2025-01-29 12:04:06 - End Time 2025-01-29 15:04:06 [2025-01-29 15:04:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 15:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357119', 'tblTempUsageDetail_20' ) start [2025-01-29 15:04:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357119', 'tblTempUsageDetail_20' ) end [2025-01-29 15:04:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357119', 'tblTempVendorCDR_20' ) start [2025-01-29 15:04:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357119', 'tblTempVendorCDR_20' ) end [2025-01-29 15:04:23] Production.INFO: ProcessCDR(1,14357119,1,1,2) [2025-01-29 15:04:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14357119,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 15:04:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14357119,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 15:04:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14357119,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 15:04:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14357119,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 15:04:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357119', 'tblTempUsageDetail_20' ) start [2025-01-29 15:04:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357119', 'tblTempUsageDetail_20' ) end [2025-01-29 15:04:28] Production.ERROR: pbx prc_insertCDR start [2025-01-29 15:04:28] Production.ERROR: pbx prc_insertCDR end [2025-01-29 15:04:28] Production.INFO: ==8446== Releasing lock... [2025-01-29 15:04:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 15:04:28] Production.INFO: 62 MB #Memory Used# [2025-01-29 15:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 12:05:05 [end_date_ymd] => 2025-01-29 15:05:05 [RateCDR] => 1 ) [2025-01-29 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-01-29 12:05:05' and `end` < '2025-01-29 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-01-29 15:05:30] Production.INFO: count ==4537 [2025-01-29 15:05:32] Production.ERROR: pbx CDR StartTime 2025-01-29 12:05:05 - End Time 2025-01-29 15:05:05 [2025-01-29 15:05:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 15:05:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357124', 'tblTempUsageDetail_20' ) start [2025-01-29 15:05:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357124', 'tblTempUsageDetail_20' ) end [2025-01-29 15:05:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357124', 'tblTempVendorCDR_20' ) start [2025-01-29 15:05:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357124', 'tblTempVendorCDR_20' ) end [2025-01-29 15:05:32] Production.INFO: ProcessCDR(1,14357124,1,1,2) [2025-01-29 15:05:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14357124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 15:05:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14357124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 15:05:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14357124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 15:05:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14357124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 15:05:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357124', 'tblTempUsageDetail_20' ) start [2025-01-29 15:05:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357124', 'tblTempUsageDetail_20' ) end [2025-01-29 15:05:37] Production.ERROR: pbx prc_insertCDR start [2025-01-29 15:05:37] Production.ERROR: pbx prc_insertCDR end [2025-01-29 15:05:37] Production.INFO: ==8594== Releasing lock... [2025-01-29 15:05:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 15:05:37] Production.INFO: 62 MB #Memory Used# [2025-01-29 15:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 12:06:06 [end_date_ymd] => 2025-01-29 15:06:06 [RateCDR] => 1 ) [2025-01-29 15:06:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 12:06:06' and `end` < '2025-01-29 15:06:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 15:06:25] Production.INFO: count ==4537 [2025-01-29 15:06:27] Production.ERROR: pbx CDR StartTime 2025-01-29 12:06:06 - End Time 2025-01-29 15:06:06 [2025-01-29 15:06:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 15:06:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357129', 'tblTempUsageDetail_20' ) start [2025-01-29 15:06:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357129', 'tblTempUsageDetail_20' ) end [2025-01-29 15:06:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357129', 'tblTempVendorCDR_20' ) start [2025-01-29 15:06:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357129', 'tblTempVendorCDR_20' ) end [2025-01-29 15:06:27] Production.INFO: ProcessCDR(1,14357129,1,1,2) [2025-01-29 15:06:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14357129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 15:06:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14357129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 15:06:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14357129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 15:06:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14357129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 15:06:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357129', 'tblTempUsageDetail_20' ) start [2025-01-29 15:06:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357129', 'tblTempUsageDetail_20' ) end [2025-01-29 15:06:32] Production.ERROR: pbx prc_insertCDR start [2025-01-29 15:06:32] Production.ERROR: pbx prc_insertCDR end [2025-01-29 15:06:32] Production.INFO: ==8671== Releasing lock... [2025-01-29 15:06:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 15:06:32] Production.INFO: 62 MB #Memory Used# [2025-01-29 15:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 12:07:05 [end_date_ymd] => 2025-01-29 15:07:05 [RateCDR] => 1 ) [2025-01-29 15:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 12:07:05' and `end` < '2025-01-29 15:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 15:07:23] Production.INFO: count ==4537 [2025-01-29 15:07:25] Production.ERROR: pbx CDR StartTime 2025-01-29 12:07:05 - End Time 2025-01-29 15:07:05 [2025-01-29 15:07:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 15:07:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357134', 'tblTempUsageDetail_20' ) start [2025-01-29 15:07:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357134', 'tblTempUsageDetail_20' ) end [2025-01-29 15:07:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357134', 'tblTempVendorCDR_20' ) start [2025-01-29 15:07:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357134', 'tblTempVendorCDR_20' ) end [2025-01-29 15:07:25] Production.INFO: ProcessCDR(1,14357134,1,1,2) [2025-01-29 15:07:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14357134,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 15:07:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14357134,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 15:07:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14357134,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 15:07:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14357134,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 15:07:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357134', 'tblTempUsageDetail_20' ) start [2025-01-29 15:07:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357134', 'tblTempUsageDetail_20' ) end [2025-01-29 15:07:30] Production.ERROR: pbx prc_insertCDR start [2025-01-29 15:07:30] Production.ERROR: pbx prc_insertCDR end [2025-01-29 15:07:30] Production.INFO: ==8743== Releasing lock... [2025-01-29 15:07:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 15:07:30] Production.INFO: 62 MB #Memory Used# [2025-01-29 15:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 12:08:05 [end_date_ymd] => 2025-01-29 15:08:05 [RateCDR] => 1 ) [2025-01-29 15:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 12:08:05' and `end` < '2025-01-29 15:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 15:08:26] Production.INFO: count ==4551 [2025-01-29 15:08:28] Production.ERROR: pbx CDR StartTime 2025-01-29 12:08:05 - End Time 2025-01-29 15:08:05 [2025-01-29 15:08:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 15:08:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357139', 'tblTempUsageDetail_20' ) start [2025-01-29 15:08:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357139', 'tblTempUsageDetail_20' ) end [2025-01-29 15:08:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357139', 'tblTempVendorCDR_20' ) start [2025-01-29 15:08:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357139', 'tblTempVendorCDR_20' ) end [2025-01-29 15:08:28] Production.INFO: ProcessCDR(1,14357139,1,1,2) [2025-01-29 15:08:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14357139,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 15:08:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14357139,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 15:08:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14357139,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 15:08:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14357139,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 15:08:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357139', 'tblTempUsageDetail_20' ) start [2025-01-29 15:08:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357139', 'tblTempUsageDetail_20' ) end [2025-01-29 15:08:33] Production.ERROR: pbx prc_insertCDR start [2025-01-29 15:08:33] Production.ERROR: pbx prc_insertCDR end [2025-01-29 15:08:33] Production.INFO: ==8904== Releasing lock... [2025-01-29 15:08:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 15:08:33] Production.INFO: 62 MB #Memory Used# [2025-01-29 15:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 12:09:05 [end_date_ymd] => 2025-01-29 15:09:05 [RateCDR] => 1 ) [2025-01-29 15:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 12:09:05' and `end` < '2025-01-29 15:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 15:09:20] Production.INFO: count ==4560 [2025-01-29 15:09:22] Production.ERROR: pbx CDR StartTime 2025-01-29 12:09:05 - End Time 2025-01-29 15:09:05 [2025-01-29 15:09:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 15:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357143', 'tblTempUsageDetail_20' ) start [2025-01-29 15:09:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357143', 'tblTempUsageDetail_20' ) end [2025-01-29 15:09:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357143', 'tblTempVendorCDR_20' ) start [2025-01-29 15:09:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357143', 'tblTempVendorCDR_20' ) end [2025-01-29 15:09:23] Production.INFO: ProcessCDR(1,14357143,1,1,2) [2025-01-29 15:09:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14357143,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 15:09:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14357143,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 15:09:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14357143,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 15:09:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14357143,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 15:09:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357143', 'tblTempUsageDetail_20' ) start [2025-01-29 15:09:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357143', 'tblTempUsageDetail_20' ) end [2025-01-29 15:09:28] Production.ERROR: pbx prc_insertCDR start [2025-01-29 15:09:28] Production.ERROR: pbx prc_insertCDR end [2025-01-29 15:09:28] Production.INFO: ==9019== Releasing lock... [2025-01-29 15:09:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 15:09:28] Production.INFO: 62.25 MB #Memory Used# [2025-01-29 15:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 12:10:06 [end_date_ymd] => 2025-01-29 15:10:06 [RateCDR] => 1 ) [2025-01-29 15:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 12:10:06' and `end` < '2025-01-29 15:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 15:10:23] Production.INFO: count ==4584 [2025-01-29 15:10:25] Production.ERROR: pbx CDR StartTime 2025-01-29 12:10:06 - End Time 2025-01-29 15:10:06 [2025-01-29 15:10:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 15:10:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357150', 'tblTempUsageDetail_20' ) start [2025-01-29 15:10:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357150', 'tblTempUsageDetail_20' ) end [2025-01-29 15:10:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357150', 'tblTempVendorCDR_20' ) start [2025-01-29 15:10:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357150', 'tblTempVendorCDR_20' ) end [2025-01-29 15:10:26] Production.INFO: ProcessCDR(1,14357150,1,1,2) [2025-01-29 15:10:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14357150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 15:10:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14357150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 15:10:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14357150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 15:10:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14357150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 15:10:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357150', 'tblTempUsageDetail_20' ) start [2025-01-29 15:10:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357150', 'tblTempUsageDetail_20' ) end [2025-01-29 15:10:31] Production.ERROR: pbx prc_insertCDR start [2025-01-29 15:10:31] Production.ERROR: pbx prc_insertCDR end [2025-01-29 15:10:31] Production.INFO: ==9096== Releasing lock... [2025-01-29 15:10:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 15:10:31] Production.INFO: 62.25 MB #Memory Used# [2025-01-29 15:11:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 12:11:04 [end_date_ymd] => 2025-01-29 15:11:04 [RateCDR] => 1 ) [2025-01-29 15:11:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 12:11:04' and `end` < '2025-01-29 15:11:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 15:11:24] Production.INFO: count ==4661 [2025-01-29 15:11:26] Production.ERROR: pbx CDR StartTime 2025-01-29 12:11:04 - End Time 2025-01-29 15:11:04 [2025-01-29 15:11:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 15:11:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357155', 'tblTempUsageDetail_20' ) start [2025-01-29 15:11:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357155', 'tblTempUsageDetail_20' ) end [2025-01-29 15:11:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357155', 'tblTempVendorCDR_20' ) start [2025-01-29 15:11:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357155', 'tblTempVendorCDR_20' ) end [2025-01-29 15:11:26] Production.INFO: ProcessCDR(1,14357155,1,1,2) [2025-01-29 15:11:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14357155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 15:11:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14357155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 15:11:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14357155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 15:11:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14357155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 15:11:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357155', 'tblTempUsageDetail_20' ) start [2025-01-29 15:11:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357155', 'tblTempUsageDetail_20' ) end [2025-01-29 15:11:31] Production.ERROR: pbx prc_insertCDR start [2025-01-29 15:11:32] Production.ERROR: pbx prc_insertCDR end [2025-01-29 15:11:32] Production.INFO: ==9171== Releasing lock... [2025-01-29 15:11:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 15:11:32] Production.INFO: 63 MB #Memory Used# [2025-01-29 15:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 12:12:05 [end_date_ymd] => 2025-01-29 15:12:05 [RateCDR] => 1 ) [2025-01-29 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-01-29 12:12:05' and `end` < '2025-01-29 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-01-29 15:12:21] Production.INFO: count ==4674 [2025-01-29 15:12:23] Production.ERROR: pbx CDR StartTime 2025-01-29 12:12:05 - End Time 2025-01-29 15:12:05 [2025-01-29 15:12:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 15:12:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357160', 'tblTempUsageDetail_20' ) start [2025-01-29 15:12:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357160', 'tblTempUsageDetail_20' ) end [2025-01-29 15:12:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357160', 'tblTempVendorCDR_20' ) start [2025-01-29 15:12:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357160', 'tblTempVendorCDR_20' ) end [2025-01-29 15:12:24] Production.INFO: ProcessCDR(1,14357160,1,1,2) [2025-01-29 15:12:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14357160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 15:12:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14357160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 15:12:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14357160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 15:12:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14357160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 15:12:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357160', 'tblTempUsageDetail_20' ) start [2025-01-29 15:12:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357160', 'tblTempUsageDetail_20' ) end [2025-01-29 15:12:28] Production.ERROR: pbx prc_insertCDR start [2025-01-29 15:12:28] Production.ERROR: pbx prc_insertCDR end [2025-01-29 15:12:28] Production.INFO: ==9326== Releasing lock... [2025-01-29 15:12:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 15:12:28] Production.INFO: 63 MB #Memory Used# [2025-01-29 15:13:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 12:13:04 [end_date_ymd] => 2025-01-29 15:13:04 [RateCDR] => 1 ) [2025-01-29 15:13:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 12:13:04' and `end` < '2025-01-29 15:13:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 15:13:31] Production.INFO: count ==4666 [2025-01-29 15:13:33] Production.ERROR: pbx CDR StartTime 2025-01-29 12:13:04 - End Time 2025-01-29 15:13:04 [2025-01-29 15:13:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 15:13:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357165', 'tblTempUsageDetail_20' ) start [2025-01-29 15:13:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357165', 'tblTempUsageDetail_20' ) end [2025-01-29 15:13:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357165', 'tblTempVendorCDR_20' ) start [2025-01-29 15:13:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357165', 'tblTempVendorCDR_20' ) end [2025-01-29 15:13:33] Production.INFO: ProcessCDR(1,14357165,1,1,2) [2025-01-29 15:13:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14357165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 15:13:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14357165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 15:13:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14357165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 15:13:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14357165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 15:13:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357165', 'tblTempUsageDetail_20' ) start [2025-01-29 15:13:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357165', 'tblTempUsageDetail_20' ) end [2025-01-29 15:13:38] Production.ERROR: pbx prc_insertCDR start [2025-01-29 15:13:38] Production.ERROR: pbx prc_insertCDR end [2025-01-29 15:13:38] Production.INFO: ==9401== Releasing lock... [2025-01-29 15:13:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 15:13:38] Production.INFO: 63 MB #Memory Used# [2025-01-29 15:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 12:14:05 [end_date_ymd] => 2025-01-29 15:14:05 [RateCDR] => 1 ) [2025-01-29 15:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 12:14:05' and `end` < '2025-01-29 15:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 15:14:23] Production.INFO: count ==4689 [2025-01-29 15:14:25] Production.ERROR: pbx CDR StartTime 2025-01-29 12:14:05 - End Time 2025-01-29 15:14:05 [2025-01-29 15:14:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 15:14:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357170', 'tblTempUsageDetail_20' ) start [2025-01-29 15:14:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357170', 'tblTempUsageDetail_20' ) end [2025-01-29 15:14:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357170', 'tblTempVendorCDR_20' ) start [2025-01-29 15:14:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357170', 'tblTempVendorCDR_20' ) end [2025-01-29 15:14:26] Production.INFO: ProcessCDR(1,14357170,1,1,2) [2025-01-29 15:14:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14357170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 15:14:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14357170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 15:14:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14357170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 15:14:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14357170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 15:14:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357170', 'tblTempUsageDetail_20' ) start [2025-01-29 15:14:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357170', 'tblTempUsageDetail_20' ) end [2025-01-29 15:14:31] Production.ERROR: pbx prc_insertCDR start [2025-01-29 15:14:31] Production.ERROR: pbx prc_insertCDR end [2025-01-29 15:14:31] Production.INFO: ==9475== Releasing lock... [2025-01-29 15:14:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 15:14:31] Production.INFO: 63 MB #Memory Used# [2025-01-29 15:15:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 12:15:04 [end_date_ymd] => 2025-01-29 15:15:04 [RateCDR] => 1 ) [2025-01-29 15:15:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 12:15:04' and `end` < '2025-01-29 15:15:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 15:15:25] Production.INFO: count ==4741 [2025-01-29 15:15:27] Production.ERROR: pbx CDR StartTime 2025-01-29 12:15:04 - End Time 2025-01-29 15:15:04 [2025-01-29 15:15:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 15:15:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357175', 'tblTempUsageDetail_20' ) start [2025-01-29 15:15:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357175', 'tblTempUsageDetail_20' ) end [2025-01-29 15:15:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357175', 'tblTempVendorCDR_20' ) start [2025-01-29 15:15:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357175', 'tblTempVendorCDR_20' ) end [2025-01-29 15:15:27] Production.INFO: ProcessCDR(1,14357175,1,1,2) [2025-01-29 15:15:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14357175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 15:15:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14357175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 15:15:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14357175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 15:15:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14357175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 15:15:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357175', 'tblTempUsageDetail_20' ) start [2025-01-29 15:15:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357175', 'tblTempUsageDetail_20' ) end [2025-01-29 15:15:32] Production.ERROR: pbx prc_insertCDR start [2025-01-29 15:15:32] Production.ERROR: pbx prc_insertCDR end [2025-01-29 15:15:32] Production.INFO: ==9627== Releasing lock... [2025-01-29 15:15:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 15:15:32] Production.INFO: 63.5 MB #Memory Used# [2025-01-29 15:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 12:16:05 [end_date_ymd] => 2025-01-29 15:16:05 [RateCDR] => 1 ) [2025-01-29 15:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 12:16:05' and `end` < '2025-01-29 15:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 15:16:26] Production.INFO: count ==4745 [2025-01-29 15:16:28] Production.ERROR: pbx CDR StartTime 2025-01-29 12:16:05 - End Time 2025-01-29 15:16:05 [2025-01-29 15:16:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 15:16:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357180', 'tblTempUsageDetail_20' ) start [2025-01-29 15:16:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357180', 'tblTempUsageDetail_20' ) end [2025-01-29 15:16:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357180', 'tblTempVendorCDR_20' ) start [2025-01-29 15:16:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357180', 'tblTempVendorCDR_20' ) end [2025-01-29 15:16:28] Production.INFO: ProcessCDR(1,14357180,1,1,2) [2025-01-29 15:16:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14357180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 15:16:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14357180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 15:16:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14357180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 15:16:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14357180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 15:16:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357180', 'tblTempUsageDetail_20' ) start [2025-01-29 15:16:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357180', 'tblTempUsageDetail_20' ) end [2025-01-29 15:16:33] Production.ERROR: pbx prc_insertCDR start [2025-01-29 15:16:33] Production.ERROR: pbx prc_insertCDR end [2025-01-29 15:16:33] Production.INFO: ==9703== Releasing lock... [2025-01-29 15:16:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 15:16:33] Production.INFO: 63.5 MB #Memory Used# [2025-01-29 15:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 12:17:06 [end_date_ymd] => 2025-01-29 15:17:06 [RateCDR] => 1 ) [2025-01-29 15:17:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 12:17:06' and `end` < '2025-01-29 15:17:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 15:17:20] Production.INFO: count ==4738 [2025-01-29 15:17:22] Production.ERROR: pbx CDR StartTime 2025-01-29 12:17:06 - End Time 2025-01-29 15:17:06 [2025-01-29 15:17:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 15:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357185', 'tblTempUsageDetail_20' ) start [2025-01-29 15:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357185', 'tblTempUsageDetail_20' ) end [2025-01-29 15:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357185', 'tblTempVendorCDR_20' ) start [2025-01-29 15:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357185', 'tblTempVendorCDR_20' ) end [2025-01-29 15:17:22] Production.INFO: ProcessCDR(1,14357185,1,1,2) [2025-01-29 15:17:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14357185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 15:17:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14357185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 15:17:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14357185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 15:17:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14357185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 15:17:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357185', 'tblTempUsageDetail_20' ) start [2025-01-29 15:17:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357185', 'tblTempUsageDetail_20' ) end [2025-01-29 15:17:27] Production.ERROR: pbx prc_insertCDR start [2025-01-29 15:17:28] Production.ERROR: pbx prc_insertCDR end [2025-01-29 15:17:28] Production.INFO: ==9774== Releasing lock... [2025-01-29 15:17:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 15:17:28] Production.INFO: 63.5 MB #Memory Used# [2025-01-29 15:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 12:18:05 [end_date_ymd] => 2025-01-29 15:18:05 [RateCDR] => 1 ) [2025-01-29 15:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 12:18:05' and `end` < '2025-01-29 15:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 15:18:19] Production.INFO: count ==4758 [2025-01-29 15:18:22] Production.ERROR: pbx CDR StartTime 2025-01-29 12:18:05 - End Time 2025-01-29 15:18:05 [2025-01-29 15:18:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 15:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357190', 'tblTempUsageDetail_20' ) start [2025-01-29 15:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357190', 'tblTempUsageDetail_20' ) end [2025-01-29 15:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357190', 'tblTempVendorCDR_20' ) start [2025-01-29 15:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357190', 'tblTempVendorCDR_20' ) end [2025-01-29 15:18:22] Production.INFO: ProcessCDR(1,14357190,1,1,2) [2025-01-29 15:18:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14357190,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 15:18:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14357190,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 15:18:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14357190,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 15:18:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14357190,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 15:18:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357190', 'tblTempUsageDetail_20' ) start [2025-01-29 15:18:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357190', 'tblTempUsageDetail_20' ) end [2025-01-29 15:18:26] Production.ERROR: pbx prc_insertCDR start [2025-01-29 15:18:26] Production.ERROR: pbx prc_insertCDR end [2025-01-29 15:18:26] Production.INFO: ==9850== Releasing lock... [2025-01-29 15:18:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 15:18:26] Production.INFO: 63.5 MB #Memory Used# [2025-01-29 15:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 12:19:05 [end_date_ymd] => 2025-01-29 15:19:05 [RateCDR] => 1 ) [2025-01-29 15:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 12:19:05' and `end` < '2025-01-29 15:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 15:19:22] Production.INFO: count ==4775 [2025-01-29 15:19:24] Production.ERROR: pbx CDR StartTime 2025-01-29 12:19:05 - End Time 2025-01-29 15:19:05 [2025-01-29 15:19:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 15:19:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357195', 'tblTempUsageDetail_20' ) start [2025-01-29 15:19:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357195', 'tblTempUsageDetail_20' ) end [2025-01-29 15:19:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357195', 'tblTempVendorCDR_20' ) start [2025-01-29 15:19:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357195', 'tblTempVendorCDR_20' ) end [2025-01-29 15:19:24] Production.INFO: ProcessCDR(1,14357195,1,1,2) [2025-01-29 15:19:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14357195,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 15:19:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14357195,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 15:19:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14357195,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 15:19:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14357195,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 15:19:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357195', 'tblTempUsageDetail_20' ) start [2025-01-29 15:19:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357195', 'tblTempUsageDetail_20' ) end [2025-01-29 15:19:29] Production.ERROR: pbx prc_insertCDR start [2025-01-29 15:19:29] Production.ERROR: pbx prc_insertCDR end [2025-01-29 15:19:29] Production.INFO: ==9930== Releasing lock... [2025-01-29 15:19:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 15:19:29] Production.INFO: 63.75 MB #Memory Used# [2025-01-29 15:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 12:20:05 [end_date_ymd] => 2025-01-29 15:20:05 [RateCDR] => 1 ) [2025-01-29 15:20:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 12:20:05' and `end` < '2025-01-29 15:20:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 15:20:23] Production.INFO: count ==4779 [2025-01-29 15:20:25] Production.ERROR: pbx CDR StartTime 2025-01-29 12:20:05 - End Time 2025-01-29 15:20:05 [2025-01-29 15:20:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 15:20:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357200', 'tblTempUsageDetail_20' ) start [2025-01-29 15:20:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357200', 'tblTempUsageDetail_20' ) end [2025-01-29 15:20:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357200', 'tblTempVendorCDR_20' ) start [2025-01-29 15:20:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357200', 'tblTempVendorCDR_20' ) end [2025-01-29 15:20:25] Production.INFO: ProcessCDR(1,14357200,1,1,2) [2025-01-29 15:20:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14357200,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 15:20:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14357200,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 15:20:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14357200,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 15:20:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14357200,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 15:20:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357200', 'tblTempUsageDetail_20' ) start [2025-01-29 15:20:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357200', 'tblTempUsageDetail_20' ) end [2025-01-29 15:20:30] Production.ERROR: pbx prc_insertCDR start [2025-01-29 15:20:30] Production.ERROR: pbx prc_insertCDR end [2025-01-29 15:20:30] Production.INFO: ==10009== Releasing lock... [2025-01-29 15:20:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 15:20:30] Production.INFO: 63.75 MB #Memory Used# [2025-01-29 15:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 12:21:05 [end_date_ymd] => 2025-01-29 15:21:05 [RateCDR] => 1 ) [2025-01-29 15:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 12:21:05' and `end` < '2025-01-29 15:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 15:21:20] Production.INFO: count ==4782 [2025-01-29 15:21:22] Production.ERROR: pbx CDR StartTime 2025-01-29 12:21:05 - End Time 2025-01-29 15:21:05 [2025-01-29 15:21:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 15:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357206', 'tblTempUsageDetail_20' ) start [2025-01-29 15:21:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357206', 'tblTempUsageDetail_20' ) end [2025-01-29 15:21:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357206', 'tblTempVendorCDR_20' ) start [2025-01-29 15:21:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357206', 'tblTempVendorCDR_20' ) end [2025-01-29 15:21:23] Production.INFO: ProcessCDR(1,14357206,1,1,2) [2025-01-29 15:21:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14357206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 15:21:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14357206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 15:21:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14357206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 15:21:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14357206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 15:21:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357206', 'tblTempUsageDetail_20' ) start [2025-01-29 15:21:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357206', 'tblTempUsageDetail_20' ) end [2025-01-29 15:21:28] Production.ERROR: pbx prc_insertCDR start [2025-01-29 15:21:28] Production.ERROR: pbx prc_insertCDR end [2025-01-29 15:21:28] Production.INFO: ==10108== Releasing lock... [2025-01-29 15:21:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 15:21:28] Production.INFO: 63.75 MB #Memory Used# [2025-01-29 15:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 12:22:05 [end_date_ymd] => 2025-01-29 15:22:05 [RateCDR] => 1 ) [2025-01-29 15:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 12:22:05' and `end` < '2025-01-29 15:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 15:22:22] Production.INFO: count ==4769 [2025-01-29 15:22:24] Production.ERROR: pbx CDR StartTime 2025-01-29 12:22:05 - End Time 2025-01-29 15:22:05 [2025-01-29 15:22:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 15:22:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357211', 'tblTempUsageDetail_20' ) start [2025-01-29 15:22:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357211', 'tblTempUsageDetail_20' ) end [2025-01-29 15:22:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357211', 'tblTempVendorCDR_20' ) start [2025-01-29 15:22:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357211', 'tblTempVendorCDR_20' ) end [2025-01-29 15:22:25] Production.INFO: ProcessCDR(1,14357211,1,1,2) [2025-01-29 15:22:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14357211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 15:22:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14357211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 15:22:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14357211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 15:22:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14357211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 15:22:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357211', 'tblTempUsageDetail_20' ) start [2025-01-29 15:22:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357211', 'tblTempUsageDetail_20' ) end [2025-01-29 15:22:29] Production.ERROR: pbx prc_insertCDR start [2025-01-29 15:22:29] Production.ERROR: pbx prc_insertCDR end [2025-01-29 15:22:29] Production.INFO: ==10210== Releasing lock... [2025-01-29 15:22:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 15:22:29] Production.INFO: 63.75 MB #Memory Used# [2025-01-29 15:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 12:23:05 [end_date_ymd] => 2025-01-29 15:23:05 [RateCDR] => 1 ) [2025-01-29 15:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 12:23:05' and `end` < '2025-01-29 15:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 15:23:20] Production.INFO: count ==4764 [2025-01-29 15:23:22] Production.ERROR: pbx CDR StartTime 2025-01-29 12:23:05 - End Time 2025-01-29 15:23:05 [2025-01-29 15:23:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 15:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357216', 'tblTempUsageDetail_20' ) start [2025-01-29 15:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357216', 'tblTempUsageDetail_20' ) end [2025-01-29 15:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357216', 'tblTempVendorCDR_20' ) start [2025-01-29 15:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357216', 'tblTempVendorCDR_20' ) end [2025-01-29 15:23:22] Production.INFO: ProcessCDR(1,14357216,1,1,2) [2025-01-29 15:23:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14357216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 15:23:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14357216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 15:23:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14357216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 15:23:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14357216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 15:23:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357216', 'tblTempUsageDetail_20' ) start [2025-01-29 15:23:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357216', 'tblTempUsageDetail_20' ) end [2025-01-29 15:23:27] Production.ERROR: pbx prc_insertCDR start [2025-01-29 15:23:27] Production.ERROR: pbx prc_insertCDR end [2025-01-29 15:23:27] Production.INFO: ==10310== Releasing lock... [2025-01-29 15:23:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 15:23:27] Production.INFO: 63.75 MB #Memory Used# [2025-01-29 15:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 12:24:05 [end_date_ymd] => 2025-01-29 15:24:05 [RateCDR] => 1 ) [2025-01-29 15:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 12:24:05' and `end` < '2025-01-29 15:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 15:24:29] Production.INFO: count ==4769 [2025-01-29 15:24:31] Production.ERROR: pbx CDR StartTime 2025-01-29 12:24:05 - End Time 2025-01-29 15:24:05 [2025-01-29 15:24:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 15:24:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357221', 'tblTempUsageDetail_20' ) start [2025-01-29 15:24:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357221', 'tblTempUsageDetail_20' ) end [2025-01-29 15:24:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357221', 'tblTempVendorCDR_20' ) start [2025-01-29 15:24:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357221', 'tblTempVendorCDR_20' ) end [2025-01-29 15:24:31] Production.INFO: ProcessCDR(1,14357221,1,1,2) [2025-01-29 15:24:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14357221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 15:24:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14357221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 15:24:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14357221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 15:24:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14357221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 15:24:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357221', 'tblTempUsageDetail_20' ) start [2025-01-29 15:24:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357221', 'tblTempUsageDetail_20' ) end [2025-01-29 15:24:36] Production.ERROR: pbx prc_insertCDR start [2025-01-29 15:24:36] Production.ERROR: pbx prc_insertCDR end [2025-01-29 15:24:36] Production.INFO: ==10410== Releasing lock... [2025-01-29 15:24:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 15:24:36] Production.INFO: 63.75 MB #Memory Used# [2025-01-29 15:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 12:25:06 [end_date_ymd] => 2025-01-29 15:25:06 [RateCDR] => 1 ) [2025-01-29 15:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 12:25:06' and `end` < '2025-01-29 15:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 15:25:24] Production.INFO: count ==4777 [2025-01-29 15:25:26] Production.ERROR: pbx CDR StartTime 2025-01-29 12:25:06 - End Time 2025-01-29 15:25:06 [2025-01-29 15:25:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 15:25:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357226', 'tblTempUsageDetail_20' ) start [2025-01-29 15:25:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357226', 'tblTempUsageDetail_20' ) end [2025-01-29 15:25:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357226', 'tblTempVendorCDR_20' ) start [2025-01-29 15:25:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357226', 'tblTempVendorCDR_20' ) end [2025-01-29 15:25:26] Production.INFO: ProcessCDR(1,14357226,1,1,2) [2025-01-29 15:25:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14357226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 15:25:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14357226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 15:25:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14357226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 15:25:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14357226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 15:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357226', 'tblTempUsageDetail_20' ) start [2025-01-29 15:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357226', 'tblTempUsageDetail_20' ) end [2025-01-29 15:25:31] Production.ERROR: pbx prc_insertCDR start [2025-01-29 15:25:31] Production.ERROR: pbx prc_insertCDR end [2025-01-29 15:25:31] Production.INFO: ==10553== Releasing lock... [2025-01-29 15:25:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 15:25:31] Production.INFO: 63.75 MB #Memory Used# [2025-01-29 15:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 12:26:05 [end_date_ymd] => 2025-01-29 15:26:05 [RateCDR] => 1 ) [2025-01-29 15:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 12:26:05' and `end` < '2025-01-29 15:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 15:26:23] Production.INFO: count ==4775 [2025-01-29 15:26:25] Production.ERROR: pbx CDR StartTime 2025-01-29 12:26:05 - End Time 2025-01-29 15:26:05 [2025-01-29 15:26:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 15:26:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357231', 'tblTempUsageDetail_20' ) start [2025-01-29 15:26:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357231', 'tblTempUsageDetail_20' ) end [2025-01-29 15:26:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357231', 'tblTempVendorCDR_20' ) start [2025-01-29 15:26:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357231', 'tblTempVendorCDR_20' ) end [2025-01-29 15:26:25] Production.INFO: ProcessCDR(1,14357231,1,1,2) [2025-01-29 15:26:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14357231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 15:26:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14357231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 15:26:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14357231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 15:26:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14357231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 15:26:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357231', 'tblTempUsageDetail_20' ) start [2025-01-29 15:26:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357231', 'tblTempUsageDetail_20' ) end [2025-01-29 15:26:29] Production.ERROR: pbx prc_insertCDR start [2025-01-29 15:26:29] Production.ERROR: pbx prc_insertCDR end [2025-01-29 15:26:30] Production.INFO: ==10660== Releasing lock... [2025-01-29 15:26:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 15:26:30] Production.INFO: 63.75 MB #Memory Used# [2025-01-29 15:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 12:27:05 [end_date_ymd] => 2025-01-29 15:27:05 [RateCDR] => 1 ) [2025-01-29 15:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 12:27:05' and `end` < '2025-01-29 15:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 15:27:29] Production.INFO: count ==4778 [2025-01-29 15:27:31] Production.ERROR: pbx CDR StartTime 2025-01-29 12:27:05 - End Time 2025-01-29 15:27:05 [2025-01-29 15:27:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 15:27:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357236', 'tblTempUsageDetail_20' ) start [2025-01-29 15:27:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357236', 'tblTempUsageDetail_20' ) end [2025-01-29 15:27:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357236', 'tblTempVendorCDR_20' ) start [2025-01-29 15:27:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357236', 'tblTempVendorCDR_20' ) end [2025-01-29 15:27:31] Production.INFO: ProcessCDR(1,14357236,1,1,2) [2025-01-29 15:27:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14357236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 15:27:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14357236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 15:27:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14357236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 15:27:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14357236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 15:27:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357236', 'tblTempUsageDetail_20' ) start [2025-01-29 15:27:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357236', 'tblTempUsageDetail_20' ) end [2025-01-29 15:27:36] Production.ERROR: pbx prc_insertCDR start [2025-01-29 15:27:36] Production.ERROR: pbx prc_insertCDR end [2025-01-29 15:27:36] Production.INFO: ==10763== Releasing lock... [2025-01-29 15:27:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 15:27:36] Production.INFO: 63.75 MB #Memory Used# [2025-01-29 15:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 12:28:05 [end_date_ymd] => 2025-01-29 15:28:05 [RateCDR] => 1 ) [2025-01-29 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-01-29 12:28:05' and `end` < '2025-01-29 15:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 15:28:23] Production.INFO: count ==4774 [2025-01-29 15:28:25] Production.ERROR: pbx CDR StartTime 2025-01-29 12:28:05 - End Time 2025-01-29 15:28:05 [2025-01-29 15:28:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 15:28:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357241', 'tblTempUsageDetail_20' ) start [2025-01-29 15:28:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357241', 'tblTempUsageDetail_20' ) end [2025-01-29 15:28:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357241', 'tblTempVendorCDR_20' ) start [2025-01-29 15:28:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357241', 'tblTempVendorCDR_20' ) end [2025-01-29 15:28:25] Production.INFO: ProcessCDR(1,14357241,1,1,2) [2025-01-29 15:28:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14357241,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 15:28:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14357241,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 15:28:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14357241,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 15:28:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14357241,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 15:28:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357241', 'tblTempUsageDetail_20' ) start [2025-01-29 15:28:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357241', 'tblTempUsageDetail_20' ) end [2025-01-29 15:28:30] Production.ERROR: pbx prc_insertCDR start [2025-01-29 15:28:30] Production.ERROR: pbx prc_insertCDR end [2025-01-29 15:28:30] Production.INFO: ==10870== Releasing lock... [2025-01-29 15:28:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 15:28:30] Production.INFO: 63.75 MB #Memory Used# [2025-01-29 15:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 12:29:05 [end_date_ymd] => 2025-01-29 15:29:05 [RateCDR] => 1 ) [2025-01-29 15:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 12:29:05' and `end` < '2025-01-29 15:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 15:29:19] Production.INFO: count ==4777 [2025-01-29 15:29:21] Production.ERROR: pbx CDR StartTime 2025-01-29 12:29:05 - End Time 2025-01-29 15:29:05 [2025-01-29 15:29:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 15:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357246', 'tblTempUsageDetail_20' ) start [2025-01-29 15:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357246', 'tblTempUsageDetail_20' ) end [2025-01-29 15:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357246', 'tblTempVendorCDR_20' ) start [2025-01-29 15:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357246', 'tblTempVendorCDR_20' ) end [2025-01-29 15:29:21] Production.INFO: ProcessCDR(1,14357246,1,1,2) [2025-01-29 15:29:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14357246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 15:29:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14357246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 15:29:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14357246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 15:29:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14357246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 15:29:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357246', 'tblTempUsageDetail_20' ) start [2025-01-29 15:29:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357246', 'tblTempUsageDetail_20' ) end [2025-01-29 15:29:26] Production.ERROR: pbx prc_insertCDR start [2025-01-29 15:29:26] Production.ERROR: pbx prc_insertCDR end [2025-01-29 15:29:26] Production.INFO: ==10979== Releasing lock... [2025-01-29 15:29:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 15:29:26] Production.INFO: 63.75 MB #Memory Used# [2025-01-29 15:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 12:30:06 [end_date_ymd] => 2025-01-29 15:30:06 [RateCDR] => 1 ) [2025-01-29 15:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 12:30:06' and `end` < '2025-01-29 15:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 15:30:26] Production.INFO: count ==4778 [2025-01-29 15:30:29] Production.ERROR: pbx CDR StartTime 2025-01-29 12:30:06 - End Time 2025-01-29 15:30:06 [2025-01-29 15:30:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 15:30:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357252', 'tblTempUsageDetail_20' ) start [2025-01-29 15:30:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357252', 'tblTempUsageDetail_20' ) end [2025-01-29 15:30:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357252', 'tblTempVendorCDR_20' ) start [2025-01-29 15:30:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357252', 'tblTempVendorCDR_20' ) end [2025-01-29 15:30:29] Production.INFO: ProcessCDR(1,14357252,1,1,2) [2025-01-29 15:30:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14357252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 15:30:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14357252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 15:30:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14357252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 15:30:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14357252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 15:30:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357252', 'tblTempUsageDetail_20' ) start [2025-01-29 15:30:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357252', 'tblTempUsageDetail_20' ) end [2025-01-29 15:30:34] Production.ERROR: pbx prc_insertCDR start [2025-01-29 15:30:34] Production.ERROR: pbx prc_insertCDR end [2025-01-29 15:30:34] Production.INFO: ==11084== Releasing lock... [2025-01-29 15:30:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 15:30:34] Production.INFO: 63.75 MB #Memory Used# [2025-01-29 15:31:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 12:31:04 [end_date_ymd] => 2025-01-29 15:31:04 [RateCDR] => 1 ) [2025-01-29 15:31:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 12:31:04' and `end` < '2025-01-29 15:31:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 15:31:24] Production.INFO: count ==4816 [2025-01-29 15:31:26] Production.ERROR: pbx CDR StartTime 2025-01-29 12:31:04 - End Time 2025-01-29 15:31:04 [2025-01-29 15:31:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 15:31:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357257', 'tblTempUsageDetail_20' ) start [2025-01-29 15:31:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357257', 'tblTempUsageDetail_20' ) end [2025-01-29 15:31:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357257', 'tblTempVendorCDR_20' ) start [2025-01-29 15:31:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357257', 'tblTempVendorCDR_20' ) end [2025-01-29 15:31:26] Production.INFO: ProcessCDR(1,14357257,1,1,2) [2025-01-29 15:31:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14357257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 15:31:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14357257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 15:31:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14357257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 15:31:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14357257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 15:31:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357257', 'tblTempUsageDetail_20' ) start [2025-01-29 15:31:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357257', 'tblTempUsageDetail_20' ) end [2025-01-29 15:31:31] Production.ERROR: pbx prc_insertCDR start [2025-01-29 15:31:31] Production.ERROR: pbx prc_insertCDR end [2025-01-29 15:31:31] Production.INFO: ==11187== Releasing lock... [2025-01-29 15:31:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 15:31:31] Production.INFO: 64 MB #Memory Used# [2025-01-29 15:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 12:32:06 [end_date_ymd] => 2025-01-29 15:32:06 [RateCDR] => 1 ) [2025-01-29 15:32:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 12:32:06' and `end` < '2025-01-29 15:32:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 15:32:26] Production.INFO: count ==4807 [2025-01-29 15:32:28] Production.ERROR: pbx CDR StartTime 2025-01-29 12:32:06 - End Time 2025-01-29 15:32:06 [2025-01-29 15:32:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 15:32:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357262', 'tblTempUsageDetail_20' ) start [2025-01-29 15:32:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357262', 'tblTempUsageDetail_20' ) end [2025-01-29 15:32:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357262', 'tblTempVendorCDR_20' ) start [2025-01-29 15:32:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357262', 'tblTempVendorCDR_20' ) end [2025-01-29 15:32:28] Production.INFO: ProcessCDR(1,14357262,1,1,2) [2025-01-29 15:32:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14357262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 15:32:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14357262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 15:32:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14357262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 15:32:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14357262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 15:32:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357262', 'tblTempUsageDetail_20' ) start [2025-01-29 15:32:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357262', 'tblTempUsageDetail_20' ) end [2025-01-29 15:32:33] Production.ERROR: pbx prc_insertCDR start [2025-01-29 15:32:33] Production.ERROR: pbx prc_insertCDR end [2025-01-29 15:32:33] Production.INFO: ==11299== Releasing lock... [2025-01-29 15:32:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 15:32:33] Production.INFO: 64 MB #Memory Used# [2025-01-29 15:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 12:33:05 [end_date_ymd] => 2025-01-29 15:33:05 [RateCDR] => 1 ) [2025-01-29 15:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 12:33:05' and `end` < '2025-01-29 15:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 15:33:25] Production.INFO: count ==4794 [2025-01-29 15:33:27] Production.ERROR: pbx CDR StartTime 2025-01-29 12:33:05 - End Time 2025-01-29 15:33:05 [2025-01-29 15:33:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 15:33:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357267', 'tblTempUsageDetail_20' ) start [2025-01-29 15:33:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357267', 'tblTempUsageDetail_20' ) end [2025-01-29 15:33:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357267', 'tblTempVendorCDR_20' ) start [2025-01-29 15:33:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357267', 'tblTempVendorCDR_20' ) end [2025-01-29 15:33:28] Production.INFO: ProcessCDR(1,14357267,1,1,2) [2025-01-29 15:33:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14357267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 15:33:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14357267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 15:33:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14357267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 15:33:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14357267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 15:33:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357267', 'tblTempUsageDetail_20' ) start [2025-01-29 15:33:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357267', 'tblTempUsageDetail_20' ) end [2025-01-29 15:33:33] Production.ERROR: pbx prc_insertCDR start [2025-01-29 15:33:33] Production.ERROR: pbx prc_insertCDR end [2025-01-29 15:33:33] Production.INFO: ==11412== Releasing lock... [2025-01-29 15:33:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 15:33:33] Production.INFO: 64 MB #Memory Used# [2025-01-29 15:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 12:34:05 [end_date_ymd] => 2025-01-29 15:34:05 [RateCDR] => 1 ) [2025-01-29 15:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 12:34:05' and `end` < '2025-01-29 15:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 15:34:22] Production.INFO: count ==4777 [2025-01-29 15:34:24] Production.ERROR: pbx CDR StartTime 2025-01-29 12:34:05 - End Time 2025-01-29 15:34:05 [2025-01-29 15:34:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 15:34:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357272', 'tblTempUsageDetail_20' ) start [2025-01-29 15:34:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357272', 'tblTempUsageDetail_20' ) end [2025-01-29 15:34:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357272', 'tblTempVendorCDR_20' ) start [2025-01-29 15:34:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357272', 'tblTempVendorCDR_20' ) end [2025-01-29 15:34:24] Production.INFO: ProcessCDR(1,14357272,1,1,2) [2025-01-29 15:34:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14357272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 15:34:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14357272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 15:34:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14357272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 15:34:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14357272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 15:34:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357272', 'tblTempUsageDetail_20' ) start [2025-01-29 15:34:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357272', 'tblTempUsageDetail_20' ) end [2025-01-29 15:34:29] Production.ERROR: pbx prc_insertCDR start [2025-01-29 15:34:29] Production.ERROR: pbx prc_insertCDR end [2025-01-29 15:34:29] Production.INFO: ==11525== Releasing lock... [2025-01-29 15:34:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 15:34:29] Production.INFO: 63.75 MB #Memory Used# [2025-01-29 15:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 12:35:05 [end_date_ymd] => 2025-01-29 15:35:05 [RateCDR] => 1 ) [2025-01-29 15:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 12:35:05' and `end` < '2025-01-29 15:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 15:35:29] Production.INFO: count ==4764 [2025-01-29 15:35:31] Production.ERROR: pbx CDR StartTime 2025-01-29 12:35:05 - End Time 2025-01-29 15:35:05 [2025-01-29 15:35:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 15:35:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357277', 'tblTempUsageDetail_20' ) start [2025-01-29 15:35:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357277', 'tblTempUsageDetail_20' ) end [2025-01-29 15:35:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357277', 'tblTempVendorCDR_20' ) start [2025-01-29 15:35:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357277', 'tblTempVendorCDR_20' ) end [2025-01-29 15:35:32] Production.INFO: ProcessCDR(1,14357277,1,1,2) [2025-01-29 15:35:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14357277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 15:35:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14357277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 15:35:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14357277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 15:35:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14357277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 15:35:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357277', 'tblTempUsageDetail_20' ) start [2025-01-29 15:35:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357277', 'tblTempUsageDetail_20' ) end [2025-01-29 15:35:37] Production.ERROR: pbx prc_insertCDR start [2025-01-29 15:35:37] Production.ERROR: pbx prc_insertCDR end [2025-01-29 15:35:37] Production.INFO: ==11637== Releasing lock... [2025-01-29 15:35:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 15:35:37] Production.INFO: 63.75 MB #Memory Used# [2025-01-29 15:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 12:36:05 [end_date_ymd] => 2025-01-29 15:36:05 [RateCDR] => 1 ) [2025-01-29 15:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 12:36:05' and `end` < '2025-01-29 15:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 15:36:22] Production.INFO: count ==4745 [2025-01-29 15:36:24] Production.ERROR: pbx CDR StartTime 2025-01-29 12:36:05 - End Time 2025-01-29 15:36:05 [2025-01-29 15:36:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 15:36:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357282', 'tblTempUsageDetail_20' ) start [2025-01-29 15:36:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357282', 'tblTempUsageDetail_20' ) end [2025-01-29 15:36:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357282', 'tblTempVendorCDR_20' ) start [2025-01-29 15:36:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357282', 'tblTempVendorCDR_20' ) end [2025-01-29 15:36:24] Production.INFO: ProcessCDR(1,14357282,1,1,2) [2025-01-29 15:36:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14357282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 15:36:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14357282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 15:36:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14357282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 15:36:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14357282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 15:36:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357282', 'tblTempUsageDetail_20' ) start [2025-01-29 15:36:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357282', 'tblTempUsageDetail_20' ) end [2025-01-29 15:36:29] Production.ERROR: pbx prc_insertCDR start [2025-01-29 15:36:29] Production.ERROR: pbx prc_insertCDR end [2025-01-29 15:36:29] Production.INFO: ==11740== Releasing lock... [2025-01-29 15:36:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 15:36:29] Production.INFO: 63.5 MB #Memory Used# [2025-01-29 15:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 12:37:05 [end_date_ymd] => 2025-01-29 15:37:05 [RateCDR] => 1 ) [2025-01-29 15:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 12:37:05' and `end` < '2025-01-29 15:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 15:37:24] Production.INFO: count ==4747 [2025-01-29 15:37:26] Production.ERROR: pbx CDR StartTime 2025-01-29 12:37:05 - End Time 2025-01-29 15:37:05 [2025-01-29 15:37:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 15:37:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357287', 'tblTempUsageDetail_20' ) start [2025-01-29 15:37:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357287', 'tblTempUsageDetail_20' ) end [2025-01-29 15:37:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357287', 'tblTempVendorCDR_20' ) start [2025-01-29 15:37:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357287', 'tblTempVendorCDR_20' ) end [2025-01-29 15:37:26] Production.INFO: ProcessCDR(1,14357287,1,1,2) [2025-01-29 15:37:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14357287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 15:37:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14357287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 15:37:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14357287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 15:37:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14357287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 15:37:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357287', 'tblTempUsageDetail_20' ) start [2025-01-29 15:37:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357287', 'tblTempUsageDetail_20' ) end [2025-01-29 15:37:31] Production.ERROR: pbx prc_insertCDR start [2025-01-29 15:37:31] Production.ERROR: pbx prc_insertCDR end [2025-01-29 15:37:31] Production.INFO: ==11843== Releasing lock... [2025-01-29 15:37:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 15:37:31] Production.INFO: 63.5 MB #Memory Used# [2025-01-29 15:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 12:38:05 [end_date_ymd] => 2025-01-29 15:38:05 [RateCDR] => 1 ) [2025-01-29 15:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 12:38:05' and `end` < '2025-01-29 15:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 15:38:26] Production.INFO: count ==4757 [2025-01-29 15:38:28] Production.ERROR: pbx CDR StartTime 2025-01-29 12:38:05 - End Time 2025-01-29 15:38:05 [2025-01-29 15:38:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 15:38:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357292', 'tblTempUsageDetail_20' ) start [2025-01-29 15:38:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357292', 'tblTempUsageDetail_20' ) end [2025-01-29 15:38:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357292', 'tblTempVendorCDR_20' ) start [2025-01-29 15:38:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357292', 'tblTempVendorCDR_20' ) end [2025-01-29 15:38:29] Production.INFO: ProcessCDR(1,14357292,1,1,2) [2025-01-29 15:38:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14357292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 15:38:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14357292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 15:38:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14357292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 15:38:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14357292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 15:38:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357292', 'tblTempUsageDetail_20' ) start [2025-01-29 15:38:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357292', 'tblTempUsageDetail_20' ) end [2025-01-29 15:38:34] Production.ERROR: pbx prc_insertCDR start [2025-01-29 15:38:34] Production.ERROR: pbx prc_insertCDR end [2025-01-29 15:38:34] Production.INFO: ==11951== Releasing lock... [2025-01-29 15:38:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 15:38:34] Production.INFO: 63.5 MB #Memory Used# [2025-01-29 15:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 12:39:05 [end_date_ymd] => 2025-01-29 15:39:05 [RateCDR] => 1 ) [2025-01-29 15:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 12:39:05' and `end` < '2025-01-29 15:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 15:39:24] Production.INFO: count ==4761 [2025-01-29 15:39:26] Production.ERROR: pbx CDR StartTime 2025-01-29 12:39:05 - End Time 2025-01-29 15:39:05 [2025-01-29 15:39:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 15:39:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357297', 'tblTempUsageDetail_20' ) start [2025-01-29 15:39:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357297', 'tblTempUsageDetail_20' ) end [2025-01-29 15:39:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357297', 'tblTempVendorCDR_20' ) start [2025-01-29 15:39:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357297', 'tblTempVendorCDR_20' ) end [2025-01-29 15:39:26] Production.INFO: ProcessCDR(1,14357297,1,1,2) [2025-01-29 15:39:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14357297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 15:39:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14357297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 15:39:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14357297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 15:39:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14357297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 15:39:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357297', 'tblTempUsageDetail_20' ) start [2025-01-29 15:39:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357297', 'tblTempUsageDetail_20' ) end [2025-01-29 15:39:31] Production.ERROR: pbx prc_insertCDR start [2025-01-29 15:39:31] Production.ERROR: pbx prc_insertCDR end [2025-01-29 15:39:31] Production.INFO: ==12070== Releasing lock... [2025-01-29 15:39:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 15:39:31] Production.INFO: 63.75 MB #Memory Used# [2025-01-29 15:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 12:40:06 [end_date_ymd] => 2025-01-29 15:40:06 [RateCDR] => 1 ) [2025-01-29 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-01-29 12:40:06' and `end` < '2025-01-29 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-01-29 15:40:30] Production.INFO: count ==4764 [2025-01-29 15:40:32] Production.ERROR: pbx CDR StartTime 2025-01-29 12:40:06 - End Time 2025-01-29 15:40:06 [2025-01-29 15:40:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 15:40:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357303', 'tblTempUsageDetail_20' ) start [2025-01-29 15:40:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357303', 'tblTempUsageDetail_20' ) end [2025-01-29 15:40:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357303', 'tblTempVendorCDR_20' ) start [2025-01-29 15:40:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357303', 'tblTempVendorCDR_20' ) end [2025-01-29 15:40:32] Production.INFO: ProcessCDR(1,14357303,1,1,2) [2025-01-29 15:40:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14357303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 15:40:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14357303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 15:40:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14357303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 15:40:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14357303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 15:40:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357303', 'tblTempUsageDetail_20' ) start [2025-01-29 15:40:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357303', 'tblTempUsageDetail_20' ) end [2025-01-29 15:40:36] Production.ERROR: pbx prc_insertCDR start [2025-01-29 15:40:36] Production.ERROR: pbx prc_insertCDR end [2025-01-29 15:40:36] Production.INFO: ==12222== Releasing lock... [2025-01-29 15:40:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 15:40:36] Production.INFO: 63.75 MB #Memory Used# [2025-01-29 15:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 12:41:05 [end_date_ymd] => 2025-01-29 15:41:05 [RateCDR] => 1 ) [2025-01-29 15:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 12:41:05' and `end` < '2025-01-29 15:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 15:41:21] Production.INFO: count ==4816 [2025-01-29 15:41:24] Production.ERROR: pbx CDR StartTime 2025-01-29 12:41:05 - End Time 2025-01-29 15:41:05 [2025-01-29 15:41:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 15:41:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357308', 'tblTempUsageDetail_20' ) start [2025-01-29 15:41:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357308', 'tblTempUsageDetail_20' ) end [2025-01-29 15:41:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357308', 'tblTempVendorCDR_20' ) start [2025-01-29 15:41:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357308', 'tblTempVendorCDR_20' ) end [2025-01-29 15:41:24] Production.INFO: ProcessCDR(1,14357308,1,1,2) [2025-01-29 15:41:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14357308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 15:41:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14357308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 15:41:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14357308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 15:41:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14357308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 15:41:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357308', 'tblTempUsageDetail_20' ) start [2025-01-29 15:41:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357308', 'tblTempUsageDetail_20' ) end [2025-01-29 15:41:29] Production.ERROR: pbx prc_insertCDR start [2025-01-29 15:41:29] Production.ERROR: pbx prc_insertCDR end [2025-01-29 15:41:29] Production.INFO: ==12346== Releasing lock... [2025-01-29 15:41:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 15:41:29] Production.INFO: 64 MB #Memory Used# [2025-01-29 15:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 12:42:05 [end_date_ymd] => 2025-01-29 15:42:05 [RateCDR] => 1 ) [2025-01-29 15:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 12:42:05' and `end` < '2025-01-29 15:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 15:42:36] Production.INFO: count ==4850 [2025-01-29 15:42:38] Production.ERROR: pbx CDR StartTime 2025-01-29 12:42:05 - End Time 2025-01-29 15:42:05 [2025-01-29 15:42:38] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 15:42:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357313', 'tblTempUsageDetail_20' ) start [2025-01-29 15:42:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357313', 'tblTempUsageDetail_20' ) end [2025-01-29 15:42:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357313', 'tblTempVendorCDR_20' ) start [2025-01-29 15:42:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357313', 'tblTempVendorCDR_20' ) end [2025-01-29 15:42:38] Production.INFO: ProcessCDR(1,14357313,1,1,2) [2025-01-29 15:42:38] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14357313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 15:42:40] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14357313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 15:42:40] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14357313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 15:42:43] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14357313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 15:42:43] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357313', 'tblTempUsageDetail_20' ) start [2025-01-29 15:42:43] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357313', 'tblTempUsageDetail_20' ) end [2025-01-29 15:42:43] Production.ERROR: pbx prc_insertCDR start [2025-01-29 15:42:43] Production.ERROR: pbx prc_insertCDR end [2025-01-29 15:42:43] Production.INFO: ==12456== Releasing lock... [2025-01-29 15:42:43] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 15:42:43] Production.INFO: 64.25 MB #Memory Used# [2025-01-29 15:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 12:43:05 [end_date_ymd] => 2025-01-29 15:43:05 [RateCDR] => 1 ) [2025-01-29 15:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 12:43:05' and `end` < '2025-01-29 15:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 15:43:31] Production.INFO: count ==4856 [2025-01-29 15:43:33] Production.ERROR: pbx CDR StartTime 2025-01-29 12:43:05 - End Time 2025-01-29 15:43:05 [2025-01-29 15:43:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 15:43:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357318', 'tblTempUsageDetail_20' ) start [2025-01-29 15:43:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357318', 'tblTempUsageDetail_20' ) end [2025-01-29 15:43:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357318', 'tblTempVendorCDR_20' ) start [2025-01-29 15:43:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357318', 'tblTempVendorCDR_20' ) end [2025-01-29 15:43:33] Production.INFO: ProcessCDR(1,14357318,1,1,2) [2025-01-29 15:43:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14357318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 15:43:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14357318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 15:43:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14357318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 15:43:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14357318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 15:43:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357318', 'tblTempUsageDetail_20' ) start [2025-01-29 15:43:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357318', 'tblTempUsageDetail_20' ) end [2025-01-29 15:43:38] Production.ERROR: pbx prc_insertCDR start [2025-01-29 15:43:38] Production.ERROR: pbx prc_insertCDR end [2025-01-29 15:43:38] Production.INFO: ==12570== Releasing lock... [2025-01-29 15:43:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 15:43:38] Production.INFO: 64.25 MB #Memory Used# [2025-01-29 15:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 12:44:05 [end_date_ymd] => 2025-01-29 15:44:05 [RateCDR] => 1 ) [2025-01-29 15:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 12:44:05' and `end` < '2025-01-29 15:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 15:44:28] Production.INFO: count ==4877 [2025-01-29 15:44:30] Production.ERROR: pbx CDR StartTime 2025-01-29 12:44:05 - End Time 2025-01-29 15:44:05 [2025-01-29 15:44:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 15:44:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357323', 'tblTempUsageDetail_20' ) start [2025-01-29 15:44:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357323', 'tblTempUsageDetail_20' ) end [2025-01-29 15:44:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357323', 'tblTempVendorCDR_20' ) start [2025-01-29 15:44:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357323', 'tblTempVendorCDR_20' ) end [2025-01-29 15:44:30] Production.INFO: ProcessCDR(1,14357323,1,1,2) [2025-01-29 15:44:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14357323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 15:44:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14357323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 15:44:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14357323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 15:44:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14357323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 15:44:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357323', 'tblTempUsageDetail_20' ) start [2025-01-29 15:44:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357323', 'tblTempUsageDetail_20' ) end [2025-01-29 15:44:35] Production.ERROR: pbx prc_insertCDR start [2025-01-29 15:44:35] Production.ERROR: pbx prc_insertCDR end [2025-01-29 15:44:35] Production.INFO: ==12689== Releasing lock... [2025-01-29 15:44:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 15:44:35] Production.INFO: 64.5 MB #Memory Used# [2025-01-29 15:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 12:45:05 [end_date_ymd] => 2025-01-29 15:45:05 [RateCDR] => 1 ) [2025-01-29 15:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 12:45:05' and `end` < '2025-01-29 15:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 15:45:30] Production.INFO: count ==4879 [2025-01-29 15:45:32] Production.ERROR: pbx CDR StartTime 2025-01-29 12:45:05 - End Time 2025-01-29 15:45:05 [2025-01-29 15:45:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 15:45:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357328', 'tblTempUsageDetail_20' ) start [2025-01-29 15:45:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357328', 'tblTempUsageDetail_20' ) end [2025-01-29 15:45:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357328', 'tblTempVendorCDR_20' ) start [2025-01-29 15:45:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357328', 'tblTempVendorCDR_20' ) end [2025-01-29 15:45:32] Production.INFO: ProcessCDR(1,14357328,1,1,2) [2025-01-29 15:45:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14357328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 15:45:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14357328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 15:45:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14357328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 15:45:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14357328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 15:45:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357328', 'tblTempUsageDetail_20' ) start [2025-01-29 15:45:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357328', 'tblTempUsageDetail_20' ) end [2025-01-29 15:45:37] Production.ERROR: pbx prc_insertCDR start [2025-01-29 15:45:37] Production.ERROR: pbx prc_insertCDR end [2025-01-29 15:45:37] Production.INFO: ==12808== Releasing lock... [2025-01-29 15:45:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 15:45:37] Production.INFO: 64.5 MB #Memory Used# [2025-01-29 15:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 12:46:05 [end_date_ymd] => 2025-01-29 15:46:05 [RateCDR] => 1 ) [2025-01-29 15:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 12:46:05' and `end` < '2025-01-29 15:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 15:46:24] Production.INFO: count ==4882 [2025-01-29 15:46:26] Production.ERROR: pbx CDR StartTime 2025-01-29 12:46:05 - End Time 2025-01-29 15:46:05 [2025-01-29 15:46:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 15:46:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357333', 'tblTempUsageDetail_20' ) start [2025-01-29 15:46:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357333', 'tblTempUsageDetail_20' ) end [2025-01-29 15:46:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357333', 'tblTempVendorCDR_20' ) start [2025-01-29 15:46:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357333', 'tblTempVendorCDR_20' ) end [2025-01-29 15:46:26] Production.INFO: ProcessCDR(1,14357333,1,1,2) [2025-01-29 15:46:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14357333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 15:46:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14357333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 15:46:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14357333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 15:46:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14357333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 15:46:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357333', 'tblTempUsageDetail_20' ) start [2025-01-29 15:46:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357333', 'tblTempUsageDetail_20' ) end [2025-01-29 15:46:31] Production.ERROR: pbx prc_insertCDR start [2025-01-29 15:46:31] Production.ERROR: pbx prc_insertCDR end [2025-01-29 15:46:31] Production.INFO: ==12925== Releasing lock... [2025-01-29 15:46:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 15:46:31] Production.INFO: 64.5 MB #Memory Used# [2025-01-29 15:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 12:47:05 [end_date_ymd] => 2025-01-29 15:47:05 [RateCDR] => 1 ) [2025-01-29 15:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 12:47:05' and `end` < '2025-01-29 15:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 15:47:22] Production.INFO: count ==4879 [2025-01-29 15:47:24] Production.ERROR: pbx CDR StartTime 2025-01-29 12:47:05 - End Time 2025-01-29 15:47:05 [2025-01-29 15:47:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 15:47:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357338', 'tblTempUsageDetail_20' ) start [2025-01-29 15:47:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357338', 'tblTempUsageDetail_20' ) end [2025-01-29 15:47:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357338', 'tblTempVendorCDR_20' ) start [2025-01-29 15:47:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357338', 'tblTempVendorCDR_20' ) end [2025-01-29 15:47:25] Production.INFO: ProcessCDR(1,14357338,1,1,2) [2025-01-29 15:47:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14357338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 15:47:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14357338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 15:47:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14357338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 15:47:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14357338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 15:47:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357338', 'tblTempUsageDetail_20' ) start [2025-01-29 15:47:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357338', 'tblTempUsageDetail_20' ) end [2025-01-29 15:47:29] Production.ERROR: pbx prc_insertCDR start [2025-01-29 15:47:29] Production.ERROR: pbx prc_insertCDR end [2025-01-29 15:47:29] Production.INFO: ==13039== Releasing lock... [2025-01-29 15:47:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 15:47:29] Production.INFO: 64.5 MB #Memory Used# [2025-01-29 15:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 12:48:05 [end_date_ymd] => 2025-01-29 15:48:05 [RateCDR] => 1 ) [2025-01-29 15:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 12:48:05' and `end` < '2025-01-29 15:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 15:48:21] Production.INFO: count ==4875 [2025-01-29 15:48:23] Production.ERROR: pbx CDR StartTime 2025-01-29 12:48:05 - End Time 2025-01-29 15:48:05 [2025-01-29 15:48:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 15:48:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357343', 'tblTempUsageDetail_20' ) start [2025-01-29 15:48:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357343', 'tblTempUsageDetail_20' ) end [2025-01-29 15:48:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357343', 'tblTempVendorCDR_20' ) start [2025-01-29 15:48:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357343', 'tblTempVendorCDR_20' ) end [2025-01-29 15:48:23] Production.INFO: ProcessCDR(1,14357343,1,1,2) [2025-01-29 15:48:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14357343,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 15:48:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14357343,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 15:48:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14357343,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 15:48:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14357343,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 15:48:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357343', 'tblTempUsageDetail_20' ) start [2025-01-29 15:48:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357343', 'tblTempUsageDetail_20' ) end [2025-01-29 15:48:28] Production.ERROR: pbx prc_insertCDR start [2025-01-29 15:48:28] Production.ERROR: pbx prc_insertCDR end [2025-01-29 15:48:28] Production.INFO: ==13159== Releasing lock... [2025-01-29 15:48:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 15:48:28] Production.INFO: 64.5 MB #Memory Used# [2025-01-29 15:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 12:49:05 [end_date_ymd] => 2025-01-29 15:49:05 [RateCDR] => 1 ) [2025-01-29 15:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 12:49:05' and `end` < '2025-01-29 15:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 15:49:22] Production.INFO: count ==4878 [2025-01-29 15:49:24] Production.ERROR: pbx CDR StartTime 2025-01-29 12:49:05 - End Time 2025-01-29 15:49:05 [2025-01-29 15:49:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 15:49:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357348', 'tblTempUsageDetail_20' ) start [2025-01-29 15:49:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357348', 'tblTempUsageDetail_20' ) end [2025-01-29 15:49:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357348', 'tblTempVendorCDR_20' ) start [2025-01-29 15:49:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357348', 'tblTempVendorCDR_20' ) end [2025-01-29 15:49:24] Production.INFO: ProcessCDR(1,14357348,1,1,2) [2025-01-29 15:49:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14357348,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 15:49:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14357348,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 15:49:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14357348,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 15:49:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14357348,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 15:49:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357348', 'tblTempUsageDetail_20' ) start [2025-01-29 15:49:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357348', 'tblTempUsageDetail_20' ) end [2025-01-29 15:49:27] Production.ERROR: pbx prc_insertCDR start [2025-01-29 15:49:27] Production.ERROR: pbx prc_insertCDR end [2025-01-29 15:49:27] Production.INFO: ==13283== Releasing lock... [2025-01-29 15:49:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 15:49:27] Production.INFO: 64.5 MB #Memory Used# [2025-01-29 15:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 12:50:05 [end_date_ymd] => 2025-01-29 15:50:05 [RateCDR] => 1 ) [2025-01-29 15:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 12:50:05' and `end` < '2025-01-29 15:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 15:50:19] Production.INFO: count ==4882 [2025-01-29 15:50:21] Production.ERROR: pbx CDR StartTime 2025-01-29 12:50:05 - End Time 2025-01-29 15:50:05 [2025-01-29 15:50:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 15:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357354', 'tblTempUsageDetail_20' ) start [2025-01-29 15:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357354', 'tblTempUsageDetail_20' ) end [2025-01-29 15:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357354', 'tblTempVendorCDR_20' ) start [2025-01-29 15:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357354', 'tblTempVendorCDR_20' ) end [2025-01-29 15:50:21] Production.INFO: ProcessCDR(1,14357354,1,1,2) [2025-01-29 15:50:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14357354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 15:50:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14357354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 15:50:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14357354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 15:50:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14357354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 15:50:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357354', 'tblTempUsageDetail_20' ) start [2025-01-29 15:50:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357354', 'tblTempUsageDetail_20' ) end [2025-01-29 15:50:26] Production.ERROR: pbx prc_insertCDR start [2025-01-29 15:50:26] Production.ERROR: pbx prc_insertCDR end [2025-01-29 15:50:26] Production.INFO: ==13390== Releasing lock... [2025-01-29 15:50:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 15:50:26] Production.INFO: 64.5 MB #Memory Used# [2025-01-29 15:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 12:51:05 [end_date_ymd] => 2025-01-29 15:51:05 [RateCDR] => 1 ) [2025-01-29 15:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 12:51:05' and `end` < '2025-01-29 15:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 15:51:22] Production.INFO: count ==4916 [2025-01-29 15:51:24] Production.ERROR: pbx CDR StartTime 2025-01-29 12:51:05 - End Time 2025-01-29 15:51:05 [2025-01-29 15:51:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 15:51:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357359', 'tblTempUsageDetail_20' ) start [2025-01-29 15:51:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357359', 'tblTempUsageDetail_20' ) end [2025-01-29 15:51:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357359', 'tblTempVendorCDR_20' ) start [2025-01-29 15:51:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357359', 'tblTempVendorCDR_20' ) end [2025-01-29 15:51:24] Production.INFO: ProcessCDR(1,14357359,1,1,2) [2025-01-29 15:51:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14357359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 15:51:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14357359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 15:51:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14357359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 15:51:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14357359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 15:51:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357359', 'tblTempUsageDetail_20' ) start [2025-01-29 15:51:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357359', 'tblTempUsageDetail_20' ) end [2025-01-29 15:51:29] Production.ERROR: pbx prc_insertCDR start [2025-01-29 15:51:29] Production.ERROR: pbx prc_insertCDR end [2025-01-29 15:51:29] Production.INFO: ==13475== Releasing lock... [2025-01-29 15:51:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 15:51:29] Production.INFO: 64.75 MB #Memory Used# [2025-01-29 15:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 12:52:05 [end_date_ymd] => 2025-01-29 15:52:05 [RateCDR] => 1 ) [2025-01-29 15:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 12:52:05' and `end` < '2025-01-29 15:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 15:52:23] Production.INFO: count ==4914 [2025-01-29 15:52:25] Production.ERROR: pbx CDR StartTime 2025-01-29 12:52:05 - End Time 2025-01-29 15:52:05 [2025-01-29 15:52:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 15:52:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357364', 'tblTempUsageDetail_20' ) start [2025-01-29 15:52:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357364', 'tblTempUsageDetail_20' ) end [2025-01-29 15:52:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357364', 'tblTempVendorCDR_20' ) start [2025-01-29 15:52:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357364', 'tblTempVendorCDR_20' ) end [2025-01-29 15:52:25] Production.INFO: ProcessCDR(1,14357364,1,1,2) [2025-01-29 15:52:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14357364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 15:52:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14357364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 15:52:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14357364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 15:52:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14357364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 15:52:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357364', 'tblTempUsageDetail_20' ) start [2025-01-29 15:52:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357364', 'tblTempUsageDetail_20' ) end [2025-01-29 15:52:30] Production.ERROR: pbx prc_insertCDR start [2025-01-29 15:52:30] Production.ERROR: pbx prc_insertCDR end [2025-01-29 15:52:30] Production.INFO: ==13560== Releasing lock... [2025-01-29 15:52:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 15:52:30] Production.INFO: 64.75 MB #Memory Used# [2025-01-29 15:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 12:53:05 [end_date_ymd] => 2025-01-29 15:53:05 [RateCDR] => 1 ) [2025-01-29 15:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 12:53:05' and `end` < '2025-01-29 15:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 15:53:23] Production.INFO: count ==4911 [2025-01-29 15:53:25] Production.ERROR: pbx CDR StartTime 2025-01-29 12:53:05 - End Time 2025-01-29 15:53:05 [2025-01-29 15:53:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 15:53:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357369', 'tblTempUsageDetail_20' ) start [2025-01-29 15:53:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357369', 'tblTempUsageDetail_20' ) end [2025-01-29 15:53:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357369', 'tblTempVendorCDR_20' ) start [2025-01-29 15:53:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357369', 'tblTempVendorCDR_20' ) end [2025-01-29 15:53:25] Production.INFO: ProcessCDR(1,14357369,1,1,2) [2025-01-29 15:53:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14357369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 15:53:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14357369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 15:53:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14357369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 15:53:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14357369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 15:53:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357369', 'tblTempUsageDetail_20' ) start [2025-01-29 15:53:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357369', 'tblTempUsageDetail_20' ) end [2025-01-29 15:53:30] Production.ERROR: pbx prc_insertCDR start [2025-01-29 15:53:30] Production.ERROR: pbx prc_insertCDR end [2025-01-29 15:53:30] Production.INFO: ==13644== Releasing lock... [2025-01-29 15:53:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 15:53:30] Production.INFO: 64.75 MB #Memory Used# [2025-01-29 15:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 12:54:06 [end_date_ymd] => 2025-01-29 15:54:06 [RateCDR] => 1 ) [2025-01-29 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-01-29 12:54:06' and `end` < '2025-01-29 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-01-29 15:54:19] Production.INFO: count ==4901 [2025-01-29 15:54:21] Production.ERROR: pbx CDR StartTime 2025-01-29 12:54:06 - End Time 2025-01-29 15:54:06 [2025-01-29 15:54:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 15:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357374', 'tblTempUsageDetail_20' ) start [2025-01-29 15:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357374', 'tblTempUsageDetail_20' ) end [2025-01-29 15:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357374', 'tblTempVendorCDR_20' ) start [2025-01-29 15:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357374', 'tblTempVendorCDR_20' ) end [2025-01-29 15:54:22] Production.INFO: ProcessCDR(1,14357374,1,1,2) [2025-01-29 15:54:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14357374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 15:54:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14357374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 15:54:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14357374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 15:54:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14357374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 15:54:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357374', 'tblTempUsageDetail_20' ) start [2025-01-29 15:54:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357374', 'tblTempUsageDetail_20' ) end [2025-01-29 15:54:26] Production.ERROR: pbx prc_insertCDR start [2025-01-29 15:54:26] Production.ERROR: pbx prc_insertCDR end [2025-01-29 15:54:26] Production.INFO: ==13729== Releasing lock... [2025-01-29 15:54:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 15:54:26] Production.INFO: 64.75 MB #Memory Used# [2025-01-29 15:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 12:55:05 [end_date_ymd] => 2025-01-29 15:55:05 [RateCDR] => 1 ) [2025-01-29 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-01-29 12:55:05' and `end` < '2025-01-29 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-01-29 15:55:23] Production.INFO: count ==4891 [2025-01-29 15:55:26] Production.ERROR: pbx CDR StartTime 2025-01-29 12:55:05 - End Time 2025-01-29 15:55:05 [2025-01-29 15:55:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 15:55:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357379', 'tblTempUsageDetail_20' ) start [2025-01-29 15:55:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357379', 'tblTempUsageDetail_20' ) end [2025-01-29 15:55:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357379', 'tblTempVendorCDR_20' ) start [2025-01-29 15:55:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357379', 'tblTempVendorCDR_20' ) end [2025-01-29 15:55:26] Production.INFO: ProcessCDR(1,14357379,1,1,2) [2025-01-29 15:55:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14357379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 15:55:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14357379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 15:55:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14357379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 15:55:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14357379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 15:55:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357379', 'tblTempUsageDetail_20' ) start [2025-01-29 15:55:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357379', 'tblTempUsageDetail_20' ) end [2025-01-29 15:55:29] Production.ERROR: pbx prc_insertCDR start [2025-01-29 15:55:29] Production.ERROR: pbx prc_insertCDR end [2025-01-29 15:55:29] Production.INFO: ==13811== Releasing lock... [2025-01-29 15:55:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 15:55:29] Production.INFO: 64.5 MB #Memory Used# [2025-01-29 15:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 12:56:06 [end_date_ymd] => 2025-01-29 15:56:06 [RateCDR] => 1 ) [2025-01-29 15:56:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 12:56:06' and `end` < '2025-01-29 15:56:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 15:56:23] Production.INFO: count ==4889 [2025-01-29 15:56:25] Production.ERROR: pbx CDR StartTime 2025-01-29 12:56:06 - End Time 2025-01-29 15:56:06 [2025-01-29 15:56:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 15:56:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357384', 'tblTempUsageDetail_20' ) start [2025-01-29 15:56:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357384', 'tblTempUsageDetail_20' ) end [2025-01-29 15:56:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357384', 'tblTempVendorCDR_20' ) start [2025-01-29 15:56:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357384', 'tblTempVendorCDR_20' ) end [2025-01-29 15:56:25] Production.INFO: ProcessCDR(1,14357384,1,1,2) [2025-01-29 15:56:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14357384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 15:56:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14357384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 15:56:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14357384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 15:56:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14357384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 15:56:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357384', 'tblTempUsageDetail_20' ) start [2025-01-29 15:56:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357384', 'tblTempUsageDetail_20' ) end [2025-01-29 15:56:30] Production.ERROR: pbx prc_insertCDR start [2025-01-29 15:56:30] Production.ERROR: pbx prc_insertCDR end [2025-01-29 15:56:30] Production.INFO: ==13964== Releasing lock... [2025-01-29 15:56:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 15:56:30] Production.INFO: 64.5 MB #Memory Used# [2025-01-29 15:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 12:57:05 [end_date_ymd] => 2025-01-29 15:57:05 [RateCDR] => 1 ) [2025-01-29 15:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 12:57:05' and `end` < '2025-01-29 15:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 15:57:23] Production.INFO: count ==4887 [2025-01-29 15:57:25] Production.ERROR: pbx CDR StartTime 2025-01-29 12:57:05 - End Time 2025-01-29 15:57:05 [2025-01-29 15:57:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 15:57:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357389', 'tblTempUsageDetail_20' ) start [2025-01-29 15:57:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357389', 'tblTempUsageDetail_20' ) end [2025-01-29 15:57:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357389', 'tblTempVendorCDR_20' ) start [2025-01-29 15:57:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357389', 'tblTempVendorCDR_20' ) end [2025-01-29 15:57:26] Production.INFO: ProcessCDR(1,14357389,1,1,2) [2025-01-29 15:57:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14357389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 15:57:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14357389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 15:57:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14357389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 15:57:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14357389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 15:57:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357389', 'tblTempUsageDetail_20' ) start [2025-01-29 15:57:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357389', 'tblTempUsageDetail_20' ) end [2025-01-29 15:57:31] Production.ERROR: pbx prc_insertCDR start [2025-01-29 15:57:31] Production.ERROR: pbx prc_insertCDR end [2025-01-29 15:57:31] Production.INFO: ==14050== Releasing lock... [2025-01-29 15:57:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 15:57:31] Production.INFO: 64.5 MB #Memory Used# [2025-01-29 15:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 12:58:06 [end_date_ymd] => 2025-01-29 15:58:06 [RateCDR] => 1 ) [2025-01-29 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-01-29 12:58:06' and `end` < '2025-01-29 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-01-29 15:58:27] Production.INFO: count ==4882 [2025-01-29 15:58:29] Production.ERROR: pbx CDR StartTime 2025-01-29 12:58:06 - End Time 2025-01-29 15:58:06 [2025-01-29 15:58:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 15:58:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357394', 'tblTempUsageDetail_20' ) start [2025-01-29 15:58:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357394', 'tblTempUsageDetail_20' ) end [2025-01-29 15:58:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357394', 'tblTempVendorCDR_20' ) start [2025-01-29 15:58:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357394', 'tblTempVendorCDR_20' ) end [2025-01-29 15:58:29] Production.INFO: ProcessCDR(1,14357394,1,1,2) [2025-01-29 15:58:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14357394,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 15:58:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14357394,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 15:58:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14357394,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 15:58:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14357394,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 15:58:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357394', 'tblTempUsageDetail_20' ) start [2025-01-29 15:58:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357394', 'tblTempUsageDetail_20' ) end [2025-01-29 15:58:33] Production.ERROR: pbx prc_insertCDR start [2025-01-29 15:58:33] Production.ERROR: pbx prc_insertCDR end [2025-01-29 15:58:33] Production.INFO: ==14138== Releasing lock... [2025-01-29 15:58:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 15:58:33] Production.INFO: 64.5 MB #Memory Used# [2025-01-29 15:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 12:59:05 [end_date_ymd] => 2025-01-29 15:59:05 [RateCDR] => 1 ) [2025-01-29 15:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 12:59:05' and `end` < '2025-01-29 15:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 15:59:22] Production.INFO: count ==4879 [2025-01-29 15:59:24] Production.ERROR: pbx CDR StartTime 2025-01-29 12:59:05 - End Time 2025-01-29 15:59:05 [2025-01-29 15:59:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 15:59:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357399', 'tblTempUsageDetail_20' ) start [2025-01-29 15:59:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357399', 'tblTempUsageDetail_20' ) end [2025-01-29 15:59:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357399', 'tblTempVendorCDR_20' ) start [2025-01-29 15:59:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357399', 'tblTempVendorCDR_20' ) end [2025-01-29 15:59:24] Production.INFO: ProcessCDR(1,14357399,1,1,2) [2025-01-29 15:59:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14357399,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 15:59:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14357399,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 15:59:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14357399,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 15:59:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14357399,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 15:59:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357399', 'tblTempUsageDetail_20' ) start [2025-01-29 15:59:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357399', 'tblTempUsageDetail_20' ) end [2025-01-29 15:59:28] Production.ERROR: pbx prc_insertCDR start [2025-01-29 15:59:28] Production.ERROR: pbx prc_insertCDR end [2025-01-29 15:59:29] Production.INFO: ==14222== Releasing lock... [2025-01-29 15:59:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 15:59:29] Production.INFO: 64.5 MB #Memory Used# [2025-01-29 16:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 13:00:06 [end_date_ymd] => 2025-01-29 16:00:06 [RateCDR] => 1 ) [2025-01-29 16:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 13:00:06' and `end` < '2025-01-29 16:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 16:00:20] Production.INFO: count ==4871 [2025-01-29 16:00:22] Production.ERROR: pbx CDR StartTime 2025-01-29 13:00:06 - End Time 2025-01-29 16:00:06 [2025-01-29 16:00:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 16:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357404', 'tblTempUsageDetail_20' ) start [2025-01-29 16:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357404', 'tblTempUsageDetail_20' ) end [2025-01-29 16:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357404', 'tblTempVendorCDR_20' ) start [2025-01-29 16:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357404', 'tblTempVendorCDR_20' ) end [2025-01-29 16:00:22] Production.INFO: ProcessCDR(1,14357404,1,1,2) [2025-01-29 16:00:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14357404,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 16:00:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14357404,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 16:00:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14357404,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 16:00:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14357404,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 16:00:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357404', 'tblTempUsageDetail_20' ) start [2025-01-29 16:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357404', 'tblTempUsageDetail_20' ) end [2025-01-29 16:00:27] Production.ERROR: pbx prc_insertCDR start [2025-01-29 16:00:27] Production.ERROR: pbx prc_insertCDR end [2025-01-29 16:00:27] Production.INFO: ==14313== Releasing lock... [2025-01-29 16:00:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 16:00:27] Production.INFO: 64.5 MB #Memory Used# [2025-01-29 16:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 13:01:05 [end_date_ymd] => 2025-01-29 16:01:05 [RateCDR] => 1 ) [2025-01-29 16:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 13:01:05' and `end` < '2025-01-29 16:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 16:01:25] Production.INFO: count ==4902 [2025-01-29 16:01:27] Production.ERROR: pbx CDR StartTime 2025-01-29 13:01:05 - End Time 2025-01-29 16:01:05 [2025-01-29 16:01:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 16:01:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357410', 'tblTempUsageDetail_20' ) start [2025-01-29 16:01:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357410', 'tblTempUsageDetail_20' ) end [2025-01-29 16:01:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357410', 'tblTempVendorCDR_20' ) start [2025-01-29 16:01:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357410', 'tblTempVendorCDR_20' ) end [2025-01-29 16:01:27] Production.INFO: ProcessCDR(1,14357410,1,1,2) [2025-01-29 16:01:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14357410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 16:01:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14357410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 16:01:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14357410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 16:01:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14357410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 16:01:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357410', 'tblTempUsageDetail_20' ) start [2025-01-29 16:01:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357410', 'tblTempUsageDetail_20' ) end [2025-01-29 16:01:30] Production.ERROR: pbx prc_insertCDR start [2025-01-29 16:01:30] Production.ERROR: pbx prc_insertCDR end [2025-01-29 16:01:30] Production.INFO: ==14411== Releasing lock... [2025-01-29 16:01:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 16:01:30] Production.INFO: 64.75 MB #Memory Used# [2025-01-29 16:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 13:02:05 [end_date_ymd] => 2025-01-29 16:02:05 [RateCDR] => 1 ) [2025-01-29 16:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 13:02:05' and `end` < '2025-01-29 16:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 16:02:32] Production.INFO: count ==4887 [2025-01-29 16:02:34] Production.ERROR: pbx CDR StartTime 2025-01-29 13:02:05 - End Time 2025-01-29 16:02:05 [2025-01-29 16:02:34] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 16:02:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357415', 'tblTempUsageDetail_20' ) start [2025-01-29 16:02:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357415', 'tblTempUsageDetail_20' ) end [2025-01-29 16:02:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357415', 'tblTempVendorCDR_20' ) start [2025-01-29 16:02:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357415', 'tblTempVendorCDR_20' ) end [2025-01-29 16:02:34] Production.INFO: ProcessCDR(1,14357415,1,1,2) [2025-01-29 16:02:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14357415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 16:02:37] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14357415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 16:02:37] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14357415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 16:02:39] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14357415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 16:02:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357415', 'tblTempUsageDetail_20' ) start [2025-01-29 16:02:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357415', 'tblTempUsageDetail_20' ) end [2025-01-29 16:02:39] Production.ERROR: pbx prc_insertCDR start [2025-01-29 16:02:39] Production.ERROR: pbx prc_insertCDR end [2025-01-29 16:02:39] Production.INFO: ==14494== Releasing lock... [2025-01-29 16:02:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 16:02:39] Production.INFO: 64.5 MB #Memory Used# [2025-01-29 16:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 13:03:05 [end_date_ymd] => 2025-01-29 16:03:05 [RateCDR] => 1 ) [2025-01-29 16:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 13:03:05' and `end` < '2025-01-29 16:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 16:03:31] Production.INFO: count ==4885 [2025-01-29 16:03:33] Production.ERROR: pbx CDR StartTime 2025-01-29 13:03:05 - End Time 2025-01-29 16:03:05 [2025-01-29 16:03:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 16:03:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357420', 'tblTempUsageDetail_20' ) start [2025-01-29 16:03:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357420', 'tblTempUsageDetail_20' ) end [2025-01-29 16:03:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357420', 'tblTempVendorCDR_20' ) start [2025-01-29 16:03:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357420', 'tblTempVendorCDR_20' ) end [2025-01-29 16:03:33] Production.INFO: ProcessCDR(1,14357420,1,1,2) [2025-01-29 16:03:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14357420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 16:03:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14357420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 16:03:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14357420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 16:03:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14357420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 16:03:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357420', 'tblTempUsageDetail_20' ) start [2025-01-29 16:03:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357420', 'tblTempUsageDetail_20' ) end [2025-01-29 16:03:38] Production.ERROR: pbx prc_insertCDR start [2025-01-29 16:03:38] Production.ERROR: pbx prc_insertCDR end [2025-01-29 16:03:38] Production.INFO: ==14587== Releasing lock... [2025-01-29 16:03:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 16:03:38] Production.INFO: 64.5 MB #Memory Used# [2025-01-29 16:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 13:04:06 [end_date_ymd] => 2025-01-29 16:04:06 [RateCDR] => 1 ) [2025-01-29 16:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 13:04:06' and `end` < '2025-01-29 16:04:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 16:04:28] Production.INFO: count ==4873 [2025-01-29 16:04:30] Production.ERROR: pbx CDR StartTime 2025-01-29 13:04:06 - End Time 2025-01-29 16:04:06 [2025-01-29 16:04:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 16:04:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357425', 'tblTempUsageDetail_20' ) start [2025-01-29 16:04:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357425', 'tblTempUsageDetail_20' ) end [2025-01-29 16:04:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357425', 'tblTempVendorCDR_20' ) start [2025-01-29 16:04:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357425', 'tblTempVendorCDR_20' ) end [2025-01-29 16:04:30] Production.INFO: ProcessCDR(1,14357425,1,1,2) [2025-01-29 16:04:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14357425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 16:04:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14357425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 16:04:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14357425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 16:04:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14357425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 16:04:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357425', 'tblTempUsageDetail_20' ) start [2025-01-29 16:04:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357425', 'tblTempUsageDetail_20' ) end [2025-01-29 16:04:35] Production.ERROR: pbx prc_insertCDR start [2025-01-29 16:04:35] Production.ERROR: pbx prc_insertCDR end [2025-01-29 16:04:35] Production.INFO: ==14677== Releasing lock... [2025-01-29 16:04:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 16:04:35] Production.INFO: 64.75 MB #Memory Used# [2025-01-29 16:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 13:05:05 [end_date_ymd] => 2025-01-29 16:05:05 [RateCDR] => 1 ) [2025-01-29 16:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 13:05:05' and `end` < '2025-01-29 16:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 16:05:33] Production.INFO: count ==4885 [2025-01-29 16:05:35] Production.ERROR: pbx CDR StartTime 2025-01-29 13:05:05 - End Time 2025-01-29 16:05:05 [2025-01-29 16:05:35] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 16:05:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357430', 'tblTempUsageDetail_20' ) start [2025-01-29 16:05:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357430', 'tblTempUsageDetail_20' ) end [2025-01-29 16:05:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357430', 'tblTempVendorCDR_20' ) start [2025-01-29 16:05:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357430', 'tblTempVendorCDR_20' ) end [2025-01-29 16:05:35] Production.INFO: ProcessCDR(1,14357430,1,1,2) [2025-01-29 16:05:35] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14357430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 16:05:37] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14357430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 16:05:37] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14357430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 16:05:39] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14357430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 16:05:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357430', 'tblTempUsageDetail_20' ) start [2025-01-29 16:05:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357430', 'tblTempUsageDetail_20' ) end [2025-01-29 16:05:40] Production.ERROR: pbx prc_insertCDR start [2025-01-29 16:05:40] Production.ERROR: pbx prc_insertCDR end [2025-01-29 16:05:40] Production.INFO: ==14758== Releasing lock... [2025-01-29 16:05:40] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 16:05:40] Production.INFO: 64.5 MB #Memory Used# [2025-01-29 16:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 13:06:05 [end_date_ymd] => 2025-01-29 16:06:05 [RateCDR] => 1 ) [2025-01-29 16:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 13:06:05' and `end` < '2025-01-29 16:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 16:06:28] Production.INFO: count ==4890 [2025-01-29 16:06:30] Production.ERROR: pbx CDR StartTime 2025-01-29 13:06:05 - End Time 2025-01-29 16:06:05 [2025-01-29 16:06:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 16:06:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357435', 'tblTempUsageDetail_20' ) start [2025-01-29 16:06:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357435', 'tblTempUsageDetail_20' ) end [2025-01-29 16:06:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357435', 'tblTempVendorCDR_20' ) start [2025-01-29 16:06:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357435', 'tblTempVendorCDR_20' ) end [2025-01-29 16:06:30] Production.INFO: ProcessCDR(1,14357435,1,1,2) [2025-01-29 16:06:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14357435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 16:06:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14357435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 16:06:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14357435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 16:06:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14357435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 16:06:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357435', 'tblTempUsageDetail_20' ) start [2025-01-29 16:06:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357435', 'tblTempUsageDetail_20' ) end [2025-01-29 16:06:36] Production.ERROR: pbx prc_insertCDR start [2025-01-29 16:06:36] Production.ERROR: pbx prc_insertCDR end [2025-01-29 16:06:36] Production.INFO: ==14845== Releasing lock... [2025-01-29 16:06:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 16:06:36] Production.INFO: 64.5 MB #Memory Used# [2025-01-29 16:07:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 13:07:04 [end_date_ymd] => 2025-01-29 16:07:04 [RateCDR] => 1 ) [2025-01-29 16:07:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 13:07:04' and `end` < '2025-01-29 16:07:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 16:07:21] Production.INFO: count ==4907 [2025-01-29 16:07:23] Production.ERROR: pbx CDR StartTime 2025-01-29 13:07:04 - End Time 2025-01-29 16:07:04 [2025-01-29 16:07:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 16:07:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357440', 'tblTempUsageDetail_20' ) start [2025-01-29 16:07:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357440', 'tblTempUsageDetail_20' ) end [2025-01-29 16:07:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357440', 'tblTempVendorCDR_20' ) start [2025-01-29 16:07:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357440', 'tblTempVendorCDR_20' ) end [2025-01-29 16:07:23] Production.INFO: ProcessCDR(1,14357440,1,1,2) [2025-01-29 16:07:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14357440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 16:07:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14357440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 16:07:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14357440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 16:07:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14357440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 16:07:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357440', 'tblTempUsageDetail_20' ) start [2025-01-29 16:07:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357440', 'tblTempUsageDetail_20' ) end [2025-01-29 16:07:28] Production.ERROR: pbx prc_insertCDR start [2025-01-29 16:07:28] Production.ERROR: pbx prc_insertCDR end [2025-01-29 16:07:28] Production.INFO: ==14935== Releasing lock... [2025-01-29 16:07:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 16:07:28] Production.INFO: 64.75 MB #Memory Used# [2025-01-29 16:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 13:08:05 [end_date_ymd] => 2025-01-29 16:08:05 [RateCDR] => 1 ) [2025-01-29 16:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 13:08:05' and `end` < '2025-01-29 16:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 16:08:21] Production.INFO: count ==4911 [2025-01-29 16:08:23] Production.ERROR: pbx CDR StartTime 2025-01-29 13:08:05 - End Time 2025-01-29 16:08:05 [2025-01-29 16:08:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 16:08:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357445', 'tblTempUsageDetail_20' ) start [2025-01-29 16:08:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357445', 'tblTempUsageDetail_20' ) end [2025-01-29 16:08:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357445', 'tblTempVendorCDR_20' ) start [2025-01-29 16:08:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357445', 'tblTempVendorCDR_20' ) end [2025-01-29 16:08:23] Production.INFO: ProcessCDR(1,14357445,1,1,2) [2025-01-29 16:08:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14357445,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 16:08:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14357445,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 16:08:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14357445,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 16:08:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14357445,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 16:08:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357445', 'tblTempUsageDetail_20' ) start [2025-01-29 16:08:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357445', 'tblTempUsageDetail_20' ) end [2025-01-29 16:08:28] Production.ERROR: pbx prc_insertCDR start [2025-01-29 16:08:28] Production.ERROR: pbx prc_insertCDR end [2025-01-29 16:08:28] Production.INFO: ==15025== Releasing lock... [2025-01-29 16:08:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 16:08:28] Production.INFO: 64.75 MB #Memory Used# [2025-01-29 16:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 13:09:06 [end_date_ymd] => 2025-01-29 16:09:06 [RateCDR] => 1 ) [2025-01-29 16:09:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 13:09:06' and `end` < '2025-01-29 16:09:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 16:09:20] Production.INFO: count ==4913 [2025-01-29 16:09:22] Production.ERROR: pbx CDR StartTime 2025-01-29 13:09:06 - End Time 2025-01-29 16:09:06 [2025-01-29 16:09:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 16:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357450', 'tblTempUsageDetail_20' ) start [2025-01-29 16:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357450', 'tblTempUsageDetail_20' ) end [2025-01-29 16:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357450', 'tblTempVendorCDR_20' ) start [2025-01-29 16:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357450', 'tblTempVendorCDR_20' ) end [2025-01-29 16:09:22] Production.INFO: ProcessCDR(1,14357450,1,1,2) [2025-01-29 16:09:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14357450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 16:09:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14357450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 16:09:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14357450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 16:09:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14357450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 16:09:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357450', 'tblTempUsageDetail_20' ) start [2025-01-29 16:09:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357450', 'tblTempUsageDetail_20' ) end [2025-01-29 16:09:27] Production.ERROR: pbx prc_insertCDR start [2025-01-29 16:09:27] Production.ERROR: pbx prc_insertCDR end [2025-01-29 16:09:27] Production.INFO: ==15109== Releasing lock... [2025-01-29 16:09:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 16:09:27] Production.INFO: 64.75 MB #Memory Used# [2025-01-29 16:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 13:10:06 [end_date_ymd] => 2025-01-29 16:10:06 [RateCDR] => 1 ) [2025-01-29 16:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 13:10:06' and `end` < '2025-01-29 16:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 16:10:23] Production.INFO: count ==4888 [2025-01-29 16:10:25] Production.ERROR: pbx CDR StartTime 2025-01-29 13:10:06 - End Time 2025-01-29 16:10:06 [2025-01-29 16:10:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 16:10:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357456', 'tblTempUsageDetail_20' ) start [2025-01-29 16:10:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357456', 'tblTempUsageDetail_20' ) end [2025-01-29 16:10:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357456', 'tblTempVendorCDR_20' ) start [2025-01-29 16:10:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357456', 'tblTempVendorCDR_20' ) end [2025-01-29 16:10:25] Production.INFO: ProcessCDR(1,14357456,1,1,2) [2025-01-29 16:10:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14357456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 16:10:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14357456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 16:10:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14357456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 16:10:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14357456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 16:10:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357456', 'tblTempUsageDetail_20' ) start [2025-01-29 16:10:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357456', 'tblTempUsageDetail_20' ) end [2025-01-29 16:10:30] Production.ERROR: pbx prc_insertCDR start [2025-01-29 16:10:30] Production.ERROR: pbx prc_insertCDR end [2025-01-29 16:10:30] Production.INFO: ==15193== Releasing lock... [2025-01-29 16:10:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 16:10:30] Production.INFO: 64.5 MB #Memory Used# [2025-01-29 16:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 13:11:06 [end_date_ymd] => 2025-01-29 16:11:06 [RateCDR] => 1 ) [2025-01-29 16:11:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 13:11:06' and `end` < '2025-01-29 16:11:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 16:11:26] Production.INFO: count ==4872 [2025-01-29 16:11:28] Production.ERROR: pbx CDR StartTime 2025-01-29 13:11:06 - End Time 2025-01-29 16:11:06 [2025-01-29 16:11:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 16:11:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357461', 'tblTempUsageDetail_20' ) start [2025-01-29 16:11:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357461', 'tblTempUsageDetail_20' ) end [2025-01-29 16:11:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357461', 'tblTempVendorCDR_20' ) start [2025-01-29 16:11:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357461', 'tblTempVendorCDR_20' ) end [2025-01-29 16:11:28] Production.INFO: ProcessCDR(1,14357461,1,1,2) [2025-01-29 16:11:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14357461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 16:11:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14357461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 16:11:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14357461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 16:11:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14357461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 16:11:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357461', 'tblTempUsageDetail_20' ) start [2025-01-29 16:11:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357461', 'tblTempUsageDetail_20' ) end [2025-01-29 16:11:33] Production.ERROR: pbx prc_insertCDR start [2025-01-29 16:11:33] Production.ERROR: pbx prc_insertCDR end [2025-01-29 16:11:33] Production.INFO: ==15316== Releasing lock... [2025-01-29 16:11:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 16:11:33] Production.INFO: 64.5 MB #Memory Used# [2025-01-29 16:12:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 13:12:04 [end_date_ymd] => 2025-01-29 16:12:04 [RateCDR] => 1 ) [2025-01-29 16:12:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 13:12:04' and `end` < '2025-01-29 16:12:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 16:12:21] Production.INFO: count ==4870 [2025-01-29 16:12:23] Production.ERROR: pbx CDR StartTime 2025-01-29 13:12:04 - End Time 2025-01-29 16:12:04 [2025-01-29 16:12:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 16:12:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357466', 'tblTempUsageDetail_20' ) start [2025-01-29 16:12:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357466', 'tblTempUsageDetail_20' ) end [2025-01-29 16:12:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357466', 'tblTempVendorCDR_20' ) start [2025-01-29 16:12:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357466', 'tblTempVendorCDR_20' ) end [2025-01-29 16:12:23] Production.INFO: ProcessCDR(1,14357466,1,1,2) [2025-01-29 16:12:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14357466,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 16:12:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14357466,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 16:12:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14357466,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 16:12:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14357466,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 16:12:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357466', 'tblTempUsageDetail_20' ) start [2025-01-29 16:12:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357466', 'tblTempUsageDetail_20' ) end [2025-01-29 16:12:28] Production.ERROR: pbx prc_insertCDR start [2025-01-29 16:12:28] Production.ERROR: pbx prc_insertCDR end [2025-01-29 16:12:28] Production.INFO: ==15410== Releasing lock... [2025-01-29 16:12:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 16:12:28] Production.INFO: 64.5 MB #Memory Used# [2025-01-29 16:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 13:13:05 [end_date_ymd] => 2025-01-29 16:13:05 [RateCDR] => 1 ) [2025-01-29 16:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 13:13:05' and `end` < '2025-01-29 16:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 16:13:23] Production.INFO: count ==4873 [2025-01-29 16:13:25] Production.ERROR: pbx CDR StartTime 2025-01-29 13:13:05 - End Time 2025-01-29 16:13:05 [2025-01-29 16:13:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 16:13:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357471', 'tblTempUsageDetail_20' ) start [2025-01-29 16:13:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357471', 'tblTempUsageDetail_20' ) end [2025-01-29 16:13:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357471', 'tblTempVendorCDR_20' ) start [2025-01-29 16:13:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357471', 'tblTempVendorCDR_20' ) end [2025-01-29 16:13:25] Production.INFO: ProcessCDR(1,14357471,1,1,2) [2025-01-29 16:13:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14357471,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 16:13:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14357471,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 16:13:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14357471,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 16:13:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14357471,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 16:13:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357471', 'tblTempUsageDetail_20' ) start [2025-01-29 16:13:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357471', 'tblTempUsageDetail_20' ) end [2025-01-29 16:13:30] Production.ERROR: pbx prc_insertCDR start [2025-01-29 16:13:30] Production.ERROR: pbx prc_insertCDR end [2025-01-29 16:13:30] Production.INFO: ==15495== Releasing lock... [2025-01-29 16:13:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 16:13:30] Production.INFO: 64.5 MB #Memory Used# [2025-01-29 16:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 13:14:05 [end_date_ymd] => 2025-01-29 16:14:05 [RateCDR] => 1 ) [2025-01-29 16:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 13:14:05' and `end` < '2025-01-29 16:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 16:14:26] Production.INFO: count ==4888 [2025-01-29 16:14:28] Production.ERROR: pbx CDR StartTime 2025-01-29 13:14:05 - End Time 2025-01-29 16:14:05 [2025-01-29 16:14:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 16:14:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357476', 'tblTempUsageDetail_20' ) start [2025-01-29 16:14:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357476', 'tblTempUsageDetail_20' ) end [2025-01-29 16:14:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357476', 'tblTempVendorCDR_20' ) start [2025-01-29 16:14:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357476', 'tblTempVendorCDR_20' ) end [2025-01-29 16:14:28] Production.INFO: ProcessCDR(1,14357476,1,1,2) [2025-01-29 16:14:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14357476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 16:14:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14357476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 16:14:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14357476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 16:14:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14357476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 16:14:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357476', 'tblTempUsageDetail_20' ) start [2025-01-29 16:14:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357476', 'tblTempUsageDetail_20' ) end [2025-01-29 16:14:33] Production.ERROR: pbx prc_insertCDR start [2025-01-29 16:14:33] Production.ERROR: pbx prc_insertCDR end [2025-01-29 16:14:33] Production.INFO: ==15572== Releasing lock... [2025-01-29 16:14:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 16:14:33] Production.INFO: 64.5 MB #Memory Used# [2025-01-29 16:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 13:15:06 [end_date_ymd] => 2025-01-29 16:15:06 [RateCDR] => 1 ) [2025-01-29 16:15:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 13:15:06' and `end` < '2025-01-29 16:15:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 16:15:26] Production.INFO: count ==4905 [2025-01-29 16:15:28] Production.ERROR: pbx CDR StartTime 2025-01-29 13:15:06 - End Time 2025-01-29 16:15:06 [2025-01-29 16:15:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 16:15:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357481', 'tblTempUsageDetail_20' ) start [2025-01-29 16:15:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357481', 'tblTempUsageDetail_20' ) end [2025-01-29 16:15:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357481', 'tblTempVendorCDR_20' ) start [2025-01-29 16:15:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357481', 'tblTempVendorCDR_20' ) end [2025-01-29 16:15:28] Production.INFO: ProcessCDR(1,14357481,1,1,2) [2025-01-29 16:15:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14357481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 16:15:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14357481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 16:15:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14357481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 16:15:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14357481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 16:15:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357481', 'tblTempUsageDetail_20' ) start [2025-01-29 16:15:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357481', 'tblTempUsageDetail_20' ) end [2025-01-29 16:15:33] Production.ERROR: pbx prc_insertCDR start [2025-01-29 16:15:33] Production.ERROR: pbx prc_insertCDR end [2025-01-29 16:15:33] Production.INFO: ==15661== Releasing lock... [2025-01-29 16:15:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 16:15:33] Production.INFO: 64.75 MB #Memory Used# [2025-01-29 16:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 13:16:05 [end_date_ymd] => 2025-01-29 16:16:05 [RateCDR] => 1 ) [2025-01-29 16:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 13:16:05' and `end` < '2025-01-29 16:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 16:16:24] Production.INFO: count ==4890 [2025-01-29 16:16:26] Production.ERROR: pbx CDR StartTime 2025-01-29 13:16:05 - End Time 2025-01-29 16:16:05 [2025-01-29 16:16:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 16:16:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357486', 'tblTempUsageDetail_20' ) start [2025-01-29 16:16:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357486', 'tblTempUsageDetail_20' ) end [2025-01-29 16:16:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357486', 'tblTempVendorCDR_20' ) start [2025-01-29 16:16:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357486', 'tblTempVendorCDR_20' ) end [2025-01-29 16:16:26] Production.INFO: ProcessCDR(1,14357486,1,1,2) [2025-01-29 16:16:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14357486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 16:16:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14357486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 16:16:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14357486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 16:16:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14357486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 16:16:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357486', 'tblTempUsageDetail_20' ) start [2025-01-29 16:16:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357486', 'tblTempUsageDetail_20' ) end [2025-01-29 16:16:31] Production.ERROR: pbx prc_insertCDR start [2025-01-29 16:16:31] Production.ERROR: pbx prc_insertCDR end [2025-01-29 16:16:31] Production.INFO: ==15745== Releasing lock... [2025-01-29 16:16:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 16:16:31] Production.INFO: 64.5 MB #Memory Used# [2025-01-29 16:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 13:17:06 [end_date_ymd] => 2025-01-29 16:17:06 [RateCDR] => 1 ) [2025-01-29 16:17:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 13:17:06' and `end` < '2025-01-29 16:17:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 16:17:21] Production.INFO: count ==4875 [2025-01-29 16:17:23] Production.ERROR: pbx CDR StartTime 2025-01-29 13:17:06 - End Time 2025-01-29 16:17:06 [2025-01-29 16:17:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 16:17:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357491', 'tblTempUsageDetail_20' ) start [2025-01-29 16:17:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357491', 'tblTempUsageDetail_20' ) end [2025-01-29 16:17:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357491', 'tblTempVendorCDR_20' ) start [2025-01-29 16:17:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357491', 'tblTempVendorCDR_20' ) end [2025-01-29 16:17:23] Production.INFO: ProcessCDR(1,14357491,1,1,2) [2025-01-29 16:17:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14357491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 16:17:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14357491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 16:17:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14357491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 16:17:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14357491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 16:17:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357491', 'tblTempUsageDetail_20' ) start [2025-01-29 16:17:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357491', 'tblTempUsageDetail_20' ) end [2025-01-29 16:17:28] Production.ERROR: pbx prc_insertCDR start [2025-01-29 16:17:28] Production.ERROR: pbx prc_insertCDR end [2025-01-29 16:17:28] Production.INFO: ==15824== Releasing lock... [2025-01-29 16:17:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 16:17:28] Production.INFO: 64.5 MB #Memory Used# [2025-01-29 16:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 13:18:05 [end_date_ymd] => 2025-01-29 16:18:05 [RateCDR] => 1 ) [2025-01-29 16:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 13:18:05' and `end` < '2025-01-29 16:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 16:18:18] Production.INFO: count ==4872 [2025-01-29 16:18:20] Production.ERROR: pbx CDR StartTime 2025-01-29 13:18:05 - End Time 2025-01-29 16:18:05 [2025-01-29 16:18:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 16:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357496', 'tblTempUsageDetail_20' ) start [2025-01-29 16:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357496', 'tblTempUsageDetail_20' ) end [2025-01-29 16:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357496', 'tblTempVendorCDR_20' ) start [2025-01-29 16:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357496', 'tblTempVendorCDR_20' ) end [2025-01-29 16:18:21] Production.INFO: ProcessCDR(1,14357496,1,1,2) [2025-01-29 16:18:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14357496,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 16:18:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14357496,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 16:18:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14357496,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 16:18:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14357496,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 16:18:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357496', 'tblTempUsageDetail_20' ) start [2025-01-29 16:18:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357496', 'tblTempUsageDetail_20' ) end [2025-01-29 16:18:25] Production.ERROR: pbx prc_insertCDR start [2025-01-29 16:18:25] Production.ERROR: pbx prc_insertCDR end [2025-01-29 16:18:25] Production.INFO: ==15919== Releasing lock... [2025-01-29 16:18:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 16:18:25] Production.INFO: 64.5 MB #Memory Used# [2025-01-29 16:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 13:19:05 [end_date_ymd] => 2025-01-29 16:19:05 [RateCDR] => 1 ) [2025-01-29 16:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 13:19:05' and `end` < '2025-01-29 16:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 16:19:26] Production.INFO: count ==4890 [2025-01-29 16:19:28] Production.ERROR: pbx CDR StartTime 2025-01-29 13:19:05 - End Time 2025-01-29 16:19:05 [2025-01-29 16:19:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 16:19:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357501', 'tblTempUsageDetail_20' ) start [2025-01-29 16:19:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357501', 'tblTempUsageDetail_20' ) end [2025-01-29 16:19:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357501', 'tblTempVendorCDR_20' ) start [2025-01-29 16:19:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357501', 'tblTempVendorCDR_20' ) end [2025-01-29 16:19:29] Production.INFO: ProcessCDR(1,14357501,1,1,2) [2025-01-29 16:19:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14357501,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 16:19:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14357501,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 16:19:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14357501,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 16:19:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14357501,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 16:19:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357501', 'tblTempUsageDetail_20' ) start [2025-01-29 16:19:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357501', 'tblTempUsageDetail_20' ) end [2025-01-29 16:19:33] Production.ERROR: pbx prc_insertCDR start [2025-01-29 16:19:33] Production.ERROR: pbx prc_insertCDR end [2025-01-29 16:19:34] Production.INFO: ==15999== Releasing lock... [2025-01-29 16:19:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 16:19:34] Production.INFO: 64.5 MB #Memory Used# [2025-01-29 16:20:07] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 13:20:07 [end_date_ymd] => 2025-01-29 16:20:07 [RateCDR] => 1 ) [2025-01-29 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-01-29 13:20:07' and `end` < '2025-01-29 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-01-29 16:20:29] Production.INFO: count ==4871 [2025-01-29 16:20:31] Production.ERROR: pbx CDR StartTime 2025-01-29 13:20:07 - End Time 2025-01-29 16:20:07 [2025-01-29 16:20:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 16:20:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357507', 'tblTempUsageDetail_20' ) start [2025-01-29 16:20:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357507', 'tblTempUsageDetail_20' ) end [2025-01-29 16:20:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357507', 'tblTempVendorCDR_20' ) start [2025-01-29 16:20:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357507', 'tblTempVendorCDR_20' ) end [2025-01-29 16:20:31] Production.INFO: ProcessCDR(1,14357507,1,1,2) [2025-01-29 16:20:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14357507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 16:20:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14357507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 16:20:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14357507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 16:20:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14357507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 16:20:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357507', 'tblTempUsageDetail_20' ) start [2025-01-29 16:20:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357507', 'tblTempUsageDetail_20' ) end [2025-01-29 16:20:36] Production.ERROR: pbx prc_insertCDR start [2025-01-29 16:20:36] Production.ERROR: pbx prc_insertCDR end [2025-01-29 16:20:36] Production.INFO: ==16108== Releasing lock... [2025-01-29 16:20:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 16:20:36] Production.INFO: 64.5 MB #Memory Used# [2025-01-29 16:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 13:21:05 [end_date_ymd] => 2025-01-29 16:21:05 [RateCDR] => 1 ) [2025-01-29 16:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 13:21:05' and `end` < '2025-01-29 16:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 16:21:23] Production.INFO: count ==4909 [2025-01-29 16:21:25] Production.ERROR: pbx CDR StartTime 2025-01-29 13:21:05 - End Time 2025-01-29 16:21:05 [2025-01-29 16:21:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 16:21:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357512', 'tblTempUsageDetail_20' ) start [2025-01-29 16:21:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357512', 'tblTempUsageDetail_20' ) end [2025-01-29 16:21:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357512', 'tblTempVendorCDR_20' ) start [2025-01-29 16:21:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357512', 'tblTempVendorCDR_20' ) end [2025-01-29 16:21:25] Production.INFO: ProcessCDR(1,14357512,1,1,2) [2025-01-29 16:21:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14357512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 16:21:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14357512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 16:21:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14357512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 16:21:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14357512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 16:21:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357512', 'tblTempUsageDetail_20' ) start [2025-01-29 16:21:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357512', 'tblTempUsageDetail_20' ) end [2025-01-29 16:21:30] Production.ERROR: pbx prc_insertCDR start [2025-01-29 16:21:30] Production.ERROR: pbx prc_insertCDR end [2025-01-29 16:21:30] Production.INFO: ==16221== Releasing lock... [2025-01-29 16:21:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 16:21:30] Production.INFO: 64.75 MB #Memory Used# [2025-01-29 16:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 13:22:06 [end_date_ymd] => 2025-01-29 16:22:06 [RateCDR] => 1 ) [2025-01-29 16:22:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 13:22:06' and `end` < '2025-01-29 16:22:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 16:22:26] Production.INFO: count ==4914 [2025-01-29 16:22:28] Production.ERROR: pbx CDR StartTime 2025-01-29 13:22:06 - End Time 2025-01-29 16:22:06 [2025-01-29 16:22:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 16:22:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357517', 'tblTempUsageDetail_20' ) start [2025-01-29 16:22:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357517', 'tblTempUsageDetail_20' ) end [2025-01-29 16:22:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357517', 'tblTempVendorCDR_20' ) start [2025-01-29 16:22:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357517', 'tblTempVendorCDR_20' ) end [2025-01-29 16:22:28] Production.INFO: ProcessCDR(1,14357517,1,1,2) [2025-01-29 16:22:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14357517,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 16:22:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14357517,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 16:22:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14357517,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 16:22:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14357517,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 16:22:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357517', 'tblTempUsageDetail_20' ) start [2025-01-29 16:22:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357517', 'tblTempUsageDetail_20' ) end [2025-01-29 16:22:33] Production.ERROR: pbx prc_insertCDR start [2025-01-29 16:22:33] Production.ERROR: pbx prc_insertCDR end [2025-01-29 16:22:33] Production.INFO: ==16328== Releasing lock... [2025-01-29 16:22:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 16:22:33] Production.INFO: 64.75 MB #Memory Used# [2025-01-29 16:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 13:23:05 [end_date_ymd] => 2025-01-29 16:23:05 [RateCDR] => 1 ) [2025-01-29 16:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 13:23:05' and `end` < '2025-01-29 16:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 16:23:35] Production.INFO: count ==4902 [2025-01-29 16:23:37] Production.ERROR: pbx CDR StartTime 2025-01-29 13:23:05 - End Time 2025-01-29 16:23:05 [2025-01-29 16:23:37] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 16:23:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357522', 'tblTempUsageDetail_20' ) start [2025-01-29 16:23:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357522', 'tblTempUsageDetail_20' ) end [2025-01-29 16:23:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357522', 'tblTempVendorCDR_20' ) start [2025-01-29 16:23:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357522', 'tblTempVendorCDR_20' ) end [2025-01-29 16:23:37] Production.INFO: ProcessCDR(1,14357522,1,1,2) [2025-01-29 16:23:37] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14357522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 16:23:40] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14357522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 16:23:40] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14357522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 16:23:42] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14357522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 16:23:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357522', 'tblTempUsageDetail_20' ) start [2025-01-29 16:23:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357522', 'tblTempUsageDetail_20' ) end [2025-01-29 16:23:42] Production.ERROR: pbx prc_insertCDR start [2025-01-29 16:23:42] Production.ERROR: pbx prc_insertCDR end [2025-01-29 16:23:42] Production.INFO: ==16442== Releasing lock... [2025-01-29 16:23:42] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 16:23:42] Production.INFO: 64.75 MB #Memory Used# [2025-01-29 16:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 13:24:05 [end_date_ymd] => 2025-01-29 16:24:05 [RateCDR] => 1 ) [2025-01-29 16:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 13:24:05' and `end` < '2025-01-29 16:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 16:24:32] Production.INFO: count ==4918 [2025-01-29 16:24:34] Production.ERROR: pbx CDR StartTime 2025-01-29 13:24:05 - End Time 2025-01-29 16:24:05 [2025-01-29 16:24:34] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 16:24:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357527', 'tblTempUsageDetail_20' ) start [2025-01-29 16:24:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357527', 'tblTempUsageDetail_20' ) end [2025-01-29 16:24:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357527', 'tblTempVendorCDR_20' ) start [2025-01-29 16:24:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357527', 'tblTempVendorCDR_20' ) end [2025-01-29 16:24:34] Production.INFO: ProcessCDR(1,14357527,1,1,2) [2025-01-29 16:24:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14357527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 16:24:37] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14357527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 16:24:37] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14357527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 16:24:39] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14357527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 16:24:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357527', 'tblTempUsageDetail_20' ) start [2025-01-29 16:24:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357527', 'tblTempUsageDetail_20' ) end [2025-01-29 16:24:39] Production.ERROR: pbx prc_insertCDR start [2025-01-29 16:24:39] Production.ERROR: pbx prc_insertCDR end [2025-01-29 16:24:39] Production.INFO: ==16553== Releasing lock... [2025-01-29 16:24:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 16:24:39] Production.INFO: 64.75 MB #Memory Used# [2025-01-29 16:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 13:25:05 [end_date_ymd] => 2025-01-29 16:25:05 [RateCDR] => 1 ) [2025-01-29 16:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 13:25:05' and `end` < '2025-01-29 16:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 16:25:28] Production.INFO: count ==4933 [2025-01-29 16:25:30] Production.ERROR: pbx CDR StartTime 2025-01-29 13:25:05 - End Time 2025-01-29 16:25:05 [2025-01-29 16:25:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 16:25:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357532', 'tblTempUsageDetail_20' ) start [2025-01-29 16:25:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357532', 'tblTempUsageDetail_20' ) end [2025-01-29 16:25:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357532', 'tblTempVendorCDR_20' ) start [2025-01-29 16:25:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357532', 'tblTempVendorCDR_20' ) end [2025-01-29 16:25:30] Production.INFO: ProcessCDR(1,14357532,1,1,2) [2025-01-29 16:25:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14357532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 16:25:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14357532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 16:25:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14357532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 16:25:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14357532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 16:25:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357532', 'tblTempUsageDetail_20' ) start [2025-01-29 16:25:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357532', 'tblTempUsageDetail_20' ) end [2025-01-29 16:25:35] Production.ERROR: pbx prc_insertCDR start [2025-01-29 16:25:35] Production.ERROR: pbx prc_insertCDR end [2025-01-29 16:25:35] Production.INFO: ==16664== Releasing lock... [2025-01-29 16:25:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 16:25:35] Production.INFO: 65 MB #Memory Used# [2025-01-29 16:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 13:26:06 [end_date_ymd] => 2025-01-29 16:26:06 [RateCDR] => 1 ) [2025-01-29 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-01-29 13:26:06' and `end` < '2025-01-29 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-01-29 16:26:26] Production.INFO: count ==4929 [2025-01-29 16:26:28] Production.ERROR: pbx CDR StartTime 2025-01-29 13:26:06 - End Time 2025-01-29 16:26:06 [2025-01-29 16:26:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 16:26:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357537', 'tblTempUsageDetail_20' ) start [2025-01-29 16:26:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357537', 'tblTempUsageDetail_20' ) end [2025-01-29 16:26:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357537', 'tblTempVendorCDR_20' ) start [2025-01-29 16:26:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357537', 'tblTempVendorCDR_20' ) end [2025-01-29 16:26:28] Production.INFO: ProcessCDR(1,14357537,1,1,2) [2025-01-29 16:26:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14357537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 16:26:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14357537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 16:26:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14357537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 16:26:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14357537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 16:26:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357537', 'tblTempUsageDetail_20' ) start [2025-01-29 16:26:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357537', 'tblTempUsageDetail_20' ) end [2025-01-29 16:26:33] Production.ERROR: pbx prc_insertCDR start [2025-01-29 16:26:33] Production.ERROR: pbx prc_insertCDR end [2025-01-29 16:26:33] Production.INFO: ==16773== Releasing lock... [2025-01-29 16:26:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 16:26:33] Production.INFO: 65 MB #Memory Used# [2025-01-29 16:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 13:27:05 [end_date_ymd] => 2025-01-29 16:27:05 [RateCDR] => 1 ) [2025-01-29 16:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 13:27:05' and `end` < '2025-01-29 16:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 16:27:23] Production.INFO: count ==4951 [2025-01-29 16:27:25] Production.ERROR: pbx CDR StartTime 2025-01-29 13:27:05 - End Time 2025-01-29 16:27:05 [2025-01-29 16:27:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 16:27:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357542', 'tblTempUsageDetail_20' ) start [2025-01-29 16:27:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357542', 'tblTempUsageDetail_20' ) end [2025-01-29 16:27:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357542', 'tblTempVendorCDR_20' ) start [2025-01-29 16:27:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357542', 'tblTempVendorCDR_20' ) end [2025-01-29 16:27:25] Production.INFO: ProcessCDR(1,14357542,1,1,2) [2025-01-29 16:27:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14357542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 16:27:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14357542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 16:27:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14357542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 16:27:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14357542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 16:27:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357542', 'tblTempUsageDetail_20' ) start [2025-01-29 16:27:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357542', 'tblTempUsageDetail_20' ) end [2025-01-29 16:27:30] Production.ERROR: pbx prc_insertCDR start [2025-01-29 16:27:30] Production.ERROR: pbx prc_insertCDR end [2025-01-29 16:27:30] Production.INFO: ==16927== Releasing lock... [2025-01-29 16:27:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 16:27:30] Production.INFO: 65 MB #Memory Used# [2025-01-29 16:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 13:28:05 [end_date_ymd] => 2025-01-29 16:28:05 [RateCDR] => 1 ) [2025-01-29 16:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 13:28:05' and `end` < '2025-01-29 16:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 16:28:23] Production.INFO: count ==4922 [2025-01-29 16:28:25] Production.ERROR: pbx CDR StartTime 2025-01-29 13:28:05 - End Time 2025-01-29 16:28:05 [2025-01-29 16:28:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 16:28:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357547', 'tblTempUsageDetail_20' ) start [2025-01-29 16:28:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357547', 'tblTempUsageDetail_20' ) end [2025-01-29 16:28:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357547', 'tblTempVendorCDR_20' ) start [2025-01-29 16:28:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357547', 'tblTempVendorCDR_20' ) end [2025-01-29 16:28:25] Production.INFO: ProcessCDR(1,14357547,1,1,2) [2025-01-29 16:28:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14357547,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 16:28:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14357547,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 16:28:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14357547,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 16:28:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14357547,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 16:28:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357547', 'tblTempUsageDetail_20' ) start [2025-01-29 16:28:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357547', 'tblTempUsageDetail_20' ) end [2025-01-29 16:28:29] Production.ERROR: pbx prc_insertCDR start [2025-01-29 16:28:29] Production.ERROR: pbx prc_insertCDR end [2025-01-29 16:28:29] Production.INFO: ==17034== Releasing lock... [2025-01-29 16:28:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 16:28:29] Production.INFO: 64.75 MB #Memory Used# [2025-01-29 16:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 13:29:05 [end_date_ymd] => 2025-01-29 16:29:05 [RateCDR] => 1 ) [2025-01-29 16:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 13:29:05' and `end` < '2025-01-29 16:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 16:29:26] Production.INFO: count ==4940 [2025-01-29 16:29:28] Production.ERROR: pbx CDR StartTime 2025-01-29 13:29:05 - End Time 2025-01-29 16:29:05 [2025-01-29 16:29:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 16:29:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357552', 'tblTempUsageDetail_20' ) start [2025-01-29 16:29:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357552', 'tblTempUsageDetail_20' ) end [2025-01-29 16:29:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357552', 'tblTempVendorCDR_20' ) start [2025-01-29 16:29:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357552', 'tblTempVendorCDR_20' ) end [2025-01-29 16:29:28] Production.INFO: ProcessCDR(1,14357552,1,1,2) [2025-01-29 16:29:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14357552,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 16:29:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14357552,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 16:29:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14357552,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 16:29:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14357552,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 16:29:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357552', 'tblTempUsageDetail_20' ) start [2025-01-29 16:29:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357552', 'tblTempUsageDetail_20' ) end [2025-01-29 16:29:33] Production.ERROR: pbx prc_insertCDR start [2025-01-29 16:29:33] Production.ERROR: pbx prc_insertCDR end [2025-01-29 16:29:33] Production.INFO: ==17142== Releasing lock... [2025-01-29 16:29:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 16:29:33] Production.INFO: 65 MB #Memory Used# [2025-01-29 16:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 13:30:06 [end_date_ymd] => 2025-01-29 16:30:06 [RateCDR] => 1 ) [2025-01-29 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-01-29 13:30:06' and `end` < '2025-01-29 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-01-29 16:30:25] Production.INFO: count ==4933 [2025-01-29 16:30:27] Production.ERROR: pbx CDR StartTime 2025-01-29 13:30:06 - End Time 2025-01-29 16:30:06 [2025-01-29 16:30:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 16:30:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357558', 'tblTempUsageDetail_20' ) start [2025-01-29 16:30:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357558', 'tblTempUsageDetail_20' ) end [2025-01-29 16:30:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357558', 'tblTempVendorCDR_20' ) start [2025-01-29 16:30:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357558', 'tblTempVendorCDR_20' ) end [2025-01-29 16:30:28] Production.INFO: ProcessCDR(1,14357558,1,1,2) [2025-01-29 16:30:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14357558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 16:30:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14357558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 16:30:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14357558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 16:30:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14357558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 16:30:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357558', 'tblTempUsageDetail_20' ) start [2025-01-29 16:30:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357558', 'tblTempUsageDetail_20' ) end [2025-01-29 16:30:32] Production.ERROR: pbx prc_insertCDR start [2025-01-29 16:30:32] Production.ERROR: pbx prc_insertCDR end [2025-01-29 16:30:32] Production.INFO: ==17255== Releasing lock... [2025-01-29 16:30:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 16:30:32] Production.INFO: 65 MB #Memory Used# [2025-01-29 16:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 13:31:05 [end_date_ymd] => 2025-01-29 16:31:05 [RateCDR] => 1 ) [2025-01-29 16:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 13:31:05' and `end` < '2025-01-29 16:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 16:31:21] Production.INFO: count ==4930 [2025-01-29 16:31:23] Production.ERROR: pbx CDR StartTime 2025-01-29 13:31:05 - End Time 2025-01-29 16:31:05 [2025-01-29 16:31:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 16:31:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357563', 'tblTempUsageDetail_20' ) start [2025-01-29 16:31:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357563', 'tblTempUsageDetail_20' ) end [2025-01-29 16:31:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357563', 'tblTempVendorCDR_20' ) start [2025-01-29 16:31:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357563', 'tblTempVendorCDR_20' ) end [2025-01-29 16:31:23] Production.INFO: ProcessCDR(1,14357563,1,1,2) [2025-01-29 16:31:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14357563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 16:31:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14357563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 16:31:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14357563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 16:31:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14357563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 16:31:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357563', 'tblTempUsageDetail_20' ) start [2025-01-29 16:31:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357563', 'tblTempUsageDetail_20' ) end [2025-01-29 16:31:28] Production.ERROR: pbx prc_insertCDR start [2025-01-29 16:31:28] Production.ERROR: pbx prc_insertCDR end [2025-01-29 16:31:28] Production.INFO: ==17368== Releasing lock... [2025-01-29 16:31:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 16:31:28] Production.INFO: 65 MB #Memory Used# [2025-01-29 16:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 13:32:05 [end_date_ymd] => 2025-01-29 16:32:05 [RateCDR] => 1 ) [2025-01-29 16:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 13:32:05' and `end` < '2025-01-29 16:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 16:32:24] Production.INFO: count ==4944 [2025-01-29 16:32:26] Production.ERROR: pbx CDR StartTime 2025-01-29 13:32:05 - End Time 2025-01-29 16:32:05 [2025-01-29 16:32:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 16:32:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357568', 'tblTempUsageDetail_20' ) start [2025-01-29 16:32:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357568', 'tblTempUsageDetail_20' ) end [2025-01-29 16:32:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357568', 'tblTempVendorCDR_20' ) start [2025-01-29 16:32:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357568', 'tblTempVendorCDR_20' ) end [2025-01-29 16:32:26] Production.INFO: ProcessCDR(1,14357568,1,1,2) [2025-01-29 16:32:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14357568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 16:32:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14357568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 16:32:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14357568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 16:32:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14357568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 16:32:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357568', 'tblTempUsageDetail_20' ) start [2025-01-29 16:32:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357568', 'tblTempUsageDetail_20' ) end [2025-01-29 16:32:31] Production.ERROR: pbx prc_insertCDR start [2025-01-29 16:32:31] Production.ERROR: pbx prc_insertCDR end [2025-01-29 16:32:31] Production.INFO: ==17475== Releasing lock... [2025-01-29 16:32:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 16:32:31] Production.INFO: 65 MB #Memory Used# [2025-01-29 16:33:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 13:33:04 [end_date_ymd] => 2025-01-29 16:33:04 [RateCDR] => 1 ) [2025-01-29 16:33:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 13:33:04' and `end` < '2025-01-29 16:33:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 16:33:20] Production.INFO: count ==4932 [2025-01-29 16:33:22] Production.ERROR: pbx CDR StartTime 2025-01-29 13:33:04 - End Time 2025-01-29 16:33:04 [2025-01-29 16:33:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 16:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357573', 'tblTempUsageDetail_20' ) start [2025-01-29 16:33:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357573', 'tblTempUsageDetail_20' ) end [2025-01-29 16:33:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357573', 'tblTempVendorCDR_20' ) start [2025-01-29 16:33:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357573', 'tblTempVendorCDR_20' ) end [2025-01-29 16:33:23] Production.INFO: ProcessCDR(1,14357573,1,1,2) [2025-01-29 16:33:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14357573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 16:33:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14357573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 16:33:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14357573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 16:33:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14357573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 16:33:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357573', 'tblTempUsageDetail_20' ) start [2025-01-29 16:33:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357573', 'tblTempUsageDetail_20' ) end [2025-01-29 16:33:27] Production.ERROR: pbx prc_insertCDR start [2025-01-29 16:33:27] Production.ERROR: pbx prc_insertCDR end [2025-01-29 16:33:27] Production.INFO: ==17581== Releasing lock... [2025-01-29 16:33:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 16:33:27] Production.INFO: 65 MB #Memory Used# [2025-01-29 16:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 13:34:05 [end_date_ymd] => 2025-01-29 16:34:05 [RateCDR] => 1 ) [2025-01-29 16:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 13:34:05' and `end` < '2025-01-29 16:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 16:34:25] Production.INFO: count ==4930 [2025-01-29 16:34:27] Production.ERROR: pbx CDR StartTime 2025-01-29 13:34:05 - End Time 2025-01-29 16:34:05 [2025-01-29 16:34:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 16:34:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357578', 'tblTempUsageDetail_20' ) start [2025-01-29 16:34:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357578', 'tblTempUsageDetail_20' ) end [2025-01-29 16:34:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357578', 'tblTempVendorCDR_20' ) start [2025-01-29 16:34:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357578', 'tblTempVendorCDR_20' ) end [2025-01-29 16:34:27] Production.INFO: ProcessCDR(1,14357578,1,1,2) [2025-01-29 16:34:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14357578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 16:34:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14357578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 16:34:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14357578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 16:34:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14357578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 16:34:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357578', 'tblTempUsageDetail_20' ) start [2025-01-29 16:34:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357578', 'tblTempUsageDetail_20' ) end [2025-01-29 16:34:32] Production.ERROR: pbx prc_insertCDR start [2025-01-29 16:34:32] Production.ERROR: pbx prc_insertCDR end [2025-01-29 16:34:32] Production.INFO: ==17696== Releasing lock... [2025-01-29 16:34:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 16:34:32] Production.INFO: 65 MB #Memory Used# [2025-01-29 16:35:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 13:35:04 [end_date_ymd] => 2025-01-29 16:35:04 [RateCDR] => 1 ) [2025-01-29 16:35:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 13:35:04' and `end` < '2025-01-29 16:35:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 16:35:27] Production.INFO: count ==4930 [2025-01-29 16:35:29] Production.ERROR: pbx CDR StartTime 2025-01-29 13:35:04 - End Time 2025-01-29 16:35:04 [2025-01-29 16:35:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 16:35:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357583', 'tblTempUsageDetail_20' ) start [2025-01-29 16:35:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357583', 'tblTempUsageDetail_20' ) end [2025-01-29 16:35:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357583', 'tblTempVendorCDR_20' ) start [2025-01-29 16:35:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357583', 'tblTempVendorCDR_20' ) end [2025-01-29 16:35:30] Production.INFO: ProcessCDR(1,14357583,1,1,2) [2025-01-29 16:35:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14357583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 16:35:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14357583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 16:35:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14357583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 16:35:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14357583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 16:35:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357583', 'tblTempUsageDetail_20' ) start [2025-01-29 16:35:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357583', 'tblTempUsageDetail_20' ) end [2025-01-29 16:35:35] Production.ERROR: pbx prc_insertCDR start [2025-01-29 16:35:35] Production.ERROR: pbx prc_insertCDR end [2025-01-29 16:35:35] Production.INFO: ==17804== Releasing lock... [2025-01-29 16:35:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 16:35:35] Production.INFO: 65 MB #Memory Used# [2025-01-29 16:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 13:36:05 [end_date_ymd] => 2025-01-29 16:36:05 [RateCDR] => 1 ) [2025-01-29 16:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 13:36:05' and `end` < '2025-01-29 16:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 16:36:22] Production.INFO: count ==4917 [2025-01-29 16:36:24] Production.ERROR: pbx CDR StartTime 2025-01-29 13:36:05 - End Time 2025-01-29 16:36:05 [2025-01-29 16:36:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 16:36:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357588', 'tblTempUsageDetail_20' ) start [2025-01-29 16:36:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357588', 'tblTempUsageDetail_20' ) end [2025-01-29 16:36:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357588', 'tblTempVendorCDR_20' ) start [2025-01-29 16:36:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357588', 'tblTempVendorCDR_20' ) end [2025-01-29 16:36:24] Production.INFO: ProcessCDR(1,14357588,1,1,2) [2025-01-29 16:36:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14357588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 16:36:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14357588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 16:36:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14357588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 16:36:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14357588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 16:36:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357588', 'tblTempUsageDetail_20' ) start [2025-01-29 16:36:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357588', 'tblTempUsageDetail_20' ) end [2025-01-29 16:36:27] Production.ERROR: pbx prc_insertCDR start [2025-01-29 16:36:27] Production.ERROR: pbx prc_insertCDR end [2025-01-29 16:36:27] Production.INFO: ==17911== Releasing lock... [2025-01-29 16:36:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 16:36:27] Production.INFO: 64.75 MB #Memory Used# [2025-01-29 16:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 13:37:06 [end_date_ymd] => 2025-01-29 16:37:06 [RateCDR] => 1 ) [2025-01-29 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-01-29 13:37:06' and `end` < '2025-01-29 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-01-29 16:37:21] Production.INFO: count ==4892 [2025-01-29 16:37:23] Production.ERROR: pbx CDR StartTime 2025-01-29 13:37:06 - End Time 2025-01-29 16:37:06 [2025-01-29 16:37:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 16:37:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357593', 'tblTempUsageDetail_20' ) start [2025-01-29 16:37:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357593', 'tblTempUsageDetail_20' ) end [2025-01-29 16:37:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357593', 'tblTempVendorCDR_20' ) start [2025-01-29 16:37:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357593', 'tblTempVendorCDR_20' ) end [2025-01-29 16:37:23] Production.INFO: ProcessCDR(1,14357593,1,1,2) [2025-01-29 16:37:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14357593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 16:37:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14357593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 16:37:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14357593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 16:37:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14357593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 16:37:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357593', 'tblTempUsageDetail_20' ) start [2025-01-29 16:37:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357593', 'tblTempUsageDetail_20' ) end [2025-01-29 16:37:27] Production.ERROR: pbx prc_insertCDR start [2025-01-29 16:37:27] Production.ERROR: pbx prc_insertCDR end [2025-01-29 16:37:27] Production.INFO: ==18021== Releasing lock... [2025-01-29 16:37:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 16:37:27] Production.INFO: 64.5 MB #Memory Used# [2025-01-29 16:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 13:38:05 [end_date_ymd] => 2025-01-29 16:38:05 [RateCDR] => 1 ) [2025-01-29 16:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 13:38:05' and `end` < '2025-01-29 16:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 16:38:29] Production.INFO: count ==4907 [2025-01-29 16:38:32] Production.ERROR: pbx CDR StartTime 2025-01-29 13:38:05 - End Time 2025-01-29 16:38:05 [2025-01-29 16:38:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 16:38:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357598', 'tblTempUsageDetail_20' ) start [2025-01-29 16:38:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357598', 'tblTempUsageDetail_20' ) end [2025-01-29 16:38:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357598', 'tblTempVendorCDR_20' ) start [2025-01-29 16:38:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357598', 'tblTempVendorCDR_20' ) end [2025-01-29 16:38:32] Production.INFO: ProcessCDR(1,14357598,1,1,2) [2025-01-29 16:38:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14357598,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 16:38:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14357598,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 16:38:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14357598,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 16:38:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14357598,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 16:38:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357598', 'tblTempUsageDetail_20' ) start [2025-01-29 16:38:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357598', 'tblTempUsageDetail_20' ) end [2025-01-29 16:38:37] Production.ERROR: pbx prc_insertCDR start [2025-01-29 16:38:37] Production.ERROR: pbx prc_insertCDR end [2025-01-29 16:38:37] Production.INFO: ==18127== Releasing lock... [2025-01-29 16:38:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 16:38:37] Production.INFO: 64.75 MB #Memory Used# [2025-01-29 16:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 13:39:05 [end_date_ymd] => 2025-01-29 16:39:05 [RateCDR] => 1 ) [2025-01-29 16:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 13:39:05' and `end` < '2025-01-29 16:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 16:39:25] Production.INFO: count ==4901 [2025-01-29 16:39:27] Production.ERROR: pbx CDR StartTime 2025-01-29 13:39:05 - End Time 2025-01-29 16:39:05 [2025-01-29 16:39:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 16:39:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357603', 'tblTempUsageDetail_20' ) start [2025-01-29 16:39:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357603', 'tblTempUsageDetail_20' ) end [2025-01-29 16:39:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357603', 'tblTempVendorCDR_20' ) start [2025-01-29 16:39:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357603', 'tblTempVendorCDR_20' ) end [2025-01-29 16:39:27] Production.INFO: ProcessCDR(1,14357603,1,1,2) [2025-01-29 16:39:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14357603,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 16:39:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14357603,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 16:39:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14357603,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 16:39:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14357603,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 16:39:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357603', 'tblTempUsageDetail_20' ) start [2025-01-29 16:39:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357603', 'tblTempUsageDetail_20' ) end [2025-01-29 16:39:32] Production.ERROR: pbx prc_insertCDR start [2025-01-29 16:39:32] Production.ERROR: pbx prc_insertCDR end [2025-01-29 16:39:32] Production.INFO: ==18234== Releasing lock... [2025-01-29 16:39:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 16:39:32] Production.INFO: 64.75 MB #Memory Used# [2025-01-29 16:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 13:40:06 [end_date_ymd] => 2025-01-29 16:40:06 [RateCDR] => 1 ) [2025-01-29 16:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 13:40:06' and `end` < '2025-01-29 16:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 16:40:27] Production.INFO: count ==4889 [2025-01-29 16:40:29] Production.ERROR: pbx CDR StartTime 2025-01-29 13:40:06 - End Time 2025-01-29 16:40:06 [2025-01-29 16:40:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 16:40:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357609', 'tblTempUsageDetail_20' ) start [2025-01-29 16:40:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357609', 'tblTempUsageDetail_20' ) end [2025-01-29 16:40:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357609', 'tblTempVendorCDR_20' ) start [2025-01-29 16:40:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357609', 'tblTempVendorCDR_20' ) end [2025-01-29 16:40:29] Production.INFO: ProcessCDR(1,14357609,1,1,2) [2025-01-29 16:40:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14357609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 16:40:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14357609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 16:40:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14357609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 16:40:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14357609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 16:40:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357609', 'tblTempUsageDetail_20' ) start [2025-01-29 16:40:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357609', 'tblTempUsageDetail_20' ) end [2025-01-29 16:40:34] Production.ERROR: pbx prc_insertCDR start [2025-01-29 16:40:34] Production.ERROR: pbx prc_insertCDR end [2025-01-29 16:40:34] Production.INFO: ==18341== Releasing lock... [2025-01-29 16:40:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 16:40:34] Production.INFO: 64.5 MB #Memory Used# [2025-01-29 16:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 13:41:05 [end_date_ymd] => 2025-01-29 16:41:05 [RateCDR] => 1 ) [2025-01-29 16:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 13:41:05' and `end` < '2025-01-29 16:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 16:41:19] Production.INFO: count ==4888 [2025-01-29 16:41:21] Production.ERROR: pbx CDR StartTime 2025-01-29 13:41:05 - End Time 2025-01-29 16:41:05 [2025-01-29 16:41:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 16:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357614', 'tblTempUsageDetail_20' ) start [2025-01-29 16:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357614', 'tblTempUsageDetail_20' ) end [2025-01-29 16:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357614', 'tblTempVendorCDR_20' ) start [2025-01-29 16:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357614', 'tblTempVendorCDR_20' ) end [2025-01-29 16:41:21] Production.INFO: ProcessCDR(1,14357614,1,1,2) [2025-01-29 16:41:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14357614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 16:41:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14357614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 16:41:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14357614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 16:41:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14357614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 16:41:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357614', 'tblTempUsageDetail_20' ) start [2025-01-29 16:41:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357614', 'tblTempUsageDetail_20' ) end [2025-01-29 16:41:26] Production.ERROR: pbx prc_insertCDR start [2025-01-29 16:41:27] Production.ERROR: pbx prc_insertCDR end [2025-01-29 16:41:27] Production.INFO: ==18452== Releasing lock... [2025-01-29 16:41:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 16:41:27] Production.INFO: 64.5 MB #Memory Used# [2025-01-29 16:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 13:42:05 [end_date_ymd] => 2025-01-29 16:42:05 [RateCDR] => 1 ) [2025-01-29 16:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 13:42:05' and `end` < '2025-01-29 16:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 16:42:25] Production.INFO: count ==4867 [2025-01-29 16:42:27] Production.ERROR: pbx CDR StartTime 2025-01-29 13:42:05 - End Time 2025-01-29 16:42:05 [2025-01-29 16:42:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 16:42:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357619', 'tblTempUsageDetail_20' ) start [2025-01-29 16:42:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357619', 'tblTempUsageDetail_20' ) end [2025-01-29 16:42:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357619', 'tblTempVendorCDR_20' ) start [2025-01-29 16:42:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357619', 'tblTempVendorCDR_20' ) end [2025-01-29 16:42:27] Production.INFO: ProcessCDR(1,14357619,1,1,2) [2025-01-29 16:42:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14357619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 16:42:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14357619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 16:42:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14357619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 16:42:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14357619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 16:42:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357619', 'tblTempUsageDetail_20' ) start [2025-01-29 16:42:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357619', 'tblTempUsageDetail_20' ) end [2025-01-29 16:42:32] Production.ERROR: pbx prc_insertCDR start [2025-01-29 16:42:32] Production.ERROR: pbx prc_insertCDR end [2025-01-29 16:42:32] Production.INFO: ==18599== Releasing lock... [2025-01-29 16:42:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 16:42:32] Production.INFO: 64.5 MB #Memory Used# [2025-01-29 16:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 13:43:06 [end_date_ymd] => 2025-01-29 16:43:06 [RateCDR] => 1 ) [2025-01-29 16:43:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 13:43:06' and `end` < '2025-01-29 16:43:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 16:43:23] Production.INFO: count ==4861 [2025-01-29 16:43:25] Production.ERROR: pbx CDR StartTime 2025-01-29 13:43:06 - End Time 2025-01-29 16:43:06 [2025-01-29 16:43:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 16:43:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357624', 'tblTempUsageDetail_20' ) start [2025-01-29 16:43:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357624', 'tblTempUsageDetail_20' ) end [2025-01-29 16:43:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357624', 'tblTempVendorCDR_20' ) start [2025-01-29 16:43:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357624', 'tblTempVendorCDR_20' ) end [2025-01-29 16:43:25] Production.INFO: ProcessCDR(1,14357624,1,1,2) [2025-01-29 16:43:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14357624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 16:43:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14357624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 16:43:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14357624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 16:43:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14357624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 16:43:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357624', 'tblTempUsageDetail_20' ) start [2025-01-29 16:43:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357624', 'tblTempUsageDetail_20' ) end [2025-01-29 16:43:30] Production.ERROR: pbx prc_insertCDR start [2025-01-29 16:43:30] Production.ERROR: pbx prc_insertCDR end [2025-01-29 16:43:30] Production.INFO: ==18709== Releasing lock... [2025-01-29 16:43:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 16:43:30] Production.INFO: 64.5 MB #Memory Used# [2025-01-29 16:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 13:44:05 [end_date_ymd] => 2025-01-29 16:44:05 [RateCDR] => 1 ) [2025-01-29 16:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 13:44:05' and `end` < '2025-01-29 16:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 16:44:21] Production.INFO: count ==4876 [2025-01-29 16:44:23] Production.ERROR: pbx CDR StartTime 2025-01-29 13:44:05 - End Time 2025-01-29 16:44:05 [2025-01-29 16:44:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 16:44:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357629', 'tblTempUsageDetail_20' ) start [2025-01-29 16:44:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357629', 'tblTempUsageDetail_20' ) end [2025-01-29 16:44:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357629', 'tblTempVendorCDR_20' ) start [2025-01-29 16:44:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357629', 'tblTempVendorCDR_20' ) end [2025-01-29 16:44:24] Production.INFO: ProcessCDR(1,14357629,1,1,2) [2025-01-29 16:44:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14357629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 16:44:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14357629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 16:44:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14357629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 16:44:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14357629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 16:44:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357629', 'tblTempUsageDetail_20' ) start [2025-01-29 16:44:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357629', 'tblTempUsageDetail_20' ) end [2025-01-29 16:44:28] Production.ERROR: pbx prc_insertCDR start [2025-01-29 16:44:28] Production.ERROR: pbx prc_insertCDR end [2025-01-29 16:44:28] Production.INFO: ==18786== Releasing lock... [2025-01-29 16:44:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 16:44:28] Production.INFO: 64.5 MB #Memory Used# [2025-01-29 16:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 13:45:05 [end_date_ymd] => 2025-01-29 16:45:05 [RateCDR] => 1 ) [2025-01-29 16:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 13:45:05' and `end` < '2025-01-29 16:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 16:45:21] Production.INFO: count ==4877 [2025-01-29 16:45:23] Production.ERROR: pbx CDR StartTime 2025-01-29 13:45:05 - End Time 2025-01-29 16:45:05 [2025-01-29 16:45:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 16:45:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357634', 'tblTempUsageDetail_20' ) start [2025-01-29 16:45:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357634', 'tblTempUsageDetail_20' ) end [2025-01-29 16:45:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357634', 'tblTempVendorCDR_20' ) start [2025-01-29 16:45:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357634', 'tblTempVendorCDR_20' ) end [2025-01-29 16:45:23] Production.INFO: ProcessCDR(1,14357634,1,1,2) [2025-01-29 16:45:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14357634,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 16:45:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14357634,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 16:45:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14357634,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 16:45:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14357634,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 16:45:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357634', 'tblTempUsageDetail_20' ) start [2025-01-29 16:45:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357634', 'tblTempUsageDetail_20' ) end [2025-01-29 16:45:28] Production.ERROR: pbx prc_insertCDR start [2025-01-29 16:45:28] Production.ERROR: pbx prc_insertCDR end [2025-01-29 16:45:28] Production.INFO: ==18860== Releasing lock... [2025-01-29 16:45:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 16:45:28] Production.INFO: 64.5 MB #Memory Used# [2025-01-29 16:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 13:46:05 [end_date_ymd] => 2025-01-29 16:46:05 [RateCDR] => 1 ) [2025-01-29 16:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 13:46:05' and `end` < '2025-01-29 16:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 16:46:21] Production.INFO: count ==4893 [2025-01-29 16:46:23] Production.ERROR: pbx CDR StartTime 2025-01-29 13:46:05 - End Time 2025-01-29 16:46:05 [2025-01-29 16:46:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 16:46:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357639', 'tblTempUsageDetail_20' ) start [2025-01-29 16:46:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357639', 'tblTempUsageDetail_20' ) end [2025-01-29 16:46:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357639', 'tblTempVendorCDR_20' ) start [2025-01-29 16:46:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357639', 'tblTempVendorCDR_20' ) end [2025-01-29 16:46:23] Production.INFO: ProcessCDR(1,14357639,1,1,2) [2025-01-29 16:46:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14357639,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 16:46:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14357639,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 16:46:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14357639,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 16:46:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14357639,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 16:46:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357639', 'tblTempUsageDetail_20' ) start [2025-01-29 16:46:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357639', 'tblTempUsageDetail_20' ) end [2025-01-29 16:46:27] Production.ERROR: pbx prc_insertCDR start [2025-01-29 16:46:28] Production.ERROR: pbx prc_insertCDR end [2025-01-29 16:46:28] Production.INFO: ==18937== Releasing lock... [2025-01-29 16:46:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 16:46:28] Production.INFO: 64.5 MB #Memory Used# [2025-01-29 16:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 13:47:05 [end_date_ymd] => 2025-01-29 16:47:05 [RateCDR] => 1 ) [2025-01-29 16:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 13:47:05' and `end` < '2025-01-29 16:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 16:47:22] Production.INFO: count ==4883 [2025-01-29 16:47:24] Production.ERROR: pbx CDR StartTime 2025-01-29 13:47:05 - End Time 2025-01-29 16:47:05 [2025-01-29 16:47:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 16:47:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357644', 'tblTempUsageDetail_20' ) start [2025-01-29 16:47:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357644', 'tblTempUsageDetail_20' ) end [2025-01-29 16:47:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357644', 'tblTempVendorCDR_20' ) start [2025-01-29 16:47:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357644', 'tblTempVendorCDR_20' ) end [2025-01-29 16:47:25] Production.INFO: ProcessCDR(1,14357644,1,1,2) [2025-01-29 16:47:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14357644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 16:47:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14357644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 16:47:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14357644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 16:47:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14357644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 16:47:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357644', 'tblTempUsageDetail_20' ) start [2025-01-29 16:47:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357644', 'tblTempUsageDetail_20' ) end [2025-01-29 16:47:29] Production.ERROR: pbx prc_insertCDR start [2025-01-29 16:47:29] Production.ERROR: pbx prc_insertCDR end [2025-01-29 16:47:29] Production.INFO: ==19012== Releasing lock... [2025-01-29 16:47:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 16:47:29] Production.INFO: 64.5 MB #Memory Used# [2025-01-29 16:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 13:48:05 [end_date_ymd] => 2025-01-29 16:48:05 [RateCDR] => 1 ) [2025-01-29 16:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 13:48:05' and `end` < '2025-01-29 16:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 16:48:24] Production.INFO: count ==4864 [2025-01-29 16:48:26] Production.ERROR: pbx CDR StartTime 2025-01-29 13:48:05 - End Time 2025-01-29 16:48:05 [2025-01-29 16:48:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 16:48:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357649', 'tblTempUsageDetail_20' ) start [2025-01-29 16:48:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357649', 'tblTempUsageDetail_20' ) end [2025-01-29 16:48:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357649', 'tblTempVendorCDR_20' ) start [2025-01-29 16:48:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357649', 'tblTempVendorCDR_20' ) end [2025-01-29 16:48:26] Production.INFO: ProcessCDR(1,14357649,1,1,2) [2025-01-29 16:48:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14357649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 16:48:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14357649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 16:48:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14357649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 16:48:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14357649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 16:48:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357649', 'tblTempUsageDetail_20' ) start [2025-01-29 16:48:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357649', 'tblTempUsageDetail_20' ) end [2025-01-29 16:48:30] Production.ERROR: pbx prc_insertCDR start [2025-01-29 16:48:31] Production.ERROR: pbx prc_insertCDR end [2025-01-29 16:48:31] Production.INFO: ==19088== Releasing lock... [2025-01-29 16:48:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 16:48:31] Production.INFO: 64.5 MB #Memory Used# [2025-01-29 16:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 13:49:05 [end_date_ymd] => 2025-01-29 16:49:05 [RateCDR] => 1 ) [2025-01-29 16:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 13:49:05' and `end` < '2025-01-29 16:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 16:49:22] Production.INFO: count ==4835 [2025-01-29 16:49:24] Production.ERROR: pbx CDR StartTime 2025-01-29 13:49:05 - End Time 2025-01-29 16:49:05 [2025-01-29 16:49:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 16:49:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357654', 'tblTempUsageDetail_20' ) start [2025-01-29 16:49:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357654', 'tblTempUsageDetail_20' ) end [2025-01-29 16:49:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357654', 'tblTempVendorCDR_20' ) start [2025-01-29 16:49:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357654', 'tblTempVendorCDR_20' ) end [2025-01-29 16:49:24] Production.INFO: ProcessCDR(1,14357654,1,1,2) [2025-01-29 16:49:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14357654,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 16:49:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14357654,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 16:49:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14357654,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 16:49:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14357654,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 16:49:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357654', 'tblTempUsageDetail_20' ) start [2025-01-29 16:49:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357654', 'tblTempUsageDetail_20' ) end [2025-01-29 16:49:29] Production.ERROR: pbx prc_insertCDR start [2025-01-29 16:49:29] Production.ERROR: pbx prc_insertCDR end [2025-01-29 16:49:29] Production.INFO: ==19159== Releasing lock... [2025-01-29 16:49:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 16:49:29] Production.INFO: 64.25 MB #Memory Used# [2025-01-29 16:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 13:50:06 [end_date_ymd] => 2025-01-29 16:50:06 [RateCDR] => 1 ) [2025-01-29 16:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 13:50:06' and `end` < '2025-01-29 16:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 16:50:23] Production.INFO: count ==4795 [2025-01-29 16:50:25] Production.ERROR: pbx CDR StartTime 2025-01-29 13:50:06 - End Time 2025-01-29 16:50:06 [2025-01-29 16:50:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 16:50:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357659', 'tblTempUsageDetail_20' ) start [2025-01-29 16:50:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357659', 'tblTempUsageDetail_20' ) end [2025-01-29 16:50:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357659', 'tblTempVendorCDR_20' ) start [2025-01-29 16:50:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357659', 'tblTempVendorCDR_20' ) end [2025-01-29 16:50:26] Production.INFO: ProcessCDR(1,14357659,1,1,2) [2025-01-29 16:50:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14357659,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 16:50:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14357659,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 16:50:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14357659,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 16:50:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14357659,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 16:50:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357659', 'tblTempUsageDetail_20' ) start [2025-01-29 16:50:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357659', 'tblTempUsageDetail_20' ) end [2025-01-29 16:50:30] Production.ERROR: pbx prc_insertCDR start [2025-01-29 16:50:30] Production.ERROR: pbx prc_insertCDR end [2025-01-29 16:50:30] Production.INFO: ==19232== Releasing lock... [2025-01-29 16:50:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 16:50:30] Production.INFO: 64 MB #Memory Used# [2025-01-29 16:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 13:51:05 [end_date_ymd] => 2025-01-29 16:51:05 [RateCDR] => 1 ) [2025-01-29 16:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 13:51:05' and `end` < '2025-01-29 16:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 16:51:20] Production.INFO: count ==4818 [2025-01-29 16:51:22] Production.ERROR: pbx CDR StartTime 2025-01-29 13:51:05 - End Time 2025-01-29 16:51:05 [2025-01-29 16:51:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 16:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357665', 'tblTempUsageDetail_20' ) start [2025-01-29 16:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357665', 'tblTempUsageDetail_20' ) end [2025-01-29 16:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357665', 'tblTempVendorCDR_20' ) start [2025-01-29 16:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357665', 'tblTempVendorCDR_20' ) end [2025-01-29 16:51:22] Production.INFO: ProcessCDR(1,14357665,1,1,2) [2025-01-29 16:51:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14357665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 16:51:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14357665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 16:51:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14357665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 16:51:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14357665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 16:51:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357665', 'tblTempUsageDetail_20' ) start [2025-01-29 16:51:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357665', 'tblTempUsageDetail_20' ) end [2025-01-29 16:51:27] Production.ERROR: pbx prc_insertCDR start [2025-01-29 16:51:27] Production.ERROR: pbx prc_insertCDR end [2025-01-29 16:51:27] Production.INFO: ==19305== Releasing lock... [2025-01-29 16:51:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 16:51:27] Production.INFO: 64 MB #Memory Used# [2025-01-29 16:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 13:52:06 [end_date_ymd] => 2025-01-29 16:52:06 [RateCDR] => 1 ) [2025-01-29 16:52:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 13:52:06' and `end` < '2025-01-29 16:52:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 16:52:26] Production.INFO: count ==4840 [2025-01-29 16:52:28] Production.ERROR: pbx CDR StartTime 2025-01-29 13:52:06 - End Time 2025-01-29 16:52:06 [2025-01-29 16:52:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 16:52:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357670', 'tblTempUsageDetail_20' ) start [2025-01-29 16:52:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357670', 'tblTempUsageDetail_20' ) end [2025-01-29 16:52:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357670', 'tblTempVendorCDR_20' ) start [2025-01-29 16:52:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357670', 'tblTempVendorCDR_20' ) end [2025-01-29 16:52:28] Production.INFO: ProcessCDR(1,14357670,1,1,2) [2025-01-29 16:52:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14357670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 16:52:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14357670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 16:52:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14357670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 16:52:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14357670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 16:52:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357670', 'tblTempUsageDetail_20' ) start [2025-01-29 16:52:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357670', 'tblTempUsageDetail_20' ) end [2025-01-29 16:52:33] Production.ERROR: pbx prc_insertCDR start [2025-01-29 16:52:33] Production.ERROR: pbx prc_insertCDR end [2025-01-29 16:52:33] Production.INFO: ==19376== Releasing lock... [2025-01-29 16:52:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 16:52:33] Production.INFO: 64.25 MB #Memory Used# [2025-01-29 16:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 13:53:05 [end_date_ymd] => 2025-01-29 16:53:05 [RateCDR] => 1 ) [2025-01-29 16:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 13:53:05' and `end` < '2025-01-29 16:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 16:53:23] Production.INFO: count ==4856 [2025-01-29 16:53:25] Production.ERROR: pbx CDR StartTime 2025-01-29 13:53:05 - End Time 2025-01-29 16:53:05 [2025-01-29 16:53:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 16:53:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357675', 'tblTempUsageDetail_20' ) start [2025-01-29 16:53:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357675', 'tblTempUsageDetail_20' ) end [2025-01-29 16:53:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357675', 'tblTempVendorCDR_20' ) start [2025-01-29 16:53:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357675', 'tblTempVendorCDR_20' ) end [2025-01-29 16:53:25] Production.INFO: ProcessCDR(1,14357675,1,1,2) [2025-01-29 16:53:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14357675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 16:53:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14357675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 16:53:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14357675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 16:53:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14357675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 16:53:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357675', 'tblTempUsageDetail_20' ) start [2025-01-29 16:53:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357675', 'tblTempUsageDetail_20' ) end [2025-01-29 16:53:30] Production.ERROR: pbx prc_insertCDR start [2025-01-29 16:53:30] Production.ERROR: pbx prc_insertCDR end [2025-01-29 16:53:30] Production.INFO: ==19452== Releasing lock... [2025-01-29 16:53:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 16:53:30] Production.INFO: 64.25 MB #Memory Used# [2025-01-29 16:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 13:54:05 [end_date_ymd] => 2025-01-29 16:54:05 [RateCDR] => 1 ) [2025-01-29 16:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 13:54:05' and `end` < '2025-01-29 16:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 16:54:31] Production.INFO: count ==4844 [2025-01-29 16:54:33] Production.ERROR: pbx CDR StartTime 2025-01-29 13:54:05 - End Time 2025-01-29 16:54:05 [2025-01-29 16:54:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 16:54:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357680', 'tblTempUsageDetail_20' ) start [2025-01-29 16:54:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357680', 'tblTempUsageDetail_20' ) end [2025-01-29 16:54:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357680', 'tblTempVendorCDR_20' ) start [2025-01-29 16:54:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357680', 'tblTempVendorCDR_20' ) end [2025-01-29 16:54:34] Production.INFO: ProcessCDR(1,14357680,1,1,2) [2025-01-29 16:54:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14357680,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 16:54:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14357680,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 16:54:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14357680,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 16:54:39] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14357680,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 16:54:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357680', 'tblTempUsageDetail_20' ) start [2025-01-29 16:54:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357680', 'tblTempUsageDetail_20' ) end [2025-01-29 16:54:39] Production.ERROR: pbx prc_insertCDR start [2025-01-29 16:54:39] Production.ERROR: pbx prc_insertCDR end [2025-01-29 16:54:39] Production.INFO: ==19528== Releasing lock... [2025-01-29 16:54:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 16:54:39] Production.INFO: 64.25 MB #Memory Used# [2025-01-29 16:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 13:55:05 [end_date_ymd] => 2025-01-29 16:55:05 [RateCDR] => 1 ) [2025-01-29 16:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 13:55:05' and `end` < '2025-01-29 16:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 16:55:29] Production.INFO: count ==4837 [2025-01-29 16:55:31] Production.ERROR: pbx CDR StartTime 2025-01-29 13:55:05 - End Time 2025-01-29 16:55:05 [2025-01-29 16:55:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 16:55:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357685', 'tblTempUsageDetail_20' ) start [2025-01-29 16:55:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357685', 'tblTempUsageDetail_20' ) end [2025-01-29 16:55:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357685', 'tblTempVendorCDR_20' ) start [2025-01-29 16:55:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357685', 'tblTempVendorCDR_20' ) end [2025-01-29 16:55:31] Production.INFO: ProcessCDR(1,14357685,1,1,2) [2025-01-29 16:55:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14357685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 16:55:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14357685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 16:55:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14357685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 16:55:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14357685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 16:55:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357685', 'tblTempUsageDetail_20' ) start [2025-01-29 16:55:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357685', 'tblTempUsageDetail_20' ) end [2025-01-29 16:55:36] Production.ERROR: pbx prc_insertCDR start [2025-01-29 16:55:36] Production.ERROR: pbx prc_insertCDR end [2025-01-29 16:55:36] Production.INFO: ==19597== Releasing lock... [2025-01-29 16:55:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 16:55:36] Production.INFO: 64.25 MB #Memory Used# [2025-01-29 16:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 13:56:06 [end_date_ymd] => 2025-01-29 16:56:06 [RateCDR] => 1 ) [2025-01-29 16:56:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 13:56:06' and `end` < '2025-01-29 16:56:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 16:56:33] Production.INFO: count ==4854 [2025-01-29 16:56:36] Production.ERROR: pbx CDR StartTime 2025-01-29 13:56:06 - End Time 2025-01-29 16:56:06 [2025-01-29 16:56:36] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 16:56:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357690', 'tblTempUsageDetail_20' ) start [2025-01-29 16:56:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357690', 'tblTempUsageDetail_20' ) end [2025-01-29 16:56:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357690', 'tblTempVendorCDR_20' ) start [2025-01-29 16:56:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357690', 'tblTempVendorCDR_20' ) end [2025-01-29 16:56:36] Production.INFO: ProcessCDR(1,14357690,1,1,2) [2025-01-29 16:56:36] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14357690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 16:56:38] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14357690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 16:56:38] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14357690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 16:56:41] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14357690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 16:56:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357690', 'tblTempUsageDetail_20' ) start [2025-01-29 16:56:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357690', 'tblTempUsageDetail_20' ) end [2025-01-29 16:56:41] Production.ERROR: pbx prc_insertCDR start [2025-01-29 16:56:41] Production.ERROR: pbx prc_insertCDR end [2025-01-29 16:56:41] Production.INFO: ==19673== Releasing lock... [2025-01-29 16:56:41] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 16:56:41] Production.INFO: 64.25 MB #Memory Used# [2025-01-29 16:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 13:57:05 [end_date_ymd] => 2025-01-29 16:57:05 [RateCDR] => 1 ) [2025-01-29 16:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 13:57:05' and `end` < '2025-01-29 16:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 16:57:28] Production.INFO: count ==4843 [2025-01-29 16:57:30] Production.ERROR: pbx CDR StartTime 2025-01-29 13:57:05 - End Time 2025-01-29 16:57:05 [2025-01-29 16:57:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 16:57:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357695', 'tblTempUsageDetail_20' ) start [2025-01-29 16:57:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357695', 'tblTempUsageDetail_20' ) end [2025-01-29 16:57:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357695', 'tblTempVendorCDR_20' ) start [2025-01-29 16:57:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357695', 'tblTempVendorCDR_20' ) end [2025-01-29 16:57:30] Production.INFO: ProcessCDR(1,14357695,1,1,2) [2025-01-29 16:57:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14357695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 16:57:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14357695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 16:57:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14357695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 16:57:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14357695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 16:57:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357695', 'tblTempUsageDetail_20' ) start [2025-01-29 16:57:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357695', 'tblTempUsageDetail_20' ) end [2025-01-29 16:57:35] Production.ERROR: pbx prc_insertCDR start [2025-01-29 16:57:35] Production.ERROR: pbx prc_insertCDR end [2025-01-29 16:57:35] Production.INFO: ==19745== Releasing lock... [2025-01-29 16:57:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 16:57:35] Production.INFO: 64.25 MB #Memory Used# [2025-01-29 16:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 13:58:05 [end_date_ymd] => 2025-01-29 16:58:05 [RateCDR] => 1 ) [2025-01-29 16:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 13:58:05' and `end` < '2025-01-29 16:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 16:58:22] Production.INFO: count ==4865 [2025-01-29 16:58:24] Production.ERROR: pbx CDR StartTime 2025-01-29 13:58:05 - End Time 2025-01-29 16:58:05 [2025-01-29 16:58:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 16:58:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357700', 'tblTempUsageDetail_20' ) start [2025-01-29 16:58:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357700', 'tblTempUsageDetail_20' ) end [2025-01-29 16:58:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357700', 'tblTempVendorCDR_20' ) start [2025-01-29 16:58:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357700', 'tblTempVendorCDR_20' ) end [2025-01-29 16:58:24] Production.INFO: ProcessCDR(1,14357700,1,1,2) [2025-01-29 16:58:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14357700,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 16:58:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14357700,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 16:58:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14357700,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 16:58:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14357700,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 16:58:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357700', 'tblTempUsageDetail_20' ) start [2025-01-29 16:58:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357700', 'tblTempUsageDetail_20' ) end [2025-01-29 16:58:27] Production.ERROR: pbx prc_insertCDR start [2025-01-29 16:58:27] Production.ERROR: pbx prc_insertCDR end [2025-01-29 16:58:27] Production.INFO: ==19859== Releasing lock... [2025-01-29 16:58:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 16:58:27] Production.INFO: 64.5 MB #Memory Used# [2025-01-29 16:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 13:59:05 [end_date_ymd] => 2025-01-29 16:59:05 [RateCDR] => 1 ) [2025-01-29 16:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 13:59:05' and `end` < '2025-01-29 16:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 16:59:19] Production.INFO: count ==4864 [2025-01-29 16:59:21] Production.ERROR: pbx CDR StartTime 2025-01-29 13:59:05 - End Time 2025-01-29 16:59:05 [2025-01-29 16:59:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 16:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357705', 'tblTempUsageDetail_20' ) start [2025-01-29 16:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357705', 'tblTempUsageDetail_20' ) end [2025-01-29 16:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357705', 'tblTempVendorCDR_20' ) start [2025-01-29 16:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357705', 'tblTempVendorCDR_20' ) end [2025-01-29 16:59:21] Production.INFO: ProcessCDR(1,14357705,1,1,2) [2025-01-29 16:59:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14357705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 16:59:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14357705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 16:59:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14357705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 16:59:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14357705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 16:59:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357705', 'tblTempUsageDetail_20' ) start [2025-01-29 16:59:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357705', 'tblTempUsageDetail_20' ) end [2025-01-29 16:59:26] Production.ERROR: pbx prc_insertCDR start [2025-01-29 16:59:26] Production.ERROR: pbx prc_insertCDR end [2025-01-29 16:59:26] Production.INFO: ==19936== Releasing lock... [2025-01-29 16:59:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 16:59:26] Production.INFO: 64.5 MB #Memory Used# [2025-01-29 17:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 14:00:06 [end_date_ymd] => 2025-01-29 17:00:06 [RateCDR] => 1 ) [2025-01-29 17:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 14:00:06' and `end` < '2025-01-29 17:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 17:00:25] Production.INFO: count ==4849 [2025-01-29 17:00:27] Production.ERROR: pbx CDR StartTime 2025-01-29 14:00:06 - End Time 2025-01-29 17:00:06 [2025-01-29 17:00:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 17:00:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357711', 'tblTempUsageDetail_20' ) start [2025-01-29 17:00:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357711', 'tblTempUsageDetail_20' ) end [2025-01-29 17:00:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357711', 'tblTempVendorCDR_20' ) start [2025-01-29 17:00:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357711', 'tblTempVendorCDR_20' ) end [2025-01-29 17:00:27] Production.INFO: ProcessCDR(1,14357711,1,1,2) [2025-01-29 17:00:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14357711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 17:00:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14357711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 17:00:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14357711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 17:00:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14357711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 17:00:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357711', 'tblTempUsageDetail_20' ) start [2025-01-29 17:00:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357711', 'tblTempUsageDetail_20' ) end [2025-01-29 17:00:32] Production.ERROR: pbx prc_insertCDR start [2025-01-29 17:00:32] Production.ERROR: pbx prc_insertCDR end [2025-01-29 17:00:32] Production.INFO: ==20016== Releasing lock... [2025-01-29 17:00:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 17:00:32] Production.INFO: 64.25 MB #Memory Used# [2025-01-29 17:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 14:01:05 [end_date_ymd] => 2025-01-29 17:01:05 [RateCDR] => 1 ) [2025-01-29 17:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 14:01:05' and `end` < '2025-01-29 17:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 17:01:22] Production.INFO: count ==4831 [2025-01-29 17:01:24] Production.ERROR: pbx CDR StartTime 2025-01-29 14:01:05 - End Time 2025-01-29 17:01:05 [2025-01-29 17:01:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 17:01:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357716', 'tblTempUsageDetail_20' ) start [2025-01-29 17:01:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357716', 'tblTempUsageDetail_20' ) end [2025-01-29 17:01:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357716', 'tblTempVendorCDR_20' ) start [2025-01-29 17:01:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357716', 'tblTempVendorCDR_20' ) end [2025-01-29 17:01:24] Production.INFO: ProcessCDR(1,14357716,1,1,2) [2025-01-29 17:01:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14357716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 17:01:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14357716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 17:01:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14357716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 17:01:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14357716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 17:01:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357716', 'tblTempUsageDetail_20' ) start [2025-01-29 17:01:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357716', 'tblTempUsageDetail_20' ) end [2025-01-29 17:01:29] Production.ERROR: pbx prc_insertCDR start [2025-01-29 17:01:29] Production.ERROR: pbx prc_insertCDR end [2025-01-29 17:01:29] Production.INFO: ==20109== Releasing lock... [2025-01-29 17:01:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 17:01:29] Production.INFO: 64.25 MB #Memory Used# [2025-01-29 17:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 14:02:05 [end_date_ymd] => 2025-01-29 17:02:05 [RateCDR] => 1 ) [2025-01-29 17:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 14:02:05' and `end` < '2025-01-29 17:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 17:02:19] Production.INFO: count ==4838 [2025-01-29 17:02:21] Production.ERROR: pbx CDR StartTime 2025-01-29 14:02:05 - End Time 2025-01-29 17:02:05 [2025-01-29 17:02:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 17:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357721', 'tblTempUsageDetail_20' ) start [2025-01-29 17:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357721', 'tblTempUsageDetail_20' ) end [2025-01-29 17:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357721', 'tblTempVendorCDR_20' ) start [2025-01-29 17:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357721', 'tblTempVendorCDR_20' ) end [2025-01-29 17:02:21] Production.INFO: ProcessCDR(1,14357721,1,1,2) [2025-01-29 17:02:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14357721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 17:02:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14357721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 17:02:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14357721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 17:02:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14357721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 17:02:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357721', 'tblTempUsageDetail_20' ) start [2025-01-29 17:02:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357721', 'tblTempUsageDetail_20' ) end [2025-01-29 17:02:26] Production.ERROR: pbx prc_insertCDR start [2025-01-29 17:02:26] Production.ERROR: pbx prc_insertCDR end [2025-01-29 17:02:26] Production.INFO: ==20187== Releasing lock... [2025-01-29 17:02:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 17:02:26] Production.INFO: 64.25 MB #Memory Used# [2025-01-29 17:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 14:03:05 [end_date_ymd] => 2025-01-29 17:03:05 [RateCDR] => 1 ) [2025-01-29 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-01-29 14:03:05' and `end` < '2025-01-29 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-01-29 17:03:19] Production.INFO: count ==4824 [2025-01-29 17:03:21] Production.ERROR: pbx CDR StartTime 2025-01-29 14:03:05 - End Time 2025-01-29 17:03:05 [2025-01-29 17:03:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 17:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357726', 'tblTempUsageDetail_20' ) start [2025-01-29 17:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357726', 'tblTempUsageDetail_20' ) end [2025-01-29 17:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357726', 'tblTempVendorCDR_20' ) start [2025-01-29 17:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357726', 'tblTempVendorCDR_20' ) end [2025-01-29 17:03:21] Production.INFO: ProcessCDR(1,14357726,1,1,2) [2025-01-29 17:03:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14357726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 17:03:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14357726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 17:03:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14357726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 17:03:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14357726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 17:03:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357726', 'tblTempUsageDetail_20' ) start [2025-01-29 17:03:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357726', 'tblTempUsageDetail_20' ) end [2025-01-29 17:03:26] Production.ERROR: pbx prc_insertCDR start [2025-01-29 17:03:26] Production.ERROR: pbx prc_insertCDR end [2025-01-29 17:03:26] Production.INFO: ==20265== Releasing lock... [2025-01-29 17:03:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 17:03:26] Production.INFO: 64 MB #Memory Used# [2025-01-29 17:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 14:04:06 [end_date_ymd] => 2025-01-29 17:04:06 [RateCDR] => 1 ) [2025-01-29 17:04:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 14:04:06' and `end` < '2025-01-29 17:04:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 17:04:20] Production.INFO: count ==4816 [2025-01-29 17:04:22] Production.ERROR: pbx CDR StartTime 2025-01-29 14:04:06 - End Time 2025-01-29 17:04:06 [2025-01-29 17:04:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 17:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357731', 'tblTempUsageDetail_20' ) start [2025-01-29 17:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357731', 'tblTempUsageDetail_20' ) end [2025-01-29 17:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357731', 'tblTempVendorCDR_20' ) start [2025-01-29 17:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357731', 'tblTempVendorCDR_20' ) end [2025-01-29 17:04:22] Production.INFO: ProcessCDR(1,14357731,1,1,2) [2025-01-29 17:04:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14357731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 17:04:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14357731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 17:04:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14357731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 17:04:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14357731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 17:04:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357731', 'tblTempUsageDetail_20' ) start [2025-01-29 17:04:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357731', 'tblTempUsageDetail_20' ) end [2025-01-29 17:04:27] Production.ERROR: pbx prc_insertCDR start [2025-01-29 17:04:27] Production.ERROR: pbx prc_insertCDR end [2025-01-29 17:04:27] Production.INFO: ==20346== Releasing lock... [2025-01-29 17:04:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 17:04:27] Production.INFO: 64.25 MB #Memory Used# [2025-01-29 17:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 14:05:05 [end_date_ymd] => 2025-01-29 17:05:05 [RateCDR] => 1 ) [2025-01-29 17:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 14:05:05' and `end` < '2025-01-29 17:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 17:05:19] Production.INFO: count ==4786 [2025-01-29 17:05:21] Production.ERROR: pbx CDR StartTime 2025-01-29 14:05:05 - End Time 2025-01-29 17:05:05 [2025-01-29 17:05:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 17:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357736', 'tblTempUsageDetail_20' ) start [2025-01-29 17:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357736', 'tblTempUsageDetail_20' ) end [2025-01-29 17:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357736', 'tblTempVendorCDR_20' ) start [2025-01-29 17:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357736', 'tblTempVendorCDR_20' ) end [2025-01-29 17:05:21] Production.INFO: ProcessCDR(1,14357736,1,1,2) [2025-01-29 17:05:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14357736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 17:05:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14357736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 17:05:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14357736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 17:05:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14357736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 17:05:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357736', 'tblTempUsageDetail_20' ) start [2025-01-29 17:05:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357736', 'tblTempUsageDetail_20' ) end [2025-01-29 17:05:26] Production.ERROR: pbx prc_insertCDR start [2025-01-29 17:05:26] Production.ERROR: pbx prc_insertCDR end [2025-01-29 17:05:26] Production.INFO: ==20434== Releasing lock... [2025-01-29 17:05:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 17:05:26] Production.INFO: 63.75 MB #Memory Used# [2025-01-29 17:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 14:06:05 [end_date_ymd] => 2025-01-29 17:06:05 [RateCDR] => 1 ) [2025-01-29 17:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 14:06:05' and `end` < '2025-01-29 17:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 17:06:19] Production.INFO: count ==4751 [2025-01-29 17:06:21] Production.ERROR: pbx CDR StartTime 2025-01-29 14:06:05 - End Time 2025-01-29 17:06:05 [2025-01-29 17:06:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 17:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357741', 'tblTempUsageDetail_20' ) start [2025-01-29 17:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357741', 'tblTempUsageDetail_20' ) end [2025-01-29 17:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357741', 'tblTempVendorCDR_20' ) start [2025-01-29 17:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357741', 'tblTempVendorCDR_20' ) end [2025-01-29 17:06:21] Production.INFO: ProcessCDR(1,14357741,1,1,2) [2025-01-29 17:06:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14357741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 17:06:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14357741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 17:06:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14357741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 17:06:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14357741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 17:06:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357741', 'tblTempUsageDetail_20' ) start [2025-01-29 17:06:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357741', 'tblTempUsageDetail_20' ) end [2025-01-29 17:06:26] Production.ERROR: pbx prc_insertCDR start [2025-01-29 17:06:26] Production.ERROR: pbx prc_insertCDR end [2025-01-29 17:06:26] Production.INFO: ==20507== Releasing lock... [2025-01-29 17:06:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 17:06:26] Production.INFO: 63.5 MB #Memory Used# [2025-01-29 17:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 14:07:05 [end_date_ymd] => 2025-01-29 17:07:05 [RateCDR] => 1 ) [2025-01-29 17:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 14:07:05' and `end` < '2025-01-29 17:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 17:07:19] Production.INFO: count ==4725 [2025-01-29 17:07:21] Production.ERROR: pbx CDR StartTime 2025-01-29 14:07:05 - End Time 2025-01-29 17:07:05 [2025-01-29 17:07:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 17:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357746', 'tblTempUsageDetail_20' ) start [2025-01-29 17:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357746', 'tblTempUsageDetail_20' ) end [2025-01-29 17:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357746', 'tblTempVendorCDR_20' ) start [2025-01-29 17:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357746', 'tblTempVendorCDR_20' ) end [2025-01-29 17:07:21] Production.INFO: ProcessCDR(1,14357746,1,1,2) [2025-01-29 17:07:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14357746,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 17:07:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14357746,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 17:07:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14357746,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 17:07:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14357746,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 17:07:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357746', 'tblTempUsageDetail_20' ) start [2025-01-29 17:07:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357746', 'tblTempUsageDetail_20' ) end [2025-01-29 17:07:25] Production.ERROR: pbx prc_insertCDR start [2025-01-29 17:07:25] Production.ERROR: pbx prc_insertCDR end [2025-01-29 17:07:25] Production.INFO: ==20587== Releasing lock... [2025-01-29 17:07:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 17:07:25] Production.INFO: 63.25 MB #Memory Used# [2025-01-29 17:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 14:08:05 [end_date_ymd] => 2025-01-29 17:08:05 [RateCDR] => 1 ) [2025-01-29 17:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 14:08:05' and `end` < '2025-01-29 17:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 17:08:19] Production.INFO: count ==4730 [2025-01-29 17:08:21] Production.ERROR: pbx CDR StartTime 2025-01-29 14:08:05 - End Time 2025-01-29 17:08:05 [2025-01-29 17:08:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 17:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357751', 'tblTempUsageDetail_20' ) start [2025-01-29 17:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357751', 'tblTempUsageDetail_20' ) end [2025-01-29 17:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357751', 'tblTempVendorCDR_20' ) start [2025-01-29 17:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357751', 'tblTempVendorCDR_20' ) end [2025-01-29 17:08:21] Production.INFO: ProcessCDR(1,14357751,1,1,2) [2025-01-29 17:08:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14357751,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 17:08:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14357751,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 17:08:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14357751,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 17:08:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14357751,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 17:08:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357751', 'tblTempUsageDetail_20' ) start [2025-01-29 17:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357751', 'tblTempUsageDetail_20' ) end [2025-01-29 17:08:26] Production.ERROR: pbx prc_insertCDR start [2025-01-29 17:08:26] Production.ERROR: pbx prc_insertCDR end [2025-01-29 17:08:26] Production.INFO: ==20670== Releasing lock... [2025-01-29 17:08:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 17:08:26] Production.INFO: 63.5 MB #Memory Used# [2025-01-29 17:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 14:09:05 [end_date_ymd] => 2025-01-29 17:09:05 [RateCDR] => 1 ) [2025-01-29 17:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 14:09:05' and `end` < '2025-01-29 17:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 17:09:19] Production.INFO: count ==4719 [2025-01-29 17:09:21] Production.ERROR: pbx CDR StartTime 2025-01-29 14:09:05 - End Time 2025-01-29 17:09:05 [2025-01-29 17:09:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 17:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357756', 'tblTempUsageDetail_20' ) start [2025-01-29 17:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357756', 'tblTempUsageDetail_20' ) end [2025-01-29 17:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357756', 'tblTempVendorCDR_20' ) start [2025-01-29 17:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357756', 'tblTempVendorCDR_20' ) end [2025-01-29 17:09:21] Production.INFO: ProcessCDR(1,14357756,1,1,2) [2025-01-29 17:09:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14357756,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 17:09:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14357756,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 17:09:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14357756,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 17:09:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14357756,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 17:09:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357756', 'tblTempUsageDetail_20' ) start [2025-01-29 17:09:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357756', 'tblTempUsageDetail_20' ) end [2025-01-29 17:09:25] Production.ERROR: pbx prc_insertCDR start [2025-01-29 17:09:25] Production.ERROR: pbx prc_insertCDR end [2025-01-29 17:09:25] Production.INFO: ==20748== Releasing lock... [2025-01-29 17:09:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 17:09:25] Production.INFO: 63.25 MB #Memory Used# [2025-01-29 17:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 14:10:06 [end_date_ymd] => 2025-01-29 17:10:06 [RateCDR] => 1 ) [2025-01-29 17:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 14:10:06' and `end` < '2025-01-29 17:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 17:10:20] Production.INFO: count ==4704 [2025-01-29 17:10:22] Production.ERROR: pbx CDR StartTime 2025-01-29 14:10:06 - End Time 2025-01-29 17:10:06 [2025-01-29 17:10:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 17:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357762', 'tblTempUsageDetail_20' ) start [2025-01-29 17:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357762', 'tblTempUsageDetail_20' ) end [2025-01-29 17:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357762', 'tblTempVendorCDR_20' ) start [2025-01-29 17:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357762', 'tblTempVendorCDR_20' ) end [2025-01-29 17:10:22] Production.INFO: ProcessCDR(1,14357762,1,1,2) [2025-01-29 17:10:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14357762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 17:10:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14357762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 17:10:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14357762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 17:10:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14357762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 17:10:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357762', 'tblTempUsageDetail_20' ) start [2025-01-29 17:10:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357762', 'tblTempUsageDetail_20' ) end [2025-01-29 17:10:28] Production.ERROR: pbx prc_insertCDR start [2025-01-29 17:10:28] Production.ERROR: pbx prc_insertCDR end [2025-01-29 17:10:28] Production.INFO: ==20837== Releasing lock... [2025-01-29 17:10:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 17:10:28] Production.INFO: 63.25 MB #Memory Used# [2025-01-29 17:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 14:11:05 [end_date_ymd] => 2025-01-29 17:11:05 [RateCDR] => 1 ) [2025-01-29 17:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 14:11:05' and `end` < '2025-01-29 17:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 17:11:19] Production.INFO: count ==4686 [2025-01-29 17:11:21] Production.ERROR: pbx CDR StartTime 2025-01-29 14:11:05 - End Time 2025-01-29 17:11:05 [2025-01-29 17:11:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 17:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357767', 'tblTempUsageDetail_20' ) start [2025-01-29 17:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357767', 'tblTempUsageDetail_20' ) end [2025-01-29 17:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357767', 'tblTempVendorCDR_20' ) start [2025-01-29 17:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357767', 'tblTempVendorCDR_20' ) end [2025-01-29 17:11:21] Production.INFO: ProcessCDR(1,14357767,1,1,2) [2025-01-29 17:11:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14357767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 17:11:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14357767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 17:11:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14357767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 17:11:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14357767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 17:11:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357767', 'tblTempUsageDetail_20' ) start [2025-01-29 17:11:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357767', 'tblTempUsageDetail_20' ) end [2025-01-29 17:11:26] Production.ERROR: pbx prc_insertCDR start [2025-01-29 17:11:26] Production.ERROR: pbx prc_insertCDR end [2025-01-29 17:11:26] Production.INFO: ==20918== Releasing lock... [2025-01-29 17:11:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 17:11:26] Production.INFO: 63 MB #Memory Used# [2025-01-29 17:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 14:12:05 [end_date_ymd] => 2025-01-29 17:12:05 [RateCDR] => 1 ) [2025-01-29 17:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 14:12:05' and `end` < '2025-01-29 17:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 17:12:19] Production.INFO: count ==4679 [2025-01-29 17:12:21] Production.ERROR: pbx CDR StartTime 2025-01-29 14:12:05 - End Time 2025-01-29 17:12:05 [2025-01-29 17:12:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 17:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357772', 'tblTempUsageDetail_20' ) start [2025-01-29 17:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357772', 'tblTempUsageDetail_20' ) end [2025-01-29 17:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357772', 'tblTempVendorCDR_20' ) start [2025-01-29 17:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357772', 'tblTempVendorCDR_20' ) end [2025-01-29 17:12:21] Production.INFO: ProcessCDR(1,14357772,1,1,2) [2025-01-29 17:12:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14357772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 17:12:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14357772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 17:12:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14357772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 17:12:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14357772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 17:12:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357772', 'tblTempUsageDetail_20' ) start [2025-01-29 17:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357772', 'tblTempUsageDetail_20' ) end [2025-01-29 17:12:26] Production.ERROR: pbx prc_insertCDR start [2025-01-29 17:12:26] Production.ERROR: pbx prc_insertCDR end [2025-01-29 17:12:26] Production.INFO: ==21001== Releasing lock... [2025-01-29 17:12:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 17:12:26] Production.INFO: 63 MB #Memory Used# [2025-01-29 17:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 14:13:05 [end_date_ymd] => 2025-01-29 17:13:05 [RateCDR] => 1 ) [2025-01-29 17:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 14:13:05' and `end` < '2025-01-29 17:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 17:13:24] Production.INFO: count ==4671 [2025-01-29 17:13:25] Production.ERROR: pbx CDR StartTime 2025-01-29 14:13:05 - End Time 2025-01-29 17:13:05 [2025-01-29 17:13:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 17:13:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357777', 'tblTempUsageDetail_20' ) start [2025-01-29 17:13:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357777', 'tblTempUsageDetail_20' ) end [2025-01-29 17:13:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357777', 'tblTempVendorCDR_20' ) start [2025-01-29 17:13:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357777', 'tblTempVendorCDR_20' ) end [2025-01-29 17:13:26] Production.INFO: ProcessCDR(1,14357777,1,1,2) [2025-01-29 17:13:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14357777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 17:13:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14357777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 17:13:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14357777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 17:13:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14357777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 17:13:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357777', 'tblTempUsageDetail_20' ) start [2025-01-29 17:13:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357777', 'tblTempUsageDetail_20' ) end [2025-01-29 17:13:30] Production.ERROR: pbx prc_insertCDR start [2025-01-29 17:13:30] Production.ERROR: pbx prc_insertCDR end [2025-01-29 17:13:30] Production.INFO: ==21123== Releasing lock... [2025-01-29 17:13:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 17:13:30] Production.INFO: 63 MB #Memory Used# [2025-01-29 17:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 14:14:06 [end_date_ymd] => 2025-01-29 17:14:06 [RateCDR] => 1 ) [2025-01-29 17:14:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 14:14:06' and `end` < '2025-01-29 17:14:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 17:14:23] Production.INFO: count ==4670 [2025-01-29 17:14:25] Production.ERROR: pbx CDR StartTime 2025-01-29 14:14:06 - End Time 2025-01-29 17:14:06 [2025-01-29 17:14:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 17:14:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357782', 'tblTempUsageDetail_20' ) start [2025-01-29 17:14:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357782', 'tblTempUsageDetail_20' ) end [2025-01-29 17:14:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357782', 'tblTempVendorCDR_20' ) start [2025-01-29 17:14:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357782', 'tblTempVendorCDR_20' ) end [2025-01-29 17:14:25] Production.INFO: ProcessCDR(1,14357782,1,1,2) [2025-01-29 17:14:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14357782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 17:14:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14357782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 17:14:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14357782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 17:14:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14357782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 17:14:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357782', 'tblTempUsageDetail_20' ) start [2025-01-29 17:14:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357782', 'tblTempUsageDetail_20' ) end [2025-01-29 17:14:30] Production.ERROR: pbx prc_insertCDR start [2025-01-29 17:14:30] Production.ERROR: pbx prc_insertCDR end [2025-01-29 17:14:30] Production.INFO: ==21215== Releasing lock... [2025-01-29 17:14:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 17:14:30] Production.INFO: 63 MB #Memory Used# [2025-01-29 17:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 14:15:05 [end_date_ymd] => 2025-01-29 17:15:05 [RateCDR] => 1 ) [2025-01-29 17:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 14:15:05' and `end` < '2025-01-29 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-01-29 17:15:19] Production.INFO: count ==4664 [2025-01-29 17:15:21] Production.ERROR: pbx CDR StartTime 2025-01-29 14:15:05 - End Time 2025-01-29 17:15:05 [2025-01-29 17:15:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 17:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357787', 'tblTempUsageDetail_20' ) start [2025-01-29 17:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357787', 'tblTempUsageDetail_20' ) end [2025-01-29 17:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357787', 'tblTempVendorCDR_20' ) start [2025-01-29 17:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357787', 'tblTempVendorCDR_20' ) end [2025-01-29 17:15:22] Production.INFO: ProcessCDR(1,14357787,1,1,2) [2025-01-29 17:15:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14357787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 17:15:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14357787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 17:15:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14357787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 17:15:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14357787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 17:15:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357787', 'tblTempUsageDetail_20' ) start [2025-01-29 17:15:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357787', 'tblTempUsageDetail_20' ) end [2025-01-29 17:15:26] Production.ERROR: pbx prc_insertCDR start [2025-01-29 17:15:26] Production.ERROR: pbx prc_insertCDR end [2025-01-29 17:15:26] Production.INFO: ==21310== Releasing lock... [2025-01-29 17:15:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 17:15:26] Production.INFO: 63 MB #Memory Used# [2025-01-29 17:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 14:16:05 [end_date_ymd] => 2025-01-29 17:16:05 [RateCDR] => 1 ) [2025-01-29 17:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 14:16:05' and `end` < '2025-01-29 17:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 17:16:19] Production.INFO: count ==4666 [2025-01-29 17:16:20] Production.ERROR: pbx CDR StartTime 2025-01-29 14:16:05 - End Time 2025-01-29 17:16:05 [2025-01-29 17:16:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 17:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357792', 'tblTempUsageDetail_20' ) start [2025-01-29 17:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357792', 'tblTempUsageDetail_20' ) end [2025-01-29 17:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357792', 'tblTempVendorCDR_20' ) start [2025-01-29 17:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357792', 'tblTempVendorCDR_20' ) end [2025-01-29 17:16:21] Production.INFO: ProcessCDR(1,14357792,1,1,2) [2025-01-29 17:16:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14357792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 17:16:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14357792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 17:16:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14357792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 17:16:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14357792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 17:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357792', 'tblTempUsageDetail_20' ) start [2025-01-29 17:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357792', 'tblTempUsageDetail_20' ) end [2025-01-29 17:16:24] Production.ERROR: pbx prc_insertCDR start [2025-01-29 17:16:24] Production.ERROR: pbx prc_insertCDR end [2025-01-29 17:16:24] Production.INFO: ==21395== Releasing lock... [2025-01-29 17:16:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 17:16:24] Production.INFO: 63 MB #Memory Used# [2025-01-29 17:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 14:17:05 [end_date_ymd] => 2025-01-29 17:17:05 [RateCDR] => 1 ) [2025-01-29 17:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 14:17:05' and `end` < '2025-01-29 17:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 17:17:18] Production.INFO: count ==4646 [2025-01-29 17:17:20] Production.ERROR: pbx CDR StartTime 2025-01-29 14:17:05 - End Time 2025-01-29 17:17:05 [2025-01-29 17:17:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 17:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357797', 'tblTempUsageDetail_20' ) start [2025-01-29 17:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357797', 'tblTempUsageDetail_20' ) end [2025-01-29 17:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357797', 'tblTempVendorCDR_20' ) start [2025-01-29 17:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357797', 'tblTempVendorCDR_20' ) end [2025-01-29 17:17:20] Production.INFO: ProcessCDR(1,14357797,1,1,2) [2025-01-29 17:17:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14357797,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 17:17:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14357797,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 17:17:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14357797,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 17:17:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14357797,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 17:17:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357797', 'tblTempUsageDetail_20' ) start [2025-01-29 17:17:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357797', 'tblTempUsageDetail_20' ) end [2025-01-29 17:17:25] Production.ERROR: pbx prc_insertCDR start [2025-01-29 17:17:25] Production.ERROR: pbx prc_insertCDR end [2025-01-29 17:17:25] Production.INFO: ==21480== Releasing lock... [2025-01-29 17:17:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 17:17:25] Production.INFO: 62.75 MB #Memory Used# [2025-01-29 17:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 14:18:05 [end_date_ymd] => 2025-01-29 17:18:05 [RateCDR] => 1 ) [2025-01-29 17:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 14:18:05' and `end` < '2025-01-29 17:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 17:18:19] Production.INFO: count ==4635 [2025-01-29 17:18:21] Production.ERROR: pbx CDR StartTime 2025-01-29 14:18:05 - End Time 2025-01-29 17:18:05 [2025-01-29 17:18:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 17:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357802', 'tblTempUsageDetail_20' ) start [2025-01-29 17:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357802', 'tblTempUsageDetail_20' ) end [2025-01-29 17:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357802', 'tblTempVendorCDR_20' ) start [2025-01-29 17:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357802', 'tblTempVendorCDR_20' ) end [2025-01-29 17:18:21] Production.INFO: ProcessCDR(1,14357802,1,1,2) [2025-01-29 17:18:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14357802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 17:18:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14357802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 17:18:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14357802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 17:18:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14357802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 17:18:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357802', 'tblTempUsageDetail_20' ) start [2025-01-29 17:18:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357802', 'tblTempUsageDetail_20' ) end [2025-01-29 17:18:26] Production.ERROR: pbx prc_insertCDR start [2025-01-29 17:18:26] Production.ERROR: pbx prc_insertCDR end [2025-01-29 17:18:26] Production.INFO: ==21570== Releasing lock... [2025-01-29 17:18:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 17:18:26] Production.INFO: 62.75 MB #Memory Used# [2025-01-29 17:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 14:19:05 [end_date_ymd] => 2025-01-29 17:19:05 [RateCDR] => 1 ) [2025-01-29 17:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 14:19:05' and `end` < '2025-01-29 17:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 17:19:18] Production.INFO: count ==4640 [2025-01-29 17:19:20] Production.ERROR: pbx CDR StartTime 2025-01-29 14:19:05 - End Time 2025-01-29 17:19:05 [2025-01-29 17:19:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 17:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357807', 'tblTempUsageDetail_20' ) start [2025-01-29 17:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357807', 'tblTempUsageDetail_20' ) end [2025-01-29 17:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357807', 'tblTempVendorCDR_20' ) start [2025-01-29 17:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357807', 'tblTempVendorCDR_20' ) end [2025-01-29 17:19:20] Production.INFO: ProcessCDR(1,14357807,1,1,2) [2025-01-29 17:19:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14357807,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 17:19:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14357807,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 17:19:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14357807,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 17:19:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14357807,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 17:19:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357807', 'tblTempUsageDetail_20' ) start [2025-01-29 17:19:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357807', 'tblTempUsageDetail_20' ) end [2025-01-29 17:19:25] Production.ERROR: pbx prc_insertCDR start [2025-01-29 17:19:25] Production.ERROR: pbx prc_insertCDR end [2025-01-29 17:19:25] Production.INFO: ==21659== Releasing lock... [2025-01-29 17:19:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 17:19:25] Production.INFO: 62.75 MB #Memory Used# [2025-01-29 17:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 14:20:06 [end_date_ymd] => 2025-01-29 17:20:06 [RateCDR] => 1 ) [2025-01-29 17:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 14:20:06' and `end` < '2025-01-29 17:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 17:20:21] Production.INFO: count ==4648 [2025-01-29 17:20:23] Production.ERROR: pbx CDR StartTime 2025-01-29 14:20:06 - End Time 2025-01-29 17:20:06 [2025-01-29 17:20:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 17:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357813', 'tblTempUsageDetail_20' ) start [2025-01-29 17:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357813', 'tblTempUsageDetail_20' ) end [2025-01-29 17:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357813', 'tblTempVendorCDR_20' ) start [2025-01-29 17:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357813', 'tblTempVendorCDR_20' ) end [2025-01-29 17:20:23] Production.INFO: ProcessCDR(1,14357813,1,1,2) [2025-01-29 17:20:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14357813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 17:20:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14357813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 17:20:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14357813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 17:20:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14357813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 17:20:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357813', 'tblTempUsageDetail_20' ) start [2025-01-29 17:20:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357813', 'tblTempUsageDetail_20' ) end [2025-01-29 17:20:28] Production.ERROR: pbx prc_insertCDR start [2025-01-29 17:20:28] Production.ERROR: pbx prc_insertCDR end [2025-01-29 17:20:28] Production.INFO: ==21748== Releasing lock... [2025-01-29 17:20:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 17:20:28] Production.INFO: 62.75 MB #Memory Used# [2025-01-29 17:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 14:21:05 [end_date_ymd] => 2025-01-29 17:21:05 [RateCDR] => 1 ) [2025-01-29 17:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 14:21:05' and `end` < '2025-01-29 17:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 17:21:19] Production.INFO: count ==4640 [2025-01-29 17:21:20] Production.ERROR: pbx CDR StartTime 2025-01-29 14:21:05 - End Time 2025-01-29 17:21:05 [2025-01-29 17:21:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 17:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357818', 'tblTempUsageDetail_20' ) start [2025-01-29 17:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357818', 'tblTempUsageDetail_20' ) end [2025-01-29 17:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357818', 'tblTempVendorCDR_20' ) start [2025-01-29 17:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357818', 'tblTempVendorCDR_20' ) end [2025-01-29 17:21:21] Production.INFO: ProcessCDR(1,14357818,1,1,2) [2025-01-29 17:21:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14357818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 17:21:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14357818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 17:21:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14357818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 17:21:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14357818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 17:21:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357818', 'tblTempUsageDetail_20' ) start [2025-01-29 17:21:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357818', 'tblTempUsageDetail_20' ) end [2025-01-29 17:21:25] Production.ERROR: pbx prc_insertCDR start [2025-01-29 17:21:25] Production.ERROR: pbx prc_insertCDR end [2025-01-29 17:21:25] Production.INFO: ==21828== Releasing lock... [2025-01-29 17:21:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 17:21:25] Production.INFO: 62.75 MB #Memory Used# [2025-01-29 17:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 14:22:06 [end_date_ymd] => 2025-01-29 17:22:06 [RateCDR] => 1 ) [2025-01-29 17:22:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 14:22:06' and `end` < '2025-01-29 17:22:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 17:22:19] Production.INFO: count ==4642 [2025-01-29 17:22:21] Production.ERROR: pbx CDR StartTime 2025-01-29 14:22:06 - End Time 2025-01-29 17:22:06 [2025-01-29 17:22:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 17:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357823', 'tblTempUsageDetail_20' ) start [2025-01-29 17:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357823', 'tblTempUsageDetail_20' ) end [2025-01-29 17:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357823', 'tblTempVendorCDR_20' ) start [2025-01-29 17:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357823', 'tblTempVendorCDR_20' ) end [2025-01-29 17:22:21] Production.INFO: ProcessCDR(1,14357823,1,1,2) [2025-01-29 17:22:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14357823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 17:22:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14357823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 17:22:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14357823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 17:22:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14357823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 17:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357823', 'tblTempUsageDetail_20' ) start [2025-01-29 17:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357823', 'tblTempUsageDetail_20' ) end [2025-01-29 17:22:26] Production.ERROR: pbx prc_insertCDR start [2025-01-29 17:22:26] Production.ERROR: pbx prc_insertCDR end [2025-01-29 17:22:26] Production.INFO: ==21916== Releasing lock... [2025-01-29 17:22:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 17:22:26] Production.INFO: 62.75 MB #Memory Used# [2025-01-29 17:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 14:23:05 [end_date_ymd] => 2025-01-29 17:23:05 [RateCDR] => 1 ) [2025-01-29 17:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 14:23:05' and `end` < '2025-01-29 17:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 17:23:23] Production.INFO: count ==4636 [2025-01-29 17:23:25] Production.ERROR: pbx CDR StartTime 2025-01-29 14:23:05 - End Time 2025-01-29 17:23:05 [2025-01-29 17:23:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 17:23:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357828', 'tblTempUsageDetail_20' ) start [2025-01-29 17:23:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357828', 'tblTempUsageDetail_20' ) end [2025-01-29 17:23:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357828', 'tblTempVendorCDR_20' ) start [2025-01-29 17:23:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357828', 'tblTempVendorCDR_20' ) end [2025-01-29 17:23:25] Production.INFO: ProcessCDR(1,14357828,1,1,2) [2025-01-29 17:23:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14357828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 17:23:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14357828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 17:23:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14357828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 17:23:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14357828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 17:23:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357828', 'tblTempUsageDetail_20' ) start [2025-01-29 17:23:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357828', 'tblTempUsageDetail_20' ) end [2025-01-29 17:23:29] Production.ERROR: pbx prc_insertCDR start [2025-01-29 17:23:29] Production.ERROR: pbx prc_insertCDR end [2025-01-29 17:23:30] Production.INFO: ==22002== Releasing lock... [2025-01-29 17:23:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 17:23:30] Production.INFO: 62.75 MB #Memory Used# [2025-01-29 17:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 14:24:06 [end_date_ymd] => 2025-01-29 17:24:06 [RateCDR] => 1 ) [2025-01-29 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-01-29 14:24:06' and `end` < '2025-01-29 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-01-29 17:24:23] Production.INFO: count ==4633 [2025-01-29 17:24:25] Production.ERROR: pbx CDR StartTime 2025-01-29 14:24:06 - End Time 2025-01-29 17:24:06 [2025-01-29 17:24:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 17:24:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357833', 'tblTempUsageDetail_20' ) start [2025-01-29 17:24:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357833', 'tblTempUsageDetail_20' ) end [2025-01-29 17:24:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357833', 'tblTempVendorCDR_20' ) start [2025-01-29 17:24:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357833', 'tblTempVendorCDR_20' ) end [2025-01-29 17:24:25] Production.INFO: ProcessCDR(1,14357833,1,1,2) [2025-01-29 17:24:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14357833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 17:24:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14357833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 17:24:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14357833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 17:24:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14357833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 17:24:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357833', 'tblTempUsageDetail_20' ) start [2025-01-29 17:24:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357833', 'tblTempUsageDetail_20' ) end [2025-01-29 17:24:30] Production.ERROR: pbx prc_insertCDR start [2025-01-29 17:24:30] Production.ERROR: pbx prc_insertCDR end [2025-01-29 17:24:30] Production.INFO: ==22083== Releasing lock... [2025-01-29 17:24:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 17:24:30] Production.INFO: 62.75 MB #Memory Used# [2025-01-29 17:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 14:25:05 [end_date_ymd] => 2025-01-29 17:25:05 [RateCDR] => 1 ) [2025-01-29 17:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 14:25:05' and `end` < '2025-01-29 17:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 17:25:23] Production.INFO: count ==4630 [2025-01-29 17:26:11] Production.ERROR: pbx CDR StartTime 2025-01-29 14:25:05 - End Time 2025-01-29 17:25:05 [2025-01-29 17:26:11] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 17:26:11] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357838', 'tblTempUsageDetail_20' ) start [2025-01-29 17:26:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357838', 'tblTempUsageDetail_20' ) end [2025-01-29 17:26:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357838', 'tblTempVendorCDR_20' ) start [2025-01-29 17:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357838', 'tblTempVendorCDR_20' ) end [2025-01-29 17:26:19] Production.INFO: ProcessCDR(1,14357838,1,1,2) [2025-01-29 17:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14357838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 17:26:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14357838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 17:26:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14357838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 17:26:52] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14357838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 17:26:52] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357838', 'tblTempUsageDetail_20' ) start [2025-01-29 17:26:55] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357838', 'tblTempUsageDetail_20' ) end [2025-01-29 17:26:55] Production.ERROR: pbx prc_insertCDR start [2025-01-29 17:26:55] Production.ERROR: pbx prc_insertCDR end [2025-01-29 17:27:19] Production.INFO: ==22167== Releasing lock... [2025-01-29 17:27:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 17:27:19] Production.INFO: 62.75 MB #Memory Used# [2025-01-29 17:28:28] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 14:28:28 [end_date_ymd] => 2025-01-29 17:28:28 [RateCDR] => 1 ) [2025-01-29 17:28:28] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 14:28:28' and `end` < '2025-01-29 17:28:28' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 17:28:42] Production.INFO: count ==4569 [2025-01-29 17:29:30] Production.ERROR: pbx CDR StartTime 2025-01-29 14:28:28 - End Time 2025-01-29 17:28:28 [2025-01-29 17:29:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 17:29:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357849', 'tblTempUsageDetail_20' ) start [2025-01-29 17:29:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357849', 'tblTempUsageDetail_20' ) end [2025-01-29 17:29:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357849', 'tblTempVendorCDR_20' ) start [2025-01-29 17:29:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357849', 'tblTempVendorCDR_20' ) end [2025-01-29 17:29:32] Production.INFO: ProcessCDR(1,14357849,1,1,2) [2025-01-29 17:29:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14357849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 17:29:42] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14357849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 17:29:42] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14357849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 17:29:58] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14357849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 17:29:58] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357849', 'tblTempUsageDetail_20' ) start [2025-01-29 17:30:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357849', 'tblTempUsageDetail_20' ) end [2025-01-29 17:30:25] Production.ERROR: pbx prc_insertCDR start [2025-01-29 17:30:25] Production.ERROR: pbx prc_insertCDR end [2025-01-29 17:30:28] Production.INFO: ==22447== Releasing lock... [2025-01-29 17:30:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 17:30:28] Production.INFO: 62.25 MB #Memory Used# [2025-01-29 17:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 14:31:06 [end_date_ymd] => 2025-01-29 17:31:06 [RateCDR] => 1 ) [2025-01-29 17:31:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 14:31:06' and `end` < '2025-01-29 17:31:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 17:31:23] Production.INFO: count ==4578 [2025-01-29 17:31:25] Production.ERROR: pbx CDR StartTime 2025-01-29 14:31:06 - End Time 2025-01-29 17:31:06 [2025-01-29 17:31:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 17:31:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357861', 'tblTempUsageDetail_20' ) start [2025-01-29 17:31:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357861', 'tblTempUsageDetail_20' ) end [2025-01-29 17:31:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357861', 'tblTempVendorCDR_20' ) start [2025-01-29 17:31:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357861', 'tblTempVendorCDR_20' ) end [2025-01-29 17:31:26] Production.INFO: ProcessCDR(1,14357861,1,1,2) [2025-01-29 17:31:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14357861,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 17:31:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14357861,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 17:31:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14357861,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 17:31:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14357861,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 17:31:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357861', 'tblTempUsageDetail_20' ) start [2025-01-29 17:31:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357861', 'tblTempUsageDetail_20' ) end [2025-01-29 17:31:31] Production.ERROR: pbx prc_insertCDR start [2025-01-29 17:31:31] Production.ERROR: pbx prc_insertCDR end [2025-01-29 17:31:31] Production.INFO: ==22698== Releasing lock... [2025-01-29 17:31:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 17:31:31] Production.INFO: 62.25 MB #Memory Used# [2025-01-29 17:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 14:32:06 [end_date_ymd] => 2025-01-29 17:32:06 [RateCDR] => 1 ) [2025-01-29 17:32:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 14:32:06' and `end` < '2025-01-29 17:32:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 17:32:23] Production.INFO: count ==4573 [2025-01-29 17:32:25] Production.ERROR: pbx CDR StartTime 2025-01-29 14:32:06 - End Time 2025-01-29 17:32:06 [2025-01-29 17:32:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 17:32:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357866', 'tblTempUsageDetail_20' ) start [2025-01-29 17:32:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357866', 'tblTempUsageDetail_20' ) end [2025-01-29 17:32:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357866', 'tblTempVendorCDR_20' ) start [2025-01-29 17:32:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357866', 'tblTempVendorCDR_20' ) end [2025-01-29 17:32:25] Production.INFO: ProcessCDR(1,14357866,1,1,2) [2025-01-29 17:32:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14357866,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 17:32:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14357866,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 17:32:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14357866,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 17:32:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14357866,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 17:32:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357866', 'tblTempUsageDetail_20' ) start [2025-01-29 17:32:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357866', 'tblTempUsageDetail_20' ) end [2025-01-29 17:32:30] Production.ERROR: pbx prc_insertCDR start [2025-01-29 17:32:30] Production.ERROR: pbx prc_insertCDR end [2025-01-29 17:32:30] Production.INFO: ==22817== Releasing lock... [2025-01-29 17:32:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 17:32:30] Production.INFO: 62.25 MB #Memory Used# [2025-01-29 17:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 14:33:05 [end_date_ymd] => 2025-01-29 17:33:05 [RateCDR] => 1 ) [2025-01-29 17:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 14:33:05' and `end` < '2025-01-29 17:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 17:33:22] Production.INFO: count ==4571 [2025-01-29 17:33:23] Production.ERROR: pbx CDR StartTime 2025-01-29 14:33:05 - End Time 2025-01-29 17:33:05 [2025-01-29 17:33:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 17:33:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357871', 'tblTempUsageDetail_20' ) start [2025-01-29 17:33:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357871', 'tblTempUsageDetail_20' ) end [2025-01-29 17:33:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357871', 'tblTempVendorCDR_20' ) start [2025-01-29 17:33:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357871', 'tblTempVendorCDR_20' ) end [2025-01-29 17:33:24] Production.INFO: ProcessCDR(1,14357871,1,1,2) [2025-01-29 17:33:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14357871,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 17:33:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14357871,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 17:33:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14357871,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 17:33:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14357871,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 17:33:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357871', 'tblTempUsageDetail_20' ) start [2025-01-29 17:33:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357871', 'tblTempUsageDetail_20' ) end [2025-01-29 17:33:29] Production.ERROR: pbx prc_insertCDR start [2025-01-29 17:33:29] Production.ERROR: pbx prc_insertCDR end [2025-01-29 17:33:29] Production.INFO: ==22926== Releasing lock... [2025-01-29 17:33:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 17:33:29] Production.INFO: 62.25 MB #Memory Used# [2025-01-29 17:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 14:34:05 [end_date_ymd] => 2025-01-29 17:34:05 [RateCDR] => 1 ) [2025-01-29 17:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 14:34:05' and `end` < '2025-01-29 17:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 17:34:19] Production.INFO: count ==4563 [2025-01-29 17:34:21] Production.ERROR: pbx CDR StartTime 2025-01-29 14:34:05 - End Time 2025-01-29 17:34:05 [2025-01-29 17:34:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 17:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357876', 'tblTempUsageDetail_20' ) start [2025-01-29 17:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357876', 'tblTempUsageDetail_20' ) end [2025-01-29 17:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357876', 'tblTempVendorCDR_20' ) start [2025-01-29 17:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357876', 'tblTempVendorCDR_20' ) end [2025-01-29 17:34:21] Production.INFO: ProcessCDR(1,14357876,1,1,2) [2025-01-29 17:34:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14357876,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 17:34:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14357876,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 17:34:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14357876,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 17:34:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14357876,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 17:34:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357876', 'tblTempUsageDetail_20' ) start [2025-01-29 17:34:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357876', 'tblTempUsageDetail_20' ) end [2025-01-29 17:34:25] Production.ERROR: pbx prc_insertCDR start [2025-01-29 17:34:25] Production.ERROR: pbx prc_insertCDR end [2025-01-29 17:34:26] Production.INFO: ==23015== Releasing lock... [2025-01-29 17:34:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 17:34:26] Production.INFO: 62.25 MB #Memory Used# [2025-01-29 17:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 14:35:05 [end_date_ymd] => 2025-01-29 17:35:05 [RateCDR] => 1 ) [2025-01-29 17:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 14:35:05' and `end` < '2025-01-29 17:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 17:35:27] Production.INFO: count ==4564 [2025-01-29 17:35:29] Production.ERROR: pbx CDR StartTime 2025-01-29 14:35:05 - End Time 2025-01-29 17:35:05 [2025-01-29 17:35:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 17:35:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357881', 'tblTempUsageDetail_20' ) start [2025-01-29 17:35:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357881', 'tblTempUsageDetail_20' ) end [2025-01-29 17:35:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357881', 'tblTempVendorCDR_20' ) start [2025-01-29 17:35:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357881', 'tblTempVendorCDR_20' ) end [2025-01-29 17:35:29] Production.INFO: ProcessCDR(1,14357881,1,1,2) [2025-01-29 17:35:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14357881,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 17:35:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14357881,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 17:35:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14357881,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 17:35:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14357881,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 17:35:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357881', 'tblTempUsageDetail_20' ) start [2025-01-29 17:35:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357881', 'tblTempUsageDetail_20' ) end [2025-01-29 17:35:34] Production.ERROR: pbx prc_insertCDR start [2025-01-29 17:35:34] Production.ERROR: pbx prc_insertCDR end [2025-01-29 17:35:34] Production.INFO: ==23122== Releasing lock... [2025-01-29 17:35:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 17:35:34] Production.INFO: 62.25 MB #Memory Used# [2025-01-29 17:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 14:36:05 [end_date_ymd] => 2025-01-29 17:36:05 [RateCDR] => 1 ) [2025-01-29 17:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 14:36:05' and `end` < '2025-01-29 17:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 17:36:20] Production.INFO: count ==4556 [2025-01-29 17:36:21] Production.ERROR: pbx CDR StartTime 2025-01-29 14:36:05 - End Time 2025-01-29 17:36:05 [2025-01-29 17:36:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 17:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357886', 'tblTempUsageDetail_20' ) start [2025-01-29 17:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357886', 'tblTempUsageDetail_20' ) end [2025-01-29 17:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357886', 'tblTempVendorCDR_20' ) start [2025-01-29 17:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357886', 'tblTempVendorCDR_20' ) end [2025-01-29 17:36:22] Production.INFO: ProcessCDR(1,14357886,1,1,2) [2025-01-29 17:36:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14357886,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 17:36:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14357886,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 17:36:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14357886,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 17:36:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14357886,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 17:36:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357886', 'tblTempUsageDetail_20' ) start [2025-01-29 17:36:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357886', 'tblTempUsageDetail_20' ) end [2025-01-29 17:36:26] Production.ERROR: pbx prc_insertCDR start [2025-01-29 17:36:26] Production.ERROR: pbx prc_insertCDR end [2025-01-29 17:36:26] Production.INFO: ==23208== Releasing lock... [2025-01-29 17:36:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 17:36:26] Production.INFO: 62 MB #Memory Used# [2025-01-29 17:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 14:37:05 [end_date_ymd] => 2025-01-29 17:37:05 [RateCDR] => 1 ) [2025-01-29 17:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 14:37:05' and `end` < '2025-01-29 17:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 17:37:19] Production.INFO: count ==4555 [2025-01-29 17:37:20] Production.ERROR: pbx CDR StartTime 2025-01-29 14:37:05 - End Time 2025-01-29 17:37:05 [2025-01-29 17:37:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 17:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357891', 'tblTempUsageDetail_20' ) start [2025-01-29 17:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357891', 'tblTempUsageDetail_20' ) end [2025-01-29 17:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357891', 'tblTempVendorCDR_20' ) start [2025-01-29 17:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357891', 'tblTempVendorCDR_20' ) end [2025-01-29 17:37:21] Production.INFO: ProcessCDR(1,14357891,1,1,2) [2025-01-29 17:37:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14357891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 17:37:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14357891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 17:37:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14357891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 17:37:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14357891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 17:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357891', 'tblTempUsageDetail_20' ) start [2025-01-29 17:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357891', 'tblTempUsageDetail_20' ) end [2025-01-29 17:37:24] Production.ERROR: pbx prc_insertCDR start [2025-01-29 17:37:24] Production.ERROR: pbx prc_insertCDR end [2025-01-29 17:37:24] Production.INFO: ==23295== Releasing lock... [2025-01-29 17:37:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 17:37:24] Production.INFO: 62 MB #Memory Used# [2025-01-29 17:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 14:38:05 [end_date_ymd] => 2025-01-29 17:38:05 [RateCDR] => 1 ) [2025-01-29 17:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 14:38:05' and `end` < '2025-01-29 17:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 17:38:19] Production.INFO: count ==4555 [2025-01-29 17:38:20] Production.ERROR: pbx CDR StartTime 2025-01-29 14:38:05 - End Time 2025-01-29 17:38:05 [2025-01-29 17:38:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 17:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357896', 'tblTempUsageDetail_20' ) start [2025-01-29 17:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357896', 'tblTempUsageDetail_20' ) end [2025-01-29 17:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357896', 'tblTempVendorCDR_20' ) start [2025-01-29 17:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357896', 'tblTempVendorCDR_20' ) end [2025-01-29 17:38:21] Production.INFO: ProcessCDR(1,14357896,1,1,2) [2025-01-29 17:38:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14357896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 17:38:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14357896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 17:38:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14357896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 17:38:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14357896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 17:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357896', 'tblTempUsageDetail_20' ) start [2025-01-29 17:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357896', 'tblTempUsageDetail_20' ) end [2025-01-29 17:38:24] Production.ERROR: pbx prc_insertCDR start [2025-01-29 17:38:24] Production.ERROR: pbx prc_insertCDR end [2025-01-29 17:38:24] Production.INFO: ==23392== Releasing lock... [2025-01-29 17:38:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 17:38:24] Production.INFO: 62 MB #Memory Used# [2025-01-29 17:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 14:39:06 [end_date_ymd] => 2025-01-29 17:39:06 [RateCDR] => 1 ) [2025-01-29 17:39:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 14:39:06' and `end` < '2025-01-29 17:39:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 17:39:19] Production.INFO: count ==4541 [2025-01-29 17:39:21] Production.ERROR: pbx CDR StartTime 2025-01-29 14:39:06 - End Time 2025-01-29 17:39:06 [2025-01-29 17:39:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 17:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357901', 'tblTempUsageDetail_20' ) start [2025-01-29 17:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357901', 'tblTempUsageDetail_20' ) end [2025-01-29 17:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357901', 'tblTempVendorCDR_20' ) start [2025-01-29 17:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357901', 'tblTempVendorCDR_20' ) end [2025-01-29 17:39:21] Production.INFO: ProcessCDR(1,14357901,1,1,2) [2025-01-29 17:39:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14357901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 17:39:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14357901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 17:39:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14357901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 17:39:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14357901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 17:39:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357901', 'tblTempUsageDetail_20' ) start [2025-01-29 17:39:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357901', 'tblTempUsageDetail_20' ) end [2025-01-29 17:39:25] Production.ERROR: pbx prc_insertCDR start [2025-01-29 17:39:25] Production.ERROR: pbx prc_insertCDR end [2025-01-29 17:39:25] Production.INFO: ==23496== Releasing lock... [2025-01-29 17:39:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 17:39:25] Production.INFO: 62 MB #Memory Used# [2025-01-29 17:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 14:40:06 [end_date_ymd] => 2025-01-29 17:40:06 [RateCDR] => 1 ) [2025-01-29 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-01-29 14:40:06' and `end` < '2025-01-29 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-01-29 17:40:19] Production.INFO: count ==4519 [2025-01-29 17:40:21] Production.ERROR: pbx CDR StartTime 2025-01-29 14:40:06 - End Time 2025-01-29 17:40:06 [2025-01-29 17:40:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 17:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357907', 'tblTempUsageDetail_20' ) start [2025-01-29 17:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357907', 'tblTempUsageDetail_20' ) end [2025-01-29 17:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357907', 'tblTempVendorCDR_20' ) start [2025-01-29 17:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357907', 'tblTempVendorCDR_20' ) end [2025-01-29 17:40:21] Production.INFO: ProcessCDR(1,14357907,1,1,2) [2025-01-29 17:40:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14357907,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 17:40:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14357907,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 17:40:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14357907,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 17:40:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14357907,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 17:40:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357907', 'tblTempUsageDetail_20' ) start [2025-01-29 17:40:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357907', 'tblTempUsageDetail_20' ) end [2025-01-29 17:40:25] Production.ERROR: pbx prc_insertCDR start [2025-01-29 17:40:25] Production.ERROR: pbx prc_insertCDR end [2025-01-29 17:40:25] Production.INFO: ==23580== Releasing lock... [2025-01-29 17:40:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 17:40:25] Production.INFO: 61.75 MB #Memory Used# [2025-01-29 17:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 14:41:05 [end_date_ymd] => 2025-01-29 17:41:05 [RateCDR] => 1 ) [2025-01-29 17:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 14:41:05' and `end` < '2025-01-29 17:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 17:41:24] Production.INFO: count ==4526 [2025-01-29 17:41:26] Production.ERROR: pbx CDR StartTime 2025-01-29 14:41:05 - End Time 2025-01-29 17:41:05 [2025-01-29 17:41:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 17:41:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357912', 'tblTempUsageDetail_20' ) start [2025-01-29 17:41:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357912', 'tblTempUsageDetail_20' ) end [2025-01-29 17:41:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357912', 'tblTempVendorCDR_20' ) start [2025-01-29 17:41:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357912', 'tblTempVendorCDR_20' ) end [2025-01-29 17:41:26] Production.INFO: ProcessCDR(1,14357912,1,1,2) [2025-01-29 17:41:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14357912,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 17:41:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14357912,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 17:41:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14357912,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 17:41:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14357912,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 17:41:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357912', 'tblTempUsageDetail_20' ) start [2025-01-29 17:41:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357912', 'tblTempUsageDetail_20' ) end [2025-01-29 17:41:30] Production.ERROR: pbx prc_insertCDR start [2025-01-29 17:41:31] Production.ERROR: pbx prc_insertCDR end [2025-01-29 17:41:31] Production.INFO: ==23665== Releasing lock... [2025-01-29 17:41:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 17:41:31] Production.INFO: 61.75 MB #Memory Used# [2025-01-29 17:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 14:42:05 [end_date_ymd] => 2025-01-29 17:42:05 [RateCDR] => 1 ) [2025-01-29 17:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 14:42:05' and `end` < '2025-01-29 17:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 17:42:21] Production.INFO: count ==4520 [2025-01-29 17:42:23] Production.ERROR: pbx CDR StartTime 2025-01-29 14:42:05 - End Time 2025-01-29 17:42:05 [2025-01-29 17:42:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 17:42:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357917', 'tblTempUsageDetail_20' ) start [2025-01-29 17:42:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357917', 'tblTempUsageDetail_20' ) end [2025-01-29 17:42:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357917', 'tblTempVendorCDR_20' ) start [2025-01-29 17:42:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357917', 'tblTempVendorCDR_20' ) end [2025-01-29 17:42:23] Production.INFO: ProcessCDR(1,14357917,1,1,2) [2025-01-29 17:42:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14357917,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 17:42:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14357917,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 17:42:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14357917,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 17:42:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14357917,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 17:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357917', 'tblTempUsageDetail_20' ) start [2025-01-29 17:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357917', 'tblTempUsageDetail_20' ) end [2025-01-29 17:42:26] Production.ERROR: pbx prc_insertCDR start [2025-01-29 17:42:26] Production.ERROR: pbx prc_insertCDR end [2025-01-29 17:42:26] Production.INFO: ==23751== Releasing lock... [2025-01-29 17:42:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 17:42:26] Production.INFO: 61.75 MB #Memory Used# [2025-01-29 17:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 14:43:05 [end_date_ymd] => 2025-01-29 17:43:05 [RateCDR] => 1 ) [2025-01-29 17:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 14:43:05' and `end` < '2025-01-29 17:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 17:43:18] Production.INFO: count ==4514 [2025-01-29 17:43:20] Production.ERROR: pbx CDR StartTime 2025-01-29 14:43:05 - End Time 2025-01-29 17:43:05 [2025-01-29 17:43:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 17:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357922', 'tblTempUsageDetail_20' ) start [2025-01-29 17:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357922', 'tblTempUsageDetail_20' ) end [2025-01-29 17:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357922', 'tblTempVendorCDR_20' ) start [2025-01-29 17:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357922', 'tblTempVendorCDR_20' ) end [2025-01-29 17:43:20] Production.INFO: ProcessCDR(1,14357922,1,1,2) [2025-01-29 17:43:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14357922,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 17:43:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14357922,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 17:43:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14357922,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 17:43:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14357922,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 17:43:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357922', 'tblTempUsageDetail_20' ) start [2025-01-29 17:43:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357922', 'tblTempUsageDetail_20' ) end [2025-01-29 17:43:25] Production.ERROR: pbx prc_insertCDR start [2025-01-29 17:43:25] Production.ERROR: pbx prc_insertCDR end [2025-01-29 17:43:25] Production.INFO: ==23832== Releasing lock... [2025-01-29 17:43:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 17:43:25] Production.INFO: 61.75 MB #Memory Used# [2025-01-29 17:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 14:44:06 [end_date_ymd] => 2025-01-29 17:44:06 [RateCDR] => 1 ) [2025-01-29 17:44:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 14:44:06' and `end` < '2025-01-29 17:44:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 17:44:20] Production.INFO: count ==4510 [2025-01-29 17:44:22] Production.ERROR: pbx CDR StartTime 2025-01-29 14:44:06 - End Time 2025-01-29 17:44:06 [2025-01-29 17:44:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 17:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357927', 'tblTempUsageDetail_20' ) start [2025-01-29 17:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357927', 'tblTempUsageDetail_20' ) end [2025-01-29 17:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357927', 'tblTempVendorCDR_20' ) start [2025-01-29 17:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357927', 'tblTempVendorCDR_20' ) end [2025-01-29 17:44:22] Production.INFO: ProcessCDR(1,14357927,1,1,2) [2025-01-29 17:44:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14357927,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 17:44:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14357927,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 17:44:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14357927,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 17:44:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14357927,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 17:44:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357927', 'tblTempUsageDetail_20' ) start [2025-01-29 17:44:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357927', 'tblTempUsageDetail_20' ) end [2025-01-29 17:44:27] Production.ERROR: pbx prc_insertCDR start [2025-01-29 17:44:27] Production.ERROR: pbx prc_insertCDR end [2025-01-29 17:44:27] Production.INFO: ==23957== Releasing lock... [2025-01-29 17:44:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 17:44:27] Production.INFO: 61.75 MB #Memory Used# [2025-01-29 17:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 14:45:05 [end_date_ymd] => 2025-01-29 17:45:05 [RateCDR] => 1 ) [2025-01-29 17:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 14:45:05' and `end` < '2025-01-29 17:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 17:45:18] Production.INFO: count ==4505 [2025-01-29 17:45:20] Production.ERROR: pbx CDR StartTime 2025-01-29 14:45:05 - End Time 2025-01-29 17:45:05 [2025-01-29 17:45:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 17:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357932', 'tblTempUsageDetail_20' ) start [2025-01-29 17:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357932', 'tblTempUsageDetail_20' ) end [2025-01-29 17:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357932', 'tblTempVendorCDR_20' ) start [2025-01-29 17:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357932', 'tblTempVendorCDR_20' ) end [2025-01-29 17:45:20] Production.INFO: ProcessCDR(1,14357932,1,1,2) [2025-01-29 17:45:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14357932,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 17:45:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14357932,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 17:45:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14357932,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 17:45:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14357932,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 17:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357932', 'tblTempUsageDetail_20' ) start [2025-01-29 17:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357932', 'tblTempUsageDetail_20' ) end [2025-01-29 17:45:23] Production.ERROR: pbx prc_insertCDR start [2025-01-29 17:45:23] Production.ERROR: pbx prc_insertCDR end [2025-01-29 17:45:23] Production.INFO: ==24037== Releasing lock... [2025-01-29 17:45:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 17:45:23] Production.INFO: 61.75 MB #Memory Used# [2025-01-29 17:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 14:46:05 [end_date_ymd] => 2025-01-29 17:46:05 [RateCDR] => 1 ) [2025-01-29 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-01-29 14:46:05' and `end` < '2025-01-29 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-01-29 17:46:19] Production.INFO: count ==4500 [2025-01-29 17:46:21] Production.ERROR: pbx CDR StartTime 2025-01-29 14:46:05 - End Time 2025-01-29 17:46:05 [2025-01-29 17:46:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 17:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357937', 'tblTempUsageDetail_20' ) start [2025-01-29 17:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357937', 'tblTempUsageDetail_20' ) end [2025-01-29 17:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357937', 'tblTempVendorCDR_20' ) start [2025-01-29 17:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357937', 'tblTempVendorCDR_20' ) end [2025-01-29 17:46:21] Production.INFO: ProcessCDR(1,14357937,1,1,2) [2025-01-29 17:46:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14357937,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 17:46:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14357937,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 17:46:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14357937,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 17:46:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14357937,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 17:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357937', 'tblTempUsageDetail_20' ) start [2025-01-29 17:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357937', 'tblTempUsageDetail_20' ) end [2025-01-29 17:46:24] Production.ERROR: pbx prc_insertCDR start [2025-01-29 17:46:25] Production.ERROR: pbx prc_insertCDR end [2025-01-29 17:46:25] Production.INFO: ==24132== Releasing lock... [2025-01-29 17:46:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 17:46:25] Production.INFO: 61.75 MB #Memory Used# [2025-01-29 17:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 14:47:05 [end_date_ymd] => 2025-01-29 17:47:05 [RateCDR] => 1 ) [2025-01-29 17:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 14:47:05' and `end` < '2025-01-29 17:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 17:47:20] Production.INFO: count ==4475 [2025-01-29 17:47:21] Production.ERROR: pbx CDR StartTime 2025-01-29 14:47:05 - End Time 2025-01-29 17:47:05 [2025-01-29 17:47:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 17:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357942', 'tblTempUsageDetail_20' ) start [2025-01-29 17:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357942', 'tblTempUsageDetail_20' ) end [2025-01-29 17:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357942', 'tblTempVendorCDR_20' ) start [2025-01-29 17:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357942', 'tblTempVendorCDR_20' ) end [2025-01-29 17:47:22] Production.INFO: ProcessCDR(1,14357942,1,1,2) [2025-01-29 17:47:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14357942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 17:47:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14357942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 17:47:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14357942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 17:47:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14357942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 17:47:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357942', 'tblTempUsageDetail_20' ) start [2025-01-29 17:47:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357942', 'tblTempUsageDetail_20' ) end [2025-01-29 17:47:25] Production.ERROR: pbx prc_insertCDR start [2025-01-29 17:47:25] Production.ERROR: pbx prc_insertCDR end [2025-01-29 17:47:25] Production.INFO: ==24238== Releasing lock... [2025-01-29 17:47:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 17:47:25] Production.INFO: 61.5 MB #Memory Used# [2025-01-29 17:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 14:48:05 [end_date_ymd] => 2025-01-29 17:48:05 [RateCDR] => 1 ) [2025-01-29 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-01-29 14:48:05' and `end` < '2025-01-29 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-01-29 17:48:21] Production.INFO: count ==4466 [2025-01-29 17:48:23] Production.ERROR: pbx CDR StartTime 2025-01-29 14:48:05 - End Time 2025-01-29 17:48:05 [2025-01-29 17:48:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 17:48:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357947', 'tblTempUsageDetail_20' ) start [2025-01-29 17:48:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357947', 'tblTempUsageDetail_20' ) end [2025-01-29 17:48:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357947', 'tblTempVendorCDR_20' ) start [2025-01-29 17:48:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357947', 'tblTempVendorCDR_20' ) end [2025-01-29 17:48:23] Production.INFO: ProcessCDR(1,14357947,1,1,2) [2025-01-29 17:48:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14357947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 17:48:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14357947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 17:48:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14357947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 17:48:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14357947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 17:48:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357947', 'tblTempUsageDetail_20' ) start [2025-01-29 17:48:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357947', 'tblTempUsageDetail_20' ) end [2025-01-29 17:48:26] Production.ERROR: pbx prc_insertCDR start [2025-01-29 17:48:26] Production.ERROR: pbx prc_insertCDR end [2025-01-29 17:48:26] Production.INFO: ==24329== Releasing lock... [2025-01-29 17:48:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 17:48:26] Production.INFO: 61.5 MB #Memory Used# [2025-01-29 17:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 14:49:05 [end_date_ymd] => 2025-01-29 17:49:05 [RateCDR] => 1 ) [2025-01-29 17:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 14:49:05' and `end` < '2025-01-29 17:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 17:49:19] Production.INFO: count ==4464 [2025-01-29 17:49:20] Production.ERROR: pbx CDR StartTime 2025-01-29 14:49:05 - End Time 2025-01-29 17:49:05 [2025-01-29 17:49:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 17:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357952', 'tblTempUsageDetail_20' ) start [2025-01-29 17:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357952', 'tblTempUsageDetail_20' ) end [2025-01-29 17:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357952', 'tblTempVendorCDR_20' ) start [2025-01-29 17:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357952', 'tblTempVendorCDR_20' ) end [2025-01-29 17:49:20] Production.INFO: ProcessCDR(1,14357952,1,1,2) [2025-01-29 17:49:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14357952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 17:49:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14357952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 17:49:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14357952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 17:49:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14357952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 17:49:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357952', 'tblTempUsageDetail_20' ) start [2025-01-29 17:49:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357952', 'tblTempUsageDetail_20' ) end [2025-01-29 17:49:25] Production.ERROR: pbx prc_insertCDR start [2025-01-29 17:49:25] Production.ERROR: pbx prc_insertCDR end [2025-01-29 17:49:25] Production.INFO: ==24408== Releasing lock... [2025-01-29 17:49:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 17:49:25] Production.INFO: 61.5 MB #Memory Used# [2025-01-29 17:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 14:50:06 [end_date_ymd] => 2025-01-29 17:50:06 [RateCDR] => 1 ) [2025-01-29 17:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 14:50:06' and `end` < '2025-01-29 17:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 17:50:20] Production.INFO: count ==4436 [2025-01-29 17:50:22] Production.ERROR: pbx CDR StartTime 2025-01-29 14:50:06 - End Time 2025-01-29 17:50:06 [2025-01-29 17:50:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 17:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357958', 'tblTempUsageDetail_20' ) start [2025-01-29 17:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357958', 'tblTempUsageDetail_20' ) end [2025-01-29 17:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357958', 'tblTempVendorCDR_20' ) start [2025-01-29 17:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357958', 'tblTempVendorCDR_20' ) end [2025-01-29 17:50:22] Production.INFO: ProcessCDR(1,14357958,1,1,2) [2025-01-29 17:50:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14357958,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 17:50:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14357958,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 17:50:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14357958,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 17:50:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14357958,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 17:50:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357958', 'tblTempUsageDetail_20' ) start [2025-01-29 17:50:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357958', 'tblTempUsageDetail_20' ) end [2025-01-29 17:50:27] Production.ERROR: pbx prc_insertCDR start [2025-01-29 17:50:27] Production.ERROR: pbx prc_insertCDR end [2025-01-29 17:50:27] Production.INFO: ==24510== Releasing lock... [2025-01-29 17:50:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 17:50:27] Production.INFO: 61.25 MB #Memory Used# [2025-01-29 17:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 14:51:05 [end_date_ymd] => 2025-01-29 17:51:05 [RateCDR] => 1 ) [2025-01-29 17:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 14:51:05' and `end` < '2025-01-29 17:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 17:51:21] Production.INFO: count ==4432 [2025-01-29 17:51:23] Production.ERROR: pbx CDR StartTime 2025-01-29 14:51:05 - End Time 2025-01-29 17:51:05 [2025-01-29 17:51:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 17:51:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357963', 'tblTempUsageDetail_20' ) start [2025-01-29 17:51:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357963', 'tblTempUsageDetail_20' ) end [2025-01-29 17:51:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357963', 'tblTempVendorCDR_20' ) start [2025-01-29 17:51:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357963', 'tblTempVendorCDR_20' ) end [2025-01-29 17:51:23] Production.INFO: ProcessCDR(1,14357963,1,1,2) [2025-01-29 17:51:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14357963,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 17:51:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14357963,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 17:51:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14357963,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 17:51:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14357963,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 17:51:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357963', 'tblTempUsageDetail_20' ) start [2025-01-29 17:51:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357963', 'tblTempUsageDetail_20' ) end [2025-01-29 17:51:28] Production.ERROR: pbx prc_insertCDR start [2025-01-29 17:51:28] Production.ERROR: pbx prc_insertCDR end [2025-01-29 17:51:28] Production.INFO: ==24590== Releasing lock... [2025-01-29 17:51:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 17:51:28] Production.INFO: 61.25 MB #Memory Used# [2025-01-29 17:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 14:52:05 [end_date_ymd] => 2025-01-29 17:52:05 [RateCDR] => 1 ) [2025-01-29 17:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 14:52:05' and `end` < '2025-01-29 17:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 17:52:21] Production.INFO: count ==4405 [2025-01-29 17:52:23] Production.ERROR: pbx CDR StartTime 2025-01-29 14:52:05 - End Time 2025-01-29 17:52:05 [2025-01-29 17:52:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 17:52:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357968', 'tblTempUsageDetail_20' ) start [2025-01-29 17:52:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357968', 'tblTempUsageDetail_20' ) end [2025-01-29 17:52:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357968', 'tblTempVendorCDR_20' ) start [2025-01-29 17:52:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357968', 'tblTempVendorCDR_20' ) end [2025-01-29 17:52:23] Production.INFO: ProcessCDR(1,14357968,1,1,2) [2025-01-29 17:52:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14357968,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 17:52:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14357968,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 17:52:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14357968,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 17:52:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14357968,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 17:52:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357968', 'tblTempUsageDetail_20' ) start [2025-01-29 17:52:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357968', 'tblTempUsageDetail_20' ) end [2025-01-29 17:52:26] Production.ERROR: pbx prc_insertCDR start [2025-01-29 17:52:26] Production.ERROR: pbx prc_insertCDR end [2025-01-29 17:52:26] Production.INFO: ==24676== Releasing lock... [2025-01-29 17:52:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 17:52:26] Production.INFO: 61 MB #Memory Used# [2025-01-29 17:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 14:53:06 [end_date_ymd] => 2025-01-29 17:53:06 [RateCDR] => 1 ) [2025-01-29 17:53:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 14:53:06' and `end` < '2025-01-29 17:53:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 17:53:20] Production.INFO: count ==4393 [2025-01-29 17:53:21] Production.ERROR: pbx CDR StartTime 2025-01-29 14:53:06 - End Time 2025-01-29 17:53:06 [2025-01-29 17:53:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 17:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357973', 'tblTempUsageDetail_20' ) start [2025-01-29 17:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357973', 'tblTempUsageDetail_20' ) end [2025-01-29 17:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357973', 'tblTempVendorCDR_20' ) start [2025-01-29 17:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357973', 'tblTempVendorCDR_20' ) end [2025-01-29 17:53:21] Production.INFO: ProcessCDR(1,14357973,1,1,2) [2025-01-29 17:53:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14357973,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 17:53:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14357973,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 17:53:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14357973,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 17:53:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14357973,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 17:53:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357973', 'tblTempUsageDetail_20' ) start [2025-01-29 17:53:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357973', 'tblTempUsageDetail_20' ) end [2025-01-29 17:53:25] Production.ERROR: pbx prc_insertCDR start [2025-01-29 17:53:25] Production.ERROR: pbx prc_insertCDR end [2025-01-29 17:53:25] Production.INFO: ==24764== Releasing lock... [2025-01-29 17:53:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 17:53:25] Production.INFO: 60.75 MB #Memory Used# [2025-01-29 17:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 14:54:05 [end_date_ymd] => 2025-01-29 17:54:05 [RateCDR] => 1 ) [2025-01-29 17:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 14:54:05' and `end` < '2025-01-29 17:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 17:54:19] Production.INFO: count ==4393 [2025-01-29 17:54:21] Production.ERROR: pbx CDR StartTime 2025-01-29 14:54:05 - End Time 2025-01-29 17:54:05 [2025-01-29 17:54:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 17:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357978', 'tblTempUsageDetail_20' ) start [2025-01-29 17:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357978', 'tblTempUsageDetail_20' ) end [2025-01-29 17:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357978', 'tblTempVendorCDR_20' ) start [2025-01-29 17:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357978', 'tblTempVendorCDR_20' ) end [2025-01-29 17:54:21] Production.INFO: ProcessCDR(1,14357978,1,1,2) [2025-01-29 17:54:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14357978,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 17:54:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14357978,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 17:54:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14357978,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 17:54:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14357978,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 17:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357978', 'tblTempUsageDetail_20' ) start [2025-01-29 17:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357978', 'tblTempUsageDetail_20' ) end [2025-01-29 17:54:24] Production.ERROR: pbx prc_insertCDR start [2025-01-29 17:54:24] Production.ERROR: pbx prc_insertCDR end [2025-01-29 17:54:25] Production.INFO: ==24839== Releasing lock... [2025-01-29 17:54:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 17:54:25] Production.INFO: 60.75 MB #Memory Used# [2025-01-29 17:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 14:55:06 [end_date_ymd] => 2025-01-29 17:55:06 [RateCDR] => 1 ) [2025-01-29 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-01-29 14:55:06' and `end` < '2025-01-29 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-01-29 17:55:19] Production.INFO: count ==4375 [2025-01-29 17:55:21] Production.ERROR: pbx CDR StartTime 2025-01-29 14:55:06 - End Time 2025-01-29 17:55:06 [2025-01-29 17:55:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 17:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357983', 'tblTempUsageDetail_20' ) start [2025-01-29 17:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357983', 'tblTempUsageDetail_20' ) end [2025-01-29 17:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357983', 'tblTempVendorCDR_20' ) start [2025-01-29 17:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357983', 'tblTempVendorCDR_20' ) end [2025-01-29 17:55:21] Production.INFO: ProcessCDR(1,14357983,1,1,2) [2025-01-29 17:55:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14357983,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 17:55:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14357983,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 17:55:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14357983,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 17:55:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14357983,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 17:55:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357983', 'tblTempUsageDetail_20' ) start [2025-01-29 17:55:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357983', 'tblTempUsageDetail_20' ) end [2025-01-29 17:55:26] Production.ERROR: pbx prc_insertCDR start [2025-01-29 17:55:26] Production.ERROR: pbx prc_insertCDR end [2025-01-29 17:55:26] Production.INFO: ==24913== Releasing lock... [2025-01-29 17:55:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 17:55:26] Production.INFO: 60.75 MB #Memory Used# [2025-01-29 17:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 14:56:05 [end_date_ymd] => 2025-01-29 17:56:05 [RateCDR] => 1 ) [2025-01-29 17:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 14:56:05' and `end` < '2025-01-29 17:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 17:56:23] Production.INFO: count ==4364 [2025-01-29 17:56:24] Production.ERROR: pbx CDR StartTime 2025-01-29 14:56:05 - End Time 2025-01-29 17:56:05 [2025-01-29 17:56:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 17:56:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357988', 'tblTempUsageDetail_20' ) start [2025-01-29 17:56:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357988', 'tblTempUsageDetail_20' ) end [2025-01-29 17:56:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357988', 'tblTempVendorCDR_20' ) start [2025-01-29 17:56:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357988', 'tblTempVendorCDR_20' ) end [2025-01-29 17:56:24] Production.INFO: ProcessCDR(1,14357988,1,1,2) [2025-01-29 17:56:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14357988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 17:56:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14357988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 17:56:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14357988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 17:56:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14357988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 17:56:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357988', 'tblTempUsageDetail_20' ) start [2025-01-29 17:56:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357988', 'tblTempUsageDetail_20' ) end [2025-01-29 17:56:28] Production.ERROR: pbx prc_insertCDR start [2025-01-29 17:56:28] Production.ERROR: pbx prc_insertCDR end [2025-01-29 17:56:28] Production.INFO: ==25007== Releasing lock... [2025-01-29 17:56:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 17:56:28] Production.INFO: 60.75 MB #Memory Used# [2025-01-29 17:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 14:57:06 [end_date_ymd] => 2025-01-29 17:57:06 [RateCDR] => 1 ) [2025-01-29 17:57:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 14:57:06' and `end` < '2025-01-29 17:57:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 17:57:20] Production.INFO: count ==4362 [2025-01-29 17:57:21] Production.ERROR: pbx CDR StartTime 2025-01-29 14:57:06 - End Time 2025-01-29 17:57:06 [2025-01-29 17:57:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 17:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357993', 'tblTempUsageDetail_20' ) start [2025-01-29 17:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357993', 'tblTempUsageDetail_20' ) end [2025-01-29 17:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357993', 'tblTempVendorCDR_20' ) start [2025-01-29 17:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357993', 'tblTempVendorCDR_20' ) end [2025-01-29 17:57:21] Production.INFO: ProcessCDR(1,14357993,1,1,2) [2025-01-29 17:57:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14357993,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 17:57:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14357993,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 17:57:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14357993,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 17:57:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14357993,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 17:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357993', 'tblTempUsageDetail_20' ) start [2025-01-29 17:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357993', 'tblTempUsageDetail_20' ) end [2025-01-29 17:57:26] Production.ERROR: pbx prc_insertCDR start [2025-01-29 17:57:26] Production.ERROR: pbx prc_insertCDR end [2025-01-29 17:57:26] Production.INFO: ==25104== Releasing lock... [2025-01-29 17:57:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 17:57:26] Production.INFO: 60.75 MB #Memory Used# [2025-01-29 17:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 14:58:05 [end_date_ymd] => 2025-01-29 17:58:05 [RateCDR] => 1 ) [2025-01-29 17:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 14:58:05' and `end` < '2025-01-29 17:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 17:58:19] Production.INFO: count ==4349 [2025-01-29 17:58:21] Production.ERROR: pbx CDR StartTime 2025-01-29 14:58:05 - End Time 2025-01-29 17:58:05 [2025-01-29 17:58:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 17:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357998', 'tblTempUsageDetail_20' ) start [2025-01-29 17:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14357998', 'tblTempUsageDetail_20' ) end [2025-01-29 17:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357998', 'tblTempVendorCDR_20' ) start [2025-01-29 17:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14357998', 'tblTempVendorCDR_20' ) end [2025-01-29 17:58:21] Production.INFO: ProcessCDR(1,14357998,1,1,2) [2025-01-29 17:58:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14357998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 17:58:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14357998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 17:58:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14357998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 17:58:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14357998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 17:58:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357998', 'tblTempUsageDetail_20' ) start [2025-01-29 17:58:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14357998', 'tblTempUsageDetail_20' ) end [2025-01-29 17:58:26] Production.ERROR: pbx prc_insertCDR start [2025-01-29 17:58:26] Production.ERROR: pbx prc_insertCDR end [2025-01-29 17:58:26] Production.INFO: ==25206== Releasing lock... [2025-01-29 17:58:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 17:58:26] Production.INFO: 60.5 MB #Memory Used# [2025-01-29 17:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 14:59:05 [end_date_ymd] => 2025-01-29 17:59:05 [RateCDR] => 1 ) [2025-01-29 17:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 14:59:05' and `end` < '2025-01-29 17:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 17:59:20] Production.INFO: count ==4343 [2025-01-29 17:59:21] Production.ERROR: pbx CDR StartTime 2025-01-29 14:59:05 - End Time 2025-01-29 17:59:05 [2025-01-29 17:59:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 17:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358003', 'tblTempUsageDetail_20' ) start [2025-01-29 17:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358003', 'tblTempUsageDetail_20' ) end [2025-01-29 17:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358003', 'tblTempVendorCDR_20' ) start [2025-01-29 17:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358003', 'tblTempVendorCDR_20' ) end [2025-01-29 17:59:21] Production.INFO: ProcessCDR(1,14358003,1,1,2) [2025-01-29 17:59:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14358003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 17:59:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14358003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 17:59:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14358003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 17:59:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14358003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 17:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358003', 'tblTempUsageDetail_20' ) start [2025-01-29 17:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358003', 'tblTempUsageDetail_20' ) end [2025-01-29 17:59:24] Production.ERROR: pbx prc_insertCDR start [2025-01-29 17:59:24] Production.ERROR: pbx prc_insertCDR end [2025-01-29 17:59:24] Production.INFO: ==25343== Releasing lock... [2025-01-29 17:59:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 17:59:24] Production.INFO: 60.5 MB #Memory Used# [2025-01-29 18:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 15:00:06 [end_date_ymd] => 2025-01-29 18:00:06 [RateCDR] => 1 ) [2025-01-29 18:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 15:00:06' and `end` < '2025-01-29 18:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 18:00:20] Production.INFO: count ==4327 [2025-01-29 18:00:21] Production.ERROR: pbx CDR StartTime 2025-01-29 15:00:06 - End Time 2025-01-29 18:00:06 [2025-01-29 18:00:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 18:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358009', 'tblTempUsageDetail_20' ) start [2025-01-29 18:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358009', 'tblTempUsageDetail_20' ) end [2025-01-29 18:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358009', 'tblTempVendorCDR_20' ) start [2025-01-29 18:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358009', 'tblTempVendorCDR_20' ) end [2025-01-29 18:00:21] Production.INFO: ProcessCDR(1,14358009,1,1,2) [2025-01-29 18:00:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14358009,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 18:00:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14358009,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 18:00:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14358009,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 18:00:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14358009,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 18:00:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358009', 'tblTempUsageDetail_20' ) start [2025-01-29 18:00:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358009', 'tblTempUsageDetail_20' ) end [2025-01-29 18:00:26] Production.ERROR: pbx prc_insertCDR start [2025-01-29 18:00:26] Production.ERROR: pbx prc_insertCDR end [2025-01-29 18:00:26] Production.INFO: ==25434== Releasing lock... [2025-01-29 18:00:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 18:00:26] Production.INFO: 60.5 MB #Memory Used# [2025-01-29 18:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 15:01:06 [end_date_ymd] => 2025-01-29 18:01:06 [RateCDR] => 1 ) [2025-01-29 18:01:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 15:01:06' and `end` < '2025-01-29 18:01:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 18:01:25] Production.INFO: count ==4307 [2025-01-29 18:01:27] Production.ERROR: pbx CDR StartTime 2025-01-29 15:01:06 - End Time 2025-01-29 18:01:06 [2025-01-29 18:01:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 18:01:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358014', 'tblTempUsageDetail_20' ) start [2025-01-29 18:01:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358014', 'tblTempUsageDetail_20' ) end [2025-01-29 18:01:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358014', 'tblTempVendorCDR_20' ) start [2025-01-29 18:01:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358014', 'tblTempVendorCDR_20' ) end [2025-01-29 18:01:27] Production.INFO: ProcessCDR(1,14358014,1,1,2) [2025-01-29 18:01:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14358014,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 18:01:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14358014,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 18:01:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14358014,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 18:01:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14358014,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 18:01:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358014', 'tblTempUsageDetail_20' ) start [2025-01-29 18:01:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358014', 'tblTempUsageDetail_20' ) end [2025-01-29 18:01:32] Production.ERROR: pbx prc_insertCDR start [2025-01-29 18:01:32] Production.ERROR: pbx prc_insertCDR end [2025-01-29 18:01:32] Production.INFO: ==25564== Releasing lock... [2025-01-29 18:01:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 18:01:32] Production.INFO: 60.5 MB #Memory Used# [2025-01-29 18:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 15:02:05 [end_date_ymd] => 2025-01-29 18:02:05 [RateCDR] => 1 ) [2025-01-29 18:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 15:02:05' and `end` < '2025-01-29 18:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 18:02:23] Production.INFO: count ==4299 [2025-01-29 18:02:24] Production.ERROR: pbx CDR StartTime 2025-01-29 15:02:05 - End Time 2025-01-29 18:02:05 [2025-01-29 18:02:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 18:02:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358019', 'tblTempUsageDetail_20' ) start [2025-01-29 18:02:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358019', 'tblTempUsageDetail_20' ) end [2025-01-29 18:02:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358019', 'tblTempVendorCDR_20' ) start [2025-01-29 18:02:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358019', 'tblTempVendorCDR_20' ) end [2025-01-29 18:02:25] Production.INFO: ProcessCDR(1,14358019,1,1,2) [2025-01-29 18:02:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14358019,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 18:02:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14358019,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 18:02:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14358019,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 18:02:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14358019,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 18:02:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358019', 'tblTempUsageDetail_20' ) start [2025-01-29 18:02:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358019', 'tblTempUsageDetail_20' ) end [2025-01-29 18:02:28] Production.ERROR: pbx prc_insertCDR start [2025-01-29 18:02:28] Production.ERROR: pbx prc_insertCDR end [2025-01-29 18:02:28] Production.INFO: ==25681== Releasing lock... [2025-01-29 18:02:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 18:02:28] Production.INFO: 60.25 MB #Memory Used# [2025-01-29 18:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 15:03:06 [end_date_ymd] => 2025-01-29 18:03:06 [RateCDR] => 1 ) [2025-01-29 18:03:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 15:03:06' and `end` < '2025-01-29 18:03:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 18:03:19] Production.INFO: count ==4297 [2025-01-29 18:03:21] Production.ERROR: pbx CDR StartTime 2025-01-29 15:03:06 - End Time 2025-01-29 18:03:06 [2025-01-29 18:03:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 18:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358024', 'tblTempUsageDetail_20' ) start [2025-01-29 18:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358024', 'tblTempUsageDetail_20' ) end [2025-01-29 18:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358024', 'tblTempVendorCDR_20' ) start [2025-01-29 18:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358024', 'tblTempVendorCDR_20' ) end [2025-01-29 18:03:21] Production.INFO: ProcessCDR(1,14358024,1,1,2) [2025-01-29 18:03:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14358024,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 18:03:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14358024,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 18:03:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14358024,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 18:03:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14358024,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 18:03:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358024', 'tblTempUsageDetail_20' ) start [2025-01-29 18:03:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358024', 'tblTempUsageDetail_20' ) end [2025-01-29 18:03:26] Production.ERROR: pbx prc_insertCDR start [2025-01-29 18:03:26] Production.ERROR: pbx prc_insertCDR end [2025-01-29 18:03:26] Production.INFO: ==25806== Releasing lock... [2025-01-29 18:03:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 18:03:26] Production.INFO: 60.25 MB #Memory Used# [2025-01-29 18:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 15:04:05 [end_date_ymd] => 2025-01-29 18:04:05 [RateCDR] => 1 ) [2025-01-29 18:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 15:04:05' and `end` < '2025-01-29 18:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 18:04:22] Production.INFO: count ==4290 [2025-01-29 18:04:23] Production.ERROR: pbx CDR StartTime 2025-01-29 15:04:05 - End Time 2025-01-29 18:04:05 [2025-01-29 18:04:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 18:04:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358029', 'tblTempUsageDetail_20' ) start [2025-01-29 18:04:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358029', 'tblTempUsageDetail_20' ) end [2025-01-29 18:04:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358029', 'tblTempVendorCDR_20' ) start [2025-01-29 18:04:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358029', 'tblTempVendorCDR_20' ) end [2025-01-29 18:04:24] Production.INFO: ProcessCDR(1,14358029,1,1,2) [2025-01-29 18:04:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14358029,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 18:04:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14358029,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 18:04:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14358029,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 18:04:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14358029,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 18:04:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358029', 'tblTempUsageDetail_20' ) start [2025-01-29 18:04:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358029', 'tblTempUsageDetail_20' ) end [2025-01-29 18:04:27] Production.ERROR: pbx prc_insertCDR start [2025-01-29 18:04:27] Production.ERROR: pbx prc_insertCDR end [2025-01-29 18:04:27] Production.INFO: ==25922== Releasing lock... [2025-01-29 18:04:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 18:04:27] Production.INFO: 60 MB #Memory Used# [2025-01-29 18:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 15:05:06 [end_date_ymd] => 2025-01-29 18:05:06 [RateCDR] => 1 ) [2025-01-29 18:05:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 15:05:06' and `end` < '2025-01-29 18:05:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 18:05:20] Production.INFO: count ==4264 [2025-01-29 18:05:22] Production.ERROR: pbx CDR StartTime 2025-01-29 15:05:06 - End Time 2025-01-29 18:05:06 [2025-01-29 18:05:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 18:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358034', 'tblTempUsageDetail_20' ) start [2025-01-29 18:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358034', 'tblTempUsageDetail_20' ) end [2025-01-29 18:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358034', 'tblTempVendorCDR_20' ) start [2025-01-29 18:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358034', 'tblTempVendorCDR_20' ) end [2025-01-29 18:05:22] Production.INFO: ProcessCDR(1,14358034,1,1,2) [2025-01-29 18:05:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14358034,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 18:05:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14358034,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 18:05:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14358034,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 18:05:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14358034,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 18:05:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358034', 'tblTempUsageDetail_20' ) start [2025-01-29 18:05:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358034', 'tblTempUsageDetail_20' ) end [2025-01-29 18:05:26] Production.ERROR: pbx prc_insertCDR start [2025-01-29 18:05:26] Production.ERROR: pbx prc_insertCDR end [2025-01-29 18:05:26] Production.INFO: ==26063== Releasing lock... [2025-01-29 18:05:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 18:05:26] Production.INFO: 60 MB #Memory Used# [2025-01-29 18:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 15:06:05 [end_date_ymd] => 2025-01-29 18:06:05 [RateCDR] => 1 ) [2025-01-29 18:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 15:06:05' and `end` < '2025-01-29 18:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 18:06:19] Production.INFO: count ==4255 [2025-01-29 18:06:21] Production.ERROR: pbx CDR StartTime 2025-01-29 15:06:05 - End Time 2025-01-29 18:06:05 [2025-01-29 18:06:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 18:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358039', 'tblTempUsageDetail_20' ) start [2025-01-29 18:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358039', 'tblTempUsageDetail_20' ) end [2025-01-29 18:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358039', 'tblTempVendorCDR_20' ) start [2025-01-29 18:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358039', 'tblTempVendorCDR_20' ) end [2025-01-29 18:06:21] Production.INFO: ProcessCDR(1,14358039,1,1,2) [2025-01-29 18:06:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14358039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 18:06:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14358039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 18:06:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14358039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 18:06:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14358039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 18:06:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358039', 'tblTempUsageDetail_20' ) start [2025-01-29 18:06:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358039', 'tblTempUsageDetail_20' ) end [2025-01-29 18:06:26] Production.ERROR: pbx prc_insertCDR start [2025-01-29 18:06:26] Production.ERROR: pbx prc_insertCDR end [2025-01-29 18:06:26] Production.INFO: ==26190== Releasing lock... [2025-01-29 18:06:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 18:06:26] Production.INFO: 59.75 MB #Memory Used# [2025-01-29 18:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 15:07:05 [end_date_ymd] => 2025-01-29 18:07:05 [RateCDR] => 1 ) [2025-01-29 18:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 15:07:05' and `end` < '2025-01-29 18:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 18:07:19] Production.INFO: count ==4230 [2025-01-29 18:07:20] Production.ERROR: pbx CDR StartTime 2025-01-29 15:07:05 - End Time 2025-01-29 18:07:05 [2025-01-29 18:07:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 18:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358044', 'tblTempUsageDetail_20' ) start [2025-01-29 18:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358044', 'tblTempUsageDetail_20' ) end [2025-01-29 18:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358044', 'tblTempVendorCDR_20' ) start [2025-01-29 18:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358044', 'tblTempVendorCDR_20' ) end [2025-01-29 18:07:20] Production.INFO: ProcessCDR(1,14358044,1,1,2) [2025-01-29 18:07:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14358044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 18:07:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14358044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 18:07:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14358044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 18:07:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14358044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 18:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358044', 'tblTempUsageDetail_20' ) start [2025-01-29 18:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358044', 'tblTempUsageDetail_20' ) end [2025-01-29 18:07:24] Production.ERROR: pbx prc_insertCDR start [2025-01-29 18:07:24] Production.ERROR: pbx prc_insertCDR end [2025-01-29 18:07:24] Production.INFO: ==26313== Releasing lock... [2025-01-29 18:07:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 18:07:24] Production.INFO: 59.75 MB #Memory Used# [2025-01-29 18:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 15:08:05 [end_date_ymd] => 2025-01-29 18:08:05 [RateCDR] => 1 ) [2025-01-29 18:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 15:08:05' and `end` < '2025-01-29 18:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 18:08:18] Production.INFO: count ==4221 [2025-01-29 18:08:20] Production.ERROR: pbx CDR StartTime 2025-01-29 15:08:05 - End Time 2025-01-29 18:08:05 [2025-01-29 18:08:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 18:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358049', 'tblTempUsageDetail_20' ) start [2025-01-29 18:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358049', 'tblTempUsageDetail_20' ) end [2025-01-29 18:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358049', 'tblTempVendorCDR_20' ) start [2025-01-29 18:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358049', 'tblTempVendorCDR_20' ) end [2025-01-29 18:08:20] Production.INFO: ProcessCDR(1,14358049,1,1,2) [2025-01-29 18:08:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14358049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 18:08:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14358049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 18:08:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14358049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 18:08:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14358049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 18:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358049', 'tblTempUsageDetail_20' ) start [2025-01-29 18:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358049', 'tblTempUsageDetail_20' ) end [2025-01-29 18:08:24] Production.ERROR: pbx prc_insertCDR start [2025-01-29 18:08:24] Production.ERROR: pbx prc_insertCDR end [2025-01-29 18:08:24] Production.INFO: ==26439== Releasing lock... [2025-01-29 18:08:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 18:08:24] Production.INFO: 59.5 MB #Memory Used# [2025-01-29 18:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 15:09:05 [end_date_ymd] => 2025-01-29 18:09:05 [RateCDR] => 1 ) [2025-01-29 18:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 15:09:05' and `end` < '2025-01-29 18:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 18:09:21] Production.INFO: count ==4207 [2025-01-29 18:09:22] Production.ERROR: pbx CDR StartTime 2025-01-29 15:09:05 - End Time 2025-01-29 18:09:05 [2025-01-29 18:09:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 18:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358054', 'tblTempUsageDetail_20' ) start [2025-01-29 18:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358054', 'tblTempUsageDetail_20' ) end [2025-01-29 18:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358054', 'tblTempVendorCDR_20' ) start [2025-01-29 18:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358054', 'tblTempVendorCDR_20' ) end [2025-01-29 18:09:22] Production.INFO: ProcessCDR(1,14358054,1,1,2) [2025-01-29 18:09:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14358054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 18:09:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14358054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 18:09:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14358054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 18:09:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14358054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 18:09:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358054', 'tblTempUsageDetail_20' ) start [2025-01-29 18:09:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358054', 'tblTempUsageDetail_20' ) end [2025-01-29 18:09:27] Production.ERROR: pbx prc_insertCDR start [2025-01-29 18:09:27] Production.ERROR: pbx prc_insertCDR end [2025-01-29 18:09:27] Production.INFO: ==26565== Releasing lock... [2025-01-29 18:09:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 18:09:27] Production.INFO: 59.5 MB #Memory Used# [2025-01-29 18:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 15:10:05 [end_date_ymd] => 2025-01-29 18:10:05 [RateCDR] => 1 ) [2025-01-29 18:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 15:10:05' and `end` < '2025-01-29 18:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 18:10:19] Production.INFO: count ==4180 [2025-01-29 18:10:20] Production.ERROR: pbx CDR StartTime 2025-01-29 15:10:05 - End Time 2025-01-29 18:10:05 [2025-01-29 18:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 18:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358060', 'tblTempUsageDetail_20' ) start [2025-01-29 18:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358060', 'tblTempUsageDetail_20' ) end [2025-01-29 18:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358060', 'tblTempVendorCDR_20' ) start [2025-01-29 18:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358060', 'tblTempVendorCDR_20' ) end [2025-01-29 18:10:20] Production.INFO: ProcessCDR(1,14358060,1,1,2) [2025-01-29 18:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14358060,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 18:10:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14358060,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 18:10:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14358060,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 18:10:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14358060,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 18:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358060', 'tblTempUsageDetail_20' ) start [2025-01-29 18:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358060', 'tblTempUsageDetail_20' ) end [2025-01-29 18:10:25] Production.ERROR: pbx prc_insertCDR start [2025-01-29 18:10:25] Production.ERROR: pbx prc_insertCDR end [2025-01-29 18:10:25] Production.INFO: ==26714== Releasing lock... [2025-01-29 18:10:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 18:10:25] Production.INFO: 59.25 MB #Memory Used# [2025-01-29 18:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 15:11:05 [end_date_ymd] => 2025-01-29 18:11:05 [RateCDR] => 1 ) [2025-01-29 18:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 15:11:05' and `end` < '2025-01-29 18:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 18:11:19] Production.INFO: count ==4102 [2025-01-29 18:11:20] Production.ERROR: pbx CDR StartTime 2025-01-29 15:11:05 - End Time 2025-01-29 18:11:05 [2025-01-29 18:11:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 18:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358065', 'tblTempUsageDetail_20' ) start [2025-01-29 18:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358065', 'tblTempUsageDetail_20' ) end [2025-01-29 18:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358065', 'tblTempVendorCDR_20' ) start [2025-01-29 18:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358065', 'tblTempVendorCDR_20' ) end [2025-01-29 18:11:20] Production.INFO: ProcessCDR(1,14358065,1,1,2) [2025-01-29 18:11:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14358065,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 18:11:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14358065,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 18:11:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14358065,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 18:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14358065,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 18:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358065', 'tblTempUsageDetail_20' ) start [2025-01-29 18:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358065', 'tblTempUsageDetail_20' ) end [2025-01-29 18:11:24] Production.ERROR: pbx prc_insertCDR start [2025-01-29 18:11:24] Production.ERROR: pbx prc_insertCDR end [2025-01-29 18:11:24] Production.INFO: ==26866== Releasing lock... [2025-01-29 18:11:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 18:11:24] Production.INFO: 58.75 MB #Memory Used# [2025-01-29 18:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 15:12:05 [end_date_ymd] => 2025-01-29 18:12:05 [RateCDR] => 1 ) [2025-01-29 18:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 15:12:05' and `end` < '2025-01-29 18:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 18:12:18] Production.INFO: count ==4072 [2025-01-29 18:12:20] Production.ERROR: pbx CDR StartTime 2025-01-29 15:12:05 - End Time 2025-01-29 18:12:05 [2025-01-29 18:12:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 18:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358070', 'tblTempUsageDetail_20' ) start [2025-01-29 18:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358070', 'tblTempUsageDetail_20' ) end [2025-01-29 18:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358070', 'tblTempVendorCDR_20' ) start [2025-01-29 18:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358070', 'tblTempVendorCDR_20' ) end [2025-01-29 18:12:20] Production.INFO: ProcessCDR(1,14358070,1,1,2) [2025-01-29 18:12:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14358070,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 18:12:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14358070,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 18:12:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14358070,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 18:12:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14358070,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 18:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358070', 'tblTempUsageDetail_20' ) start [2025-01-29 18:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358070', 'tblTempUsageDetail_20' ) end [2025-01-29 18:12:23] Production.ERROR: pbx prc_insertCDR start [2025-01-29 18:12:23] Production.ERROR: pbx prc_insertCDR end [2025-01-29 18:12:23] Production.INFO: ==26993== Releasing lock... [2025-01-29 18:12:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 18:12:23] Production.INFO: 58.5 MB #Memory Used# [2025-01-29 18:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 15:13:05 [end_date_ymd] => 2025-01-29 18:13:05 [RateCDR] => 1 ) [2025-01-29 18:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 15:13:05' and `end` < '2025-01-29 18:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 18:13:19] Production.INFO: count ==4055 [2025-01-29 18:13:20] Production.ERROR: pbx CDR StartTime 2025-01-29 15:13:05 - End Time 2025-01-29 18:13:05 [2025-01-29 18:13:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 18:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358075', 'tblTempUsageDetail_20' ) start [2025-01-29 18:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358075', 'tblTempUsageDetail_20' ) end [2025-01-29 18:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358075', 'tblTempVendorCDR_20' ) start [2025-01-29 18:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358075', 'tblTempVendorCDR_20' ) end [2025-01-29 18:13:20] Production.INFO: ProcessCDR(1,14358075,1,1,2) [2025-01-29 18:13:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14358075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 18:13:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14358075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 18:13:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14358075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 18:13:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14358075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 18:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358075', 'tblTempUsageDetail_20' ) start [2025-01-29 18:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358075', 'tblTempUsageDetail_20' ) end [2025-01-29 18:13:23] Production.ERROR: pbx prc_insertCDR start [2025-01-29 18:13:23] Production.ERROR: pbx prc_insertCDR end [2025-01-29 18:13:23] Production.INFO: ==27098== Releasing lock... [2025-01-29 18:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 18:13:23] Production.INFO: 58.25 MB #Memory Used# [2025-01-29 18:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 15:14:05 [end_date_ymd] => 2025-01-29 18:14:05 [RateCDR] => 1 ) [2025-01-29 18:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 15:14:05' and `end` < '2025-01-29 18:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 18:14:18] Production.INFO: count ==4013 [2025-01-29 18:14:20] Production.ERROR: pbx CDR StartTime 2025-01-29 15:14:05 - End Time 2025-01-29 18:14:05 [2025-01-29 18:14:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 18:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358080', 'tblTempUsageDetail_20' ) start [2025-01-29 18:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358080', 'tblTempUsageDetail_20' ) end [2025-01-29 18:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358080', 'tblTempVendorCDR_20' ) start [2025-01-29 18:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358080', 'tblTempVendorCDR_20' ) end [2025-01-29 18:14:20] Production.INFO: ProcessCDR(1,14358080,1,1,2) [2025-01-29 18:14:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14358080,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 18:14:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14358080,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 18:14:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14358080,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 18:14:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14358080,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 18:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358080', 'tblTempUsageDetail_20' ) start [2025-01-29 18:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358080', 'tblTempUsageDetail_20' ) end [2025-01-29 18:14:23] Production.ERROR: pbx prc_insertCDR start [2025-01-29 18:14:23] Production.ERROR: pbx prc_insertCDR end [2025-01-29 18:14:23] Production.INFO: ==27168== Releasing lock... [2025-01-29 18:14:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 18:14:23] Production.INFO: 58 MB #Memory Used# [2025-01-29 18:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 15:15:05 [end_date_ymd] => 2025-01-29 18:15:05 [RateCDR] => 1 ) [2025-01-29 18:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 15:15:05' and `end` < '2025-01-29 18:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 18:15:22] Production.INFO: count ==4010 [2025-01-29 18:15:23] Production.ERROR: pbx CDR StartTime 2025-01-29 15:15:05 - End Time 2025-01-29 18:15:05 [2025-01-29 18:15:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 18:15:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358085', 'tblTempUsageDetail_20' ) start [2025-01-29 18:15:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358085', 'tblTempUsageDetail_20' ) end [2025-01-29 18:15:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358085', 'tblTempVendorCDR_20' ) start [2025-01-29 18:15:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358085', 'tblTempVendorCDR_20' ) end [2025-01-29 18:15:23] Production.INFO: ProcessCDR(1,14358085,1,1,2) [2025-01-29 18:15:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14358085,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 18:15:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14358085,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 18:15:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14358085,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 18:15:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14358085,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 18:15:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358085', 'tblTempUsageDetail_20' ) start [2025-01-29 18:15:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358085', 'tblTempUsageDetail_20' ) end [2025-01-29 18:15:28] Production.ERROR: pbx prc_insertCDR start [2025-01-29 18:15:28] Production.ERROR: pbx prc_insertCDR end [2025-01-29 18:15:28] Production.INFO: ==27281== Releasing lock... [2025-01-29 18:15:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 18:15:28] Production.INFO: 58 MB #Memory Used# [2025-01-29 18:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 15:16:05 [end_date_ymd] => 2025-01-29 18:16:05 [RateCDR] => 1 ) [2025-01-29 18:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 15:16:05' and `end` < '2025-01-29 18:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 18:16:19] Production.INFO: count ==3975 [2025-01-29 18:16:20] Production.ERROR: pbx CDR StartTime 2025-01-29 15:16:05 - End Time 2025-01-29 18:16:05 [2025-01-29 18:16:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 18:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358090', 'tblTempUsageDetail_20' ) start [2025-01-29 18:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358090', 'tblTempUsageDetail_20' ) end [2025-01-29 18:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358090', 'tblTempVendorCDR_20' ) start [2025-01-29 18:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358090', 'tblTempVendorCDR_20' ) end [2025-01-29 18:16:20] Production.INFO: ProcessCDR(1,14358090,1,1,2) [2025-01-29 18:16:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14358090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 18:16:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14358090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 18:16:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14358090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 18:16:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14358090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 18:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358090', 'tblTempUsageDetail_20' ) start [2025-01-29 18:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358090', 'tblTempUsageDetail_20' ) end [2025-01-29 18:16:25] Production.ERROR: pbx prc_insertCDR start [2025-01-29 18:16:25] Production.ERROR: pbx prc_insertCDR end [2025-01-29 18:16:25] Production.INFO: ==27370== Releasing lock... [2025-01-29 18:16:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 18:16:25] Production.INFO: 57.75 MB #Memory Used# [2025-01-29 18:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 15:17:05 [end_date_ymd] => 2025-01-29 18:17:05 [RateCDR] => 1 ) [2025-01-29 18:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 15:17:05' and `end` < '2025-01-29 18:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 18:17:21] Production.INFO: count ==3952 [2025-01-29 18:17:22] Production.ERROR: pbx CDR StartTime 2025-01-29 15:17:05 - End Time 2025-01-29 18:17:05 [2025-01-29 18:17:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 18:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358095', 'tblTempUsageDetail_20' ) start [2025-01-29 18:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358095', 'tblTempUsageDetail_20' ) end [2025-01-29 18:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358095', 'tblTempVendorCDR_20' ) start [2025-01-29 18:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358095', 'tblTempVendorCDR_20' ) end [2025-01-29 18:17:22] Production.INFO: ProcessCDR(1,14358095,1,1,2) [2025-01-29 18:17:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14358095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 18:17:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14358095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 18:17:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14358095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 18:17:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14358095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 18:17:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358095', 'tblTempUsageDetail_20' ) start [2025-01-29 18:17:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358095', 'tblTempUsageDetail_20' ) end [2025-01-29 18:17:27] Production.ERROR: pbx prc_insertCDR start [2025-01-29 18:17:27] Production.ERROR: pbx prc_insertCDR end [2025-01-29 18:17:27] Production.INFO: ==27471== Releasing lock... [2025-01-29 18:17:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 18:17:27] Production.INFO: 57.5 MB #Memory Used# [2025-01-29 18:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 15:18:05 [end_date_ymd] => 2025-01-29 18:18:05 [RateCDR] => 1 ) [2025-01-29 18:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 15:18:05' and `end` < '2025-01-29 18:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 18:18:19] Production.INFO: count ==3943 [2025-01-29 18:18:20] Production.ERROR: pbx CDR StartTime 2025-01-29 15:18:05 - End Time 2025-01-29 18:18:05 [2025-01-29 18:18:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 18:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358100', 'tblTempUsageDetail_20' ) start [2025-01-29 18:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358100', 'tblTempUsageDetail_20' ) end [2025-01-29 18:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358100', 'tblTempVendorCDR_20' ) start [2025-01-29 18:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358100', 'tblTempVendorCDR_20' ) end [2025-01-29 18:18:20] Production.INFO: ProcessCDR(1,14358100,1,1,2) [2025-01-29 18:18:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14358100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 18:18:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14358100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 18:18:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14358100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 18:18:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14358100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 18:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358100', 'tblTempUsageDetail_20' ) start [2025-01-29 18:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358100', 'tblTempUsageDetail_20' ) end [2025-01-29 18:18:23] Production.ERROR: pbx prc_insertCDR start [2025-01-29 18:18:23] Production.ERROR: pbx prc_insertCDR end [2025-01-29 18:18:23] Production.INFO: ==27577== Releasing lock... [2025-01-29 18:18:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 18:18:23] Production.INFO: 57.5 MB #Memory Used# [2025-01-29 18:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 15:19:05 [end_date_ymd] => 2025-01-29 18:19:05 [RateCDR] => 1 ) [2025-01-29 18:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 15:19:05' and `end` < '2025-01-29 18:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 18:19:19] Production.INFO: count ==3935 [2025-01-29 18:19:21] Production.ERROR: pbx CDR StartTime 2025-01-29 15:19:05 - End Time 2025-01-29 18:19:05 [2025-01-29 18:19:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 18:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358105', 'tblTempUsageDetail_20' ) start [2025-01-29 18:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358105', 'tblTempUsageDetail_20' ) end [2025-01-29 18:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358105', 'tblTempVendorCDR_20' ) start [2025-01-29 18:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358105', 'tblTempVendorCDR_20' ) end [2025-01-29 18:19:21] Production.INFO: ProcessCDR(1,14358105,1,1,2) [2025-01-29 18:19:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14358105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 18:19:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14358105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 18:19:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14358105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 18:19:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14358105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 18:19:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358105', 'tblTempUsageDetail_20' ) start [2025-01-29 18:19:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358105', 'tblTempUsageDetail_20' ) end [2025-01-29 18:19:26] Production.ERROR: pbx prc_insertCDR start [2025-01-29 18:19:26] Production.ERROR: pbx prc_insertCDR end [2025-01-29 18:19:26] Production.INFO: ==27677== Releasing lock... [2025-01-29 18:19:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 18:19:26] Production.INFO: 58.25 MB #Memory Used# [2025-01-29 18:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 15:20:06 [end_date_ymd] => 2025-01-29 18:20:06 [RateCDR] => 1 ) [2025-01-29 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-01-29 15:20:06' and `end` < '2025-01-29 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-01-29 18:20:19] Production.INFO: count ==3933 [2025-01-29 18:20:21] Production.ERROR: pbx CDR StartTime 2025-01-29 15:20:06 - End Time 2025-01-29 18:20:06 [2025-01-29 18:20:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 18:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358111', 'tblTempUsageDetail_20' ) start [2025-01-29 18:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358111', 'tblTempUsageDetail_20' ) end [2025-01-29 18:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358111', 'tblTempVendorCDR_20' ) start [2025-01-29 18:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358111', 'tblTempVendorCDR_20' ) end [2025-01-29 18:20:21] Production.INFO: ProcessCDR(1,14358111,1,1,2) [2025-01-29 18:20:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14358111,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 18:20:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14358111,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 18:20:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14358111,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 18:20:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14358111,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 18:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358111', 'tblTempUsageDetail_20' ) start [2025-01-29 18:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358111', 'tblTempUsageDetail_20' ) end [2025-01-29 18:20:24] Production.ERROR: pbx prc_insertCDR start [2025-01-29 18:20:24] Production.ERROR: pbx prc_insertCDR end [2025-01-29 18:20:24] Production.INFO: ==27783== Releasing lock... [2025-01-29 18:20:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 18:20:24] Production.INFO: 57.25 MB #Memory Used# [2025-01-29 18:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 15:21:05 [end_date_ymd] => 2025-01-29 18:21:05 [RateCDR] => 1 ) [2025-01-29 18:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 15:21:05' and `end` < '2025-01-29 18:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 18:21:18] Production.INFO: count ==3912 [2025-01-29 18:21:19] Production.ERROR: pbx CDR StartTime 2025-01-29 15:21:05 - End Time 2025-01-29 18:21:05 [2025-01-29 18:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 18:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358116', 'tblTempUsageDetail_20' ) start [2025-01-29 18:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358116', 'tblTempUsageDetail_20' ) end [2025-01-29 18:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358116', 'tblTempVendorCDR_20' ) start [2025-01-29 18:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358116', 'tblTempVendorCDR_20' ) end [2025-01-29 18:21:19] Production.INFO: ProcessCDR(1,14358116,1,1,2) [2025-01-29 18:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14358116,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 18:21:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14358116,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 18:21:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14358116,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 18:21:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14358116,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 18:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358116', 'tblTempUsageDetail_20' ) start [2025-01-29 18:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358116', 'tblTempUsageDetail_20' ) end [2025-01-29 18:21:24] Production.ERROR: pbx prc_insertCDR start [2025-01-29 18:21:24] Production.ERROR: pbx prc_insertCDR end [2025-01-29 18:21:24] Production.INFO: ==27878== Releasing lock... [2025-01-29 18:21:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 18:21:24] Production.INFO: 57.75 MB #Memory Used# [2025-01-29 18:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 15:22:05 [end_date_ymd] => 2025-01-29 18:22:05 [RateCDR] => 1 ) [2025-01-29 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-01-29 15:22:05' and `end` < '2025-01-29 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-01-29 18:22:21] Production.INFO: count ==3910 [2025-01-29 18:22:22] Production.ERROR: pbx CDR StartTime 2025-01-29 15:22:05 - End Time 2025-01-29 18:22:05 [2025-01-29 18:22:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 18:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358121', 'tblTempUsageDetail_20' ) start [2025-01-29 18:22:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358121', 'tblTempUsageDetail_20' ) end [2025-01-29 18:22:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358121', 'tblTempVendorCDR_20' ) start [2025-01-29 18:22:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358121', 'tblTempVendorCDR_20' ) end [2025-01-29 18:22:23] Production.INFO: ProcessCDR(1,14358121,1,1,2) [2025-01-29 18:22:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14358121,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 18:22:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14358121,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 18:22:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14358121,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 18:22:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14358121,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 18:22:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358121', 'tblTempUsageDetail_20' ) start [2025-01-29 18:22:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358121', 'tblTempUsageDetail_20' ) end [2025-01-29 18:22:27] Production.ERROR: pbx prc_insertCDR start [2025-01-29 18:22:27] Production.ERROR: pbx prc_insertCDR end [2025-01-29 18:22:27] Production.INFO: ==27968== Releasing lock... [2025-01-29 18:22:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 18:22:27] Production.INFO: 57.75 MB #Memory Used# [2025-01-29 18:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 15:23:05 [end_date_ymd] => 2025-01-29 18:23:05 [RateCDR] => 1 ) [2025-01-29 18:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 15:23:05' and `end` < '2025-01-29 18:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 18:23:19] Production.INFO: count ==3887 [2025-01-29 18:23:20] Production.ERROR: pbx CDR StartTime 2025-01-29 15:23:05 - End Time 2025-01-29 18:23:05 [2025-01-29 18:23:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 18:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358126', 'tblTempUsageDetail_20' ) start [2025-01-29 18:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358126', 'tblTempUsageDetail_20' ) end [2025-01-29 18:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358126', 'tblTempVendorCDR_20' ) start [2025-01-29 18:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358126', 'tblTempVendorCDR_20' ) end [2025-01-29 18:23:21] Production.INFO: ProcessCDR(1,14358126,1,1,2) [2025-01-29 18:23:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14358126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 18:23:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14358126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 18:23:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14358126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 18:23:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14358126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 18:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358126', 'tblTempUsageDetail_20' ) start [2025-01-29 18:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358126', 'tblTempUsageDetail_20' ) end [2025-01-29 18:23:24] Production.ERROR: pbx prc_insertCDR start [2025-01-29 18:23:24] Production.ERROR: pbx prc_insertCDR end [2025-01-29 18:23:24] Production.INFO: ==28056== Releasing lock... [2025-01-29 18:23:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 18:23:24] Production.INFO: 57 MB #Memory Used# [2025-01-29 18:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 15:24:06 [end_date_ymd] => 2025-01-29 18:24:06 [RateCDR] => 1 ) [2025-01-29 18:24:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 15:24:06' and `end` < '2025-01-29 18:24:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 18:24:20] Production.INFO: count ==3874 [2025-01-29 18:24:21] Production.ERROR: pbx CDR StartTime 2025-01-29 15:24:06 - End Time 2025-01-29 18:24:06 [2025-01-29 18:24:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 18:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358131', 'tblTempUsageDetail_20' ) start [2025-01-29 18:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358131', 'tblTempUsageDetail_20' ) end [2025-01-29 18:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358131', 'tblTempVendorCDR_20' ) start [2025-01-29 18:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358131', 'tblTempVendorCDR_20' ) end [2025-01-29 18:24:22] Production.INFO: ProcessCDR(1,14358131,1,1,2) [2025-01-29 18:24:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14358131,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 18:24:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14358131,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 18:24:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14358131,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 18:24:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14358131,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 18:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358131', 'tblTempUsageDetail_20' ) start [2025-01-29 18:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358131', 'tblTempUsageDetail_20' ) end [2025-01-29 18:24:25] Production.ERROR: pbx prc_insertCDR start [2025-01-29 18:24:25] Production.ERROR: pbx prc_insertCDR end [2025-01-29 18:24:25] Production.INFO: ==28128== Releasing lock... [2025-01-29 18:24:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 18:24:25] Production.INFO: 57 MB #Memory Used# [2025-01-29 18:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 15:25:05 [end_date_ymd] => 2025-01-29 18:25:05 [RateCDR] => 1 ) [2025-01-29 18:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 15:25:05' and `end` < '2025-01-29 18:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 18:25:19] Production.INFO: count ==3846 [2025-01-29 18:25:21] Production.ERROR: pbx CDR StartTime 2025-01-29 15:25:05 - End Time 2025-01-29 18:25:05 [2025-01-29 18:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 18:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358136', 'tblTempUsageDetail_20' ) start [2025-01-29 18:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358136', 'tblTempUsageDetail_20' ) end [2025-01-29 18:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358136', 'tblTempVendorCDR_20' ) start [2025-01-29 18:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358136', 'tblTempVendorCDR_20' ) end [2025-01-29 18:25:21] Production.INFO: ProcessCDR(1,14358136,1,1,2) [2025-01-29 18:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14358136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 18:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14358136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 18:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14358136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 18:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14358136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 18:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358136', 'tblTempUsageDetail_20' ) start [2025-01-29 18:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358136', 'tblTempUsageDetail_20' ) end [2025-01-29 18:25:25] Production.ERROR: pbx prc_insertCDR start [2025-01-29 18:25:25] Production.ERROR: pbx prc_insertCDR end [2025-01-29 18:25:25] Production.INFO: ==28202== Releasing lock... [2025-01-29 18:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 18:25:25] Production.INFO: 57.5 MB #Memory Used# [2025-01-29 18:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 15:26:05 [end_date_ymd] => 2025-01-29 18:26:05 [RateCDR] => 1 ) [2025-01-29 18:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 15:26:05' and `end` < '2025-01-29 18:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 18:26:19] Production.INFO: count ==3850 [2025-01-29 18:26:20] Production.ERROR: pbx CDR StartTime 2025-01-29 15:26:05 - End Time 2025-01-29 18:26:05 [2025-01-29 18:26:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 18:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358141', 'tblTempUsageDetail_20' ) start [2025-01-29 18:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358141', 'tblTempUsageDetail_20' ) end [2025-01-29 18:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358141', 'tblTempVendorCDR_20' ) start [2025-01-29 18:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358141', 'tblTempVendorCDR_20' ) end [2025-01-29 18:26:20] Production.INFO: ProcessCDR(1,14358141,1,1,2) [2025-01-29 18:26:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14358141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 18:26:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14358141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 18:26:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14358141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 18:26:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14358141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 18:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358141', 'tblTempUsageDetail_20' ) start [2025-01-29 18:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358141', 'tblTempUsageDetail_20' ) end [2025-01-29 18:26:24] Production.ERROR: pbx prc_insertCDR start [2025-01-29 18:26:24] Production.ERROR: pbx prc_insertCDR end [2025-01-29 18:26:24] Production.INFO: ==28291== Releasing lock... [2025-01-29 18:26:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 18:26:24] Production.INFO: 57.25 MB #Memory Used# [2025-01-29 18:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 15:27:06 [end_date_ymd] => 2025-01-29 18:27:06 [RateCDR] => 1 ) [2025-01-29 18:27:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 15:27:06' and `end` < '2025-01-29 18:27:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 18:27:20] Production.INFO: count ==3829 [2025-01-29 18:27:21] Production.ERROR: pbx CDR StartTime 2025-01-29 15:27:06 - End Time 2025-01-29 18:27:06 [2025-01-29 18:27:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 18:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358146', 'tblTempUsageDetail_20' ) start [2025-01-29 18:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358146', 'tblTempUsageDetail_20' ) end [2025-01-29 18:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358146', 'tblTempVendorCDR_20' ) start [2025-01-29 18:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358146', 'tblTempVendorCDR_20' ) end [2025-01-29 18:27:21] Production.INFO: ProcessCDR(1,14358146,1,1,2) [2025-01-29 18:27:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14358146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 18:27:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14358146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 18:27:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14358146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 18:27:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14358146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 18:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358146', 'tblTempUsageDetail_20' ) start [2025-01-29 18:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358146', 'tblTempUsageDetail_20' ) end [2025-01-29 18:27:24] Production.ERROR: pbx prc_insertCDR start [2025-01-29 18:27:24] Production.ERROR: pbx prc_insertCDR end [2025-01-29 18:27:24] Production.INFO: ==28368== Releasing lock... [2025-01-29 18:27:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 18:27:24] Production.INFO: 56.5 MB #Memory Used# [2025-01-29 18:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 15:28:05 [end_date_ymd] => 2025-01-29 18:28:05 [RateCDR] => 1 ) [2025-01-29 18:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 15:28:05' and `end` < '2025-01-29 18:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 18:28:19] Production.INFO: count ==3791 [2025-01-29 18:28:20] Production.ERROR: pbx CDR StartTime 2025-01-29 15:28:05 - End Time 2025-01-29 18:28:05 [2025-01-29 18:28:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 18:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358151', 'tblTempUsageDetail_20' ) start [2025-01-29 18:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358151', 'tblTempUsageDetail_20' ) end [2025-01-29 18:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358151', 'tblTempVendorCDR_20' ) start [2025-01-29 18:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358151', 'tblTempVendorCDR_20' ) end [2025-01-29 18:28:21] Production.INFO: ProcessCDR(1,14358151,1,1,2) [2025-01-29 18:28:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14358151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 18:28:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14358151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 18:28:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14358151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 18:28:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14358151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 18:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358151', 'tblTempUsageDetail_20' ) start [2025-01-29 18:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358151', 'tblTempUsageDetail_20' ) end [2025-01-29 18:28:24] Production.ERROR: pbx prc_insertCDR start [2025-01-29 18:28:24] Production.ERROR: pbx prc_insertCDR end [2025-01-29 18:28:24] Production.INFO: ==28473== Releasing lock... [2025-01-29 18:28:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 18:28:24] Production.INFO: 56.25 MB #Memory Used# [2025-01-29 18:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 15:29:05 [end_date_ymd] => 2025-01-29 18:29:05 [RateCDR] => 1 ) [2025-01-29 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-01-29 15:29:05' and `end` < '2025-01-29 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-01-29 18:29:18] Production.INFO: count ==3778 [2025-01-29 18:29:19] Production.ERROR: pbx CDR StartTime 2025-01-29 15:29:05 - End Time 2025-01-29 18:29:05 [2025-01-29 18:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 18:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358156', 'tblTempUsageDetail_20' ) start [2025-01-29 18:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358156', 'tblTempUsageDetail_20' ) end [2025-01-29 18:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358156', 'tblTempVendorCDR_20' ) start [2025-01-29 18:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358156', 'tblTempVendorCDR_20' ) end [2025-01-29 18:29:20] Production.INFO: ProcessCDR(1,14358156,1,1,2) [2025-01-29 18:29:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14358156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 18:29:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14358156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 18:29:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14358156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 18:29:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14358156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 18:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358156', 'tblTempUsageDetail_20' ) start [2025-01-29 18:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358156', 'tblTempUsageDetail_20' ) end [2025-01-29 18:29:23] Production.ERROR: pbx prc_insertCDR start [2025-01-29 18:29:23] Production.ERROR: pbx prc_insertCDR end [2025-01-29 18:29:23] Production.INFO: ==28571== Releasing lock... [2025-01-29 18:29:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 18:29:23] Production.INFO: 57 MB #Memory Used# [2025-01-29 18:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 15:30:06 [end_date_ymd] => 2025-01-29 18:30:06 [RateCDR] => 1 ) [2025-01-29 18:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 15:30:06' and `end` < '2025-01-29 18:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 18:30:19] Production.INFO: count ==3768 [2025-01-29 18:30:20] Production.ERROR: pbx CDR StartTime 2025-01-29 15:30:06 - End Time 2025-01-29 18:30:06 [2025-01-29 18:30:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 18:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358161', 'tblTempUsageDetail_20' ) start [2025-01-29 18:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358161', 'tblTempUsageDetail_20' ) end [2025-01-29 18:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358161', 'tblTempVendorCDR_20' ) start [2025-01-29 18:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358161', 'tblTempVendorCDR_20' ) end [2025-01-29 18:30:20] Production.INFO: ProcessCDR(1,14358161,1,1,2) [2025-01-29 18:30:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14358161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 18:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14358161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 18:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14358161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 18:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14358161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 18:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358161', 'tblTempUsageDetail_20' ) start [2025-01-29 18:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358161', 'tblTempUsageDetail_20' ) end [2025-01-29 18:30:23] Production.ERROR: pbx prc_insertCDR start [2025-01-29 18:30:24] Production.ERROR: pbx prc_insertCDR end [2025-01-29 18:30:24] Production.INFO: ==28756== Releasing lock... [2025-01-29 18:30:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 18:30:24] Production.INFO: 56 MB #Memory Used# [2025-01-29 18:31:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 15:31:04 [end_date_ymd] => 2025-01-29 18:31:04 [RateCDR] => 1 ) [2025-01-29 18:31:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 15:31:04' and `end` < '2025-01-29 18:31:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 18:31:18] Production.INFO: count ==3700 [2025-01-29 18:31:20] Production.ERROR: pbx CDR StartTime 2025-01-29 15:31:04 - End Time 2025-01-29 18:31:04 [2025-01-29 18:31:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 18:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358167', 'tblTempUsageDetail_20' ) start [2025-01-29 18:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358167', 'tblTempUsageDetail_20' ) end [2025-01-29 18:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358167', 'tblTempVendorCDR_20' ) start [2025-01-29 18:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358167', 'tblTempVendorCDR_20' ) end [2025-01-29 18:31:20] Production.INFO: ProcessCDR(1,14358167,1,1,2) [2025-01-29 18:31:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14358167,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 18:31:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14358167,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 18:31:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14358167,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 18:31:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14358167,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 18:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358167', 'tblTempUsageDetail_20' ) start [2025-01-29 18:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358167', 'tblTempUsageDetail_20' ) end [2025-01-29 18:31:23] Production.ERROR: pbx prc_insertCDR start [2025-01-29 18:31:23] Production.ERROR: pbx prc_insertCDR end [2025-01-29 18:31:23] Production.INFO: ==28913== Releasing lock... [2025-01-29 18:31:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 18:31:23] Production.INFO: 55.75 MB #Memory Used# [2025-01-29 18:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 15:32:06 [end_date_ymd] => 2025-01-29 18:32:06 [RateCDR] => 1 ) [2025-01-29 18:32:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 15:32:06' and `end` < '2025-01-29 18:32:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 18:32:19] Production.INFO: count ==3687 [2025-01-29 18:32:20] Production.ERROR: pbx CDR StartTime 2025-01-29 15:32:06 - End Time 2025-01-29 18:32:06 [2025-01-29 18:32:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 18:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358172', 'tblTempUsageDetail_20' ) start [2025-01-29 18:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358172', 'tblTempUsageDetail_20' ) end [2025-01-29 18:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358172', 'tblTempVendorCDR_20' ) start [2025-01-29 18:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358172', 'tblTempVendorCDR_20' ) end [2025-01-29 18:32:20] Production.INFO: ProcessCDR(1,14358172,1,1,2) [2025-01-29 18:32:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14358172,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 18:32:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14358172,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 18:32:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14358172,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 18:32:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14358172,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 18:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358172', 'tblTempUsageDetail_20' ) start [2025-01-29 18:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358172', 'tblTempUsageDetail_20' ) end [2025-01-29 18:32:24] Production.ERROR: pbx prc_insertCDR start [2025-01-29 18:32:24] Production.ERROR: pbx prc_insertCDR end [2025-01-29 18:32:24] Production.INFO: ==29019== Releasing lock... [2025-01-29 18:32:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 18:32:24] Production.INFO: 55.5 MB #Memory Used# [2025-01-29 18:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 15:33:05 [end_date_ymd] => 2025-01-29 18:33:05 [RateCDR] => 1 ) [2025-01-29 18:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 15:33:05' and `end` < '2025-01-29 18:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 18:33:19] Production.INFO: count ==3670 [2025-01-29 18:33:20] Production.ERROR: pbx CDR StartTime 2025-01-29 15:33:05 - End Time 2025-01-29 18:33:05 [2025-01-29 18:33:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 18:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358177', 'tblTempUsageDetail_20' ) start [2025-01-29 18:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358177', 'tblTempUsageDetail_20' ) end [2025-01-29 18:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358177', 'tblTempVendorCDR_20' ) start [2025-01-29 18:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358177', 'tblTempVendorCDR_20' ) end [2025-01-29 18:33:20] Production.INFO: ProcessCDR(1,14358177,1,1,2) [2025-01-29 18:33:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14358177,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 18:33:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14358177,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 18:33:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14358177,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 18:33:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14358177,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 18:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358177', 'tblTempUsageDetail_20' ) start [2025-01-29 18:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358177', 'tblTempUsageDetail_20' ) end [2025-01-29 18:33:23] Production.ERROR: pbx prc_insertCDR start [2025-01-29 18:33:23] Production.ERROR: pbx prc_insertCDR end [2025-01-29 18:33:23] Production.INFO: ==29101== Releasing lock... [2025-01-29 18:33:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 18:33:23] Production.INFO: 55.5 MB #Memory Used# [2025-01-29 18:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 15:34:05 [end_date_ymd] => 2025-01-29 18:34:05 [RateCDR] => 1 ) [2025-01-29 18:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 15:34:05' and `end` < '2025-01-29 18:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 18:34:18] Production.INFO: count ==3654 [2025-01-29 18:34:20] Production.ERROR: pbx CDR StartTime 2025-01-29 15:34:05 - End Time 2025-01-29 18:34:05 [2025-01-29 18:34:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 18:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358182', 'tblTempUsageDetail_20' ) start [2025-01-29 18:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358182', 'tblTempUsageDetail_20' ) end [2025-01-29 18:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358182', 'tblTempVendorCDR_20' ) start [2025-01-29 18:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358182', 'tblTempVendorCDR_20' ) end [2025-01-29 18:34:20] Production.INFO: ProcessCDR(1,14358182,1,1,2) [2025-01-29 18:34:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14358182,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 18:34:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14358182,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 18:34:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14358182,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 18:34:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14358182,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 18:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358182', 'tblTempUsageDetail_20' ) start [2025-01-29 18:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358182', 'tblTempUsageDetail_20' ) end [2025-01-29 18:34:24] Production.ERROR: pbx prc_insertCDR start [2025-01-29 18:34:24] Production.ERROR: pbx prc_insertCDR end [2025-01-29 18:34:24] Production.INFO: ==29181== Releasing lock... [2025-01-29 18:34:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 18:34:24] Production.INFO: 55.25 MB #Memory Used# [2025-01-29 18:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 15:35:05 [end_date_ymd] => 2025-01-29 18:35:05 [RateCDR] => 1 ) [2025-01-29 18:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 15:35:05' and `end` < '2025-01-29 18:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 18:35:18] Production.INFO: count ==3641 [2025-01-29 18:35:20] Production.ERROR: pbx CDR StartTime 2025-01-29 15:35:05 - End Time 2025-01-29 18:35:05 [2025-01-29 18:35:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 18:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358187', 'tblTempUsageDetail_20' ) start [2025-01-29 18:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358187', 'tblTempUsageDetail_20' ) end [2025-01-29 18:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358187', 'tblTempVendorCDR_20' ) start [2025-01-29 18:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358187', 'tblTempVendorCDR_20' ) end [2025-01-29 18:35:20] Production.INFO: ProcessCDR(1,14358187,1,1,2) [2025-01-29 18:35:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14358187,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 18:35:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14358187,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 18:35:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14358187,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 18:35:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14358187,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 18:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358187', 'tblTempUsageDetail_20' ) start [2025-01-29 18:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358187', 'tblTempUsageDetail_20' ) end [2025-01-29 18:35:24] Production.ERROR: pbx prc_insertCDR start [2025-01-29 18:35:24] Production.ERROR: pbx prc_insertCDR end [2025-01-29 18:35:24] Production.INFO: ==29254== Releasing lock... [2025-01-29 18:35:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 18:35:24] Production.INFO: 55.25 MB #Memory Used# [2025-01-29 18:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 15:36:05 [end_date_ymd] => 2025-01-29 18:36:05 [RateCDR] => 1 ) [2025-01-29 18:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 15:36:05' and `end` < '2025-01-29 18:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 18:36:20] Production.INFO: count ==3639 [2025-01-29 18:36:21] Production.ERROR: pbx CDR StartTime 2025-01-29 15:36:05 - End Time 2025-01-29 18:36:05 [2025-01-29 18:36:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 18:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358192', 'tblTempUsageDetail_20' ) start [2025-01-29 18:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358192', 'tblTempUsageDetail_20' ) end [2025-01-29 18:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358192', 'tblTempVendorCDR_20' ) start [2025-01-29 18:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358192', 'tblTempVendorCDR_20' ) end [2025-01-29 18:36:21] Production.INFO: ProcessCDR(1,14358192,1,1,2) [2025-01-29 18:36:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14358192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 18:36:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14358192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 18:36:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14358192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 18:36:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14358192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 18:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358192', 'tblTempUsageDetail_20' ) start [2025-01-29 18:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358192', 'tblTempUsageDetail_20' ) end [2025-01-29 18:36:24] Production.ERROR: pbx prc_insertCDR start [2025-01-29 18:36:24] Production.ERROR: pbx prc_insertCDR end [2025-01-29 18:36:24] Production.INFO: ==29330== Releasing lock... [2025-01-29 18:36:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 18:36:24] Production.INFO: 55.25 MB #Memory Used# [2025-01-29 18:37:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 15:37:04 [end_date_ymd] => 2025-01-29 18:37:04 [RateCDR] => 1 ) [2025-01-29 18:37:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 15:37:04' and `end` < '2025-01-29 18:37:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 18:37:17] Production.INFO: count ==3627 [2025-01-29 18:37:19] Production.ERROR: pbx CDR StartTime 2025-01-29 15:37:04 - End Time 2025-01-29 18:37:04 [2025-01-29 18:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 18:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358197', 'tblTempUsageDetail_20' ) start [2025-01-29 18:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358197', 'tblTempUsageDetail_20' ) end [2025-01-29 18:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358197', 'tblTempVendorCDR_20' ) start [2025-01-29 18:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358197', 'tblTempVendorCDR_20' ) end [2025-01-29 18:37:19] Production.INFO: ProcessCDR(1,14358197,1,1,2) [2025-01-29 18:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14358197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 18:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14358197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 18:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14358197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 18:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14358197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 18:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358197', 'tblTempUsageDetail_20' ) start [2025-01-29 18:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358197', 'tblTempUsageDetail_20' ) end [2025-01-29 18:37:22] Production.ERROR: pbx prc_insertCDR start [2025-01-29 18:37:22] Production.ERROR: pbx prc_insertCDR end [2025-01-29 18:37:22] Production.INFO: ==29401== Releasing lock... [2025-01-29 18:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 18:37:22] Production.INFO: 55 MB #Memory Used# [2025-01-29 18:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 15:38:05 [end_date_ymd] => 2025-01-29 18:38:05 [RateCDR] => 1 ) [2025-01-29 18:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 15:38:05' and `end` < '2025-01-29 18:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 18:38:18] Production.INFO: count ==3616 [2025-01-29 18:38:19] Production.ERROR: pbx CDR StartTime 2025-01-29 15:38:05 - End Time 2025-01-29 18:38:05 [2025-01-29 18:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 18:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358202', 'tblTempUsageDetail_20' ) start [2025-01-29 18:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358202', 'tblTempUsageDetail_20' ) end [2025-01-29 18:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358202', 'tblTempVendorCDR_20' ) start [2025-01-29 18:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358202', 'tblTempVendorCDR_20' ) end [2025-01-29 18:38:19] Production.INFO: ProcessCDR(1,14358202,1,1,2) [2025-01-29 18:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14358202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 18:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14358202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 18:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14358202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 18:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14358202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 18:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358202', 'tblTempUsageDetail_20' ) start [2025-01-29 18:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358202', 'tblTempUsageDetail_20' ) end [2025-01-29 18:38:22] Production.ERROR: pbx prc_insertCDR start [2025-01-29 18:38:22] Production.ERROR: pbx prc_insertCDR end [2025-01-29 18:38:22] Production.INFO: ==29482== Releasing lock... [2025-01-29 18:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 18:38:22] Production.INFO: 55 MB #Memory Used# [2025-01-29 18:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 15:39:06 [end_date_ymd] => 2025-01-29 18:39:06 [RateCDR] => 1 ) [2025-01-29 18:39:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 15:39:06' and `end` < '2025-01-29 18:39:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 18:39:19] Production.INFO: count ==3603 [2025-01-29 18:39:20] Production.ERROR: pbx CDR StartTime 2025-01-29 15:39:06 - End Time 2025-01-29 18:39:06 [2025-01-29 18:39:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 18:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358207', 'tblTempUsageDetail_20' ) start [2025-01-29 18:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358207', 'tblTempUsageDetail_20' ) end [2025-01-29 18:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358207', 'tblTempVendorCDR_20' ) start [2025-01-29 18:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358207', 'tblTempVendorCDR_20' ) end [2025-01-29 18:39:20] Production.INFO: ProcessCDR(1,14358207,1,1,2) [2025-01-29 18:39:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14358207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 18:39:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14358207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 18:39:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14358207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 18:39:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14358207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 18:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358207', 'tblTempUsageDetail_20' ) start [2025-01-29 18:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358207', 'tblTempUsageDetail_20' ) end [2025-01-29 18:39:23] Production.ERROR: pbx prc_insertCDR start [2025-01-29 18:39:23] Production.ERROR: pbx prc_insertCDR end [2025-01-29 18:39:24] Production.INFO: ==29552== Releasing lock... [2025-01-29 18:39:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 18:39:24] Production.INFO: 55.5 MB #Memory Used# [2025-01-29 18:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 15:40:06 [end_date_ymd] => 2025-01-29 18:40:06 [RateCDR] => 1 ) [2025-01-29 18:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 15:40:06' and `end` < '2025-01-29 18:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 18:40:19] Production.INFO: count ==3595 [2025-01-29 18:40:20] Production.ERROR: pbx CDR StartTime 2025-01-29 15:40:06 - End Time 2025-01-29 18:40:06 [2025-01-29 18:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 18:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358213', 'tblTempUsageDetail_20' ) start [2025-01-29 18:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358213', 'tblTempUsageDetail_20' ) end [2025-01-29 18:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358213', 'tblTempVendorCDR_20' ) start [2025-01-29 18:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358213', 'tblTempVendorCDR_20' ) end [2025-01-29 18:40:21] Production.INFO: ProcessCDR(1,14358213,1,1,2) [2025-01-29 18:40:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14358213,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 18:40:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14358213,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 18:40:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14358213,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 18:40:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14358213,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 18:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358213', 'tblTempUsageDetail_20' ) start [2025-01-29 18:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358213', 'tblTempUsageDetail_20' ) end [2025-01-29 18:40:24] Production.ERROR: pbx prc_insertCDR start [2025-01-29 18:40:24] Production.ERROR: pbx prc_insertCDR end [2025-01-29 18:40:24] Production.INFO: ==29629== Releasing lock... [2025-01-29 18:40:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 18:40:24] Production.INFO: 55.75 MB #Memory Used# [2025-01-29 18:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 15:41:05 [end_date_ymd] => 2025-01-29 18:41:05 [RateCDR] => 1 ) [2025-01-29 18:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 15:41:05' and `end` < '2025-01-29 18:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 18:41:19] Production.INFO: count ==3529 [2025-01-29 18:41:20] Production.ERROR: pbx CDR StartTime 2025-01-29 15:41:05 - End Time 2025-01-29 18:41:05 [2025-01-29 18:41:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 18:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358218', 'tblTempUsageDetail_20' ) start [2025-01-29 18:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358218', 'tblTempUsageDetail_20' ) end [2025-01-29 18:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358218', 'tblTempVendorCDR_20' ) start [2025-01-29 18:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358218', 'tblTempVendorCDR_20' ) end [2025-01-29 18:41:20] Production.INFO: ProcessCDR(1,14358218,1,1,2) [2025-01-29 18:41:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14358218,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 18:41:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14358218,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 18:41:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14358218,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 18:41:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14358218,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 18:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358218', 'tblTempUsageDetail_20' ) start [2025-01-29 18:41:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358218', 'tblTempUsageDetail_20' ) end [2025-01-29 18:41:25] Production.ERROR: pbx prc_insertCDR start [2025-01-29 18:41:25] Production.ERROR: pbx prc_insertCDR end [2025-01-29 18:41:25] Production.INFO: ==29708== Releasing lock... [2025-01-29 18:41:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 18:41:25] Production.INFO: 54.5 MB #Memory Used# [2025-01-29 18:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 15:42:05 [end_date_ymd] => 2025-01-29 18:42:05 [RateCDR] => 1 ) [2025-01-29 18:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 15:42:05' and `end` < '2025-01-29 18:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 18:42:18] Production.INFO: count ==3478 [2025-01-29 18:42:19] Production.ERROR: pbx CDR StartTime 2025-01-29 15:42:05 - End Time 2025-01-29 18:42:05 [2025-01-29 18:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 18:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358223', 'tblTempUsageDetail_20' ) start [2025-01-29 18:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358223', 'tblTempUsageDetail_20' ) end [2025-01-29 18:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358223', 'tblTempVendorCDR_20' ) start [2025-01-29 18:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358223', 'tblTempVendorCDR_20' ) end [2025-01-29 18:42:19] Production.INFO: ProcessCDR(1,14358223,1,1,2) [2025-01-29 18:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14358223,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 18:42:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14358223,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 18:42:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14358223,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 18:42:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14358223,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 18:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358223', 'tblTempUsageDetail_20' ) start [2025-01-29 18:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358223', 'tblTempUsageDetail_20' ) end [2025-01-29 18:42:24] Production.ERROR: pbx prc_insertCDR start [2025-01-29 18:42:24] Production.ERROR: pbx prc_insertCDR end [2025-01-29 18:42:24] Production.INFO: ==29781== Releasing lock... [2025-01-29 18:42:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 18:42:24] Production.INFO: 54.25 MB #Memory Used# [2025-01-29 18:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 15:43:05 [end_date_ymd] => 2025-01-29 18:43:05 [RateCDR] => 1 ) [2025-01-29 18:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 15:43:05' and `end` < '2025-01-29 18:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 18:43:19] Production.INFO: count ==3447 [2025-01-29 18:43:20] Production.ERROR: pbx CDR StartTime 2025-01-29 15:43:05 - End Time 2025-01-29 18:43:05 [2025-01-29 18:43:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 18:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358228', 'tblTempUsageDetail_20' ) start [2025-01-29 18:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358228', 'tblTempUsageDetail_20' ) end [2025-01-29 18:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358228', 'tblTempVendorCDR_20' ) start [2025-01-29 18:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358228', 'tblTempVendorCDR_20' ) end [2025-01-29 18:43:20] Production.INFO: ProcessCDR(1,14358228,1,1,2) [2025-01-29 18:43:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14358228,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 18:43:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14358228,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 18:43:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14358228,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 18:43:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14358228,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 18:43:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358228', 'tblTempUsageDetail_20' ) start [2025-01-29 18:43:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358228', 'tblTempUsageDetail_20' ) end [2025-01-29 18:43:25] Production.ERROR: pbx prc_insertCDR start [2025-01-29 18:43:25] Production.ERROR: pbx prc_insertCDR end [2025-01-29 18:43:25] Production.INFO: ==29857== Releasing lock... [2025-01-29 18:43:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 18:43:25] Production.INFO: 53.75 MB #Memory Used# [2025-01-29 18:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 15:44:05 [end_date_ymd] => 2025-01-29 18:44:05 [RateCDR] => 1 ) [2025-01-29 18:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 15:44:05' and `end` < '2025-01-29 18:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 18:44:19] Production.INFO: count ==3440 [2025-01-29 18:44:20] Production.ERROR: pbx CDR StartTime 2025-01-29 15:44:05 - End Time 2025-01-29 18:44:05 [2025-01-29 18:44:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 18:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358233', 'tblTempUsageDetail_20' ) start [2025-01-29 18:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358233', 'tblTempUsageDetail_20' ) end [2025-01-29 18:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358233', 'tblTempVendorCDR_20' ) start [2025-01-29 18:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358233', 'tblTempVendorCDR_20' ) end [2025-01-29 18:44:20] Production.INFO: ProcessCDR(1,14358233,1,1,2) [2025-01-29 18:44:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14358233,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 18:44:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14358233,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 18:44:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14358233,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 18:44:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14358233,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 18:44:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358233', 'tblTempUsageDetail_20' ) start [2025-01-29 18:44:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358233', 'tblTempUsageDetail_20' ) end [2025-01-29 18:44:25] Production.ERROR: pbx prc_insertCDR start [2025-01-29 18:44:25] Production.ERROR: pbx prc_insertCDR end [2025-01-29 18:44:25] Production.INFO: ==29926== Releasing lock... [2025-01-29 18:44:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 18:44:25] Production.INFO: 54 MB #Memory Used# [2025-01-29 18:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 15:45:05 [end_date_ymd] => 2025-01-29 18:45:05 [RateCDR] => 1 ) [2025-01-29 18:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 15:45:05' and `end` < '2025-01-29 18:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 18:45:18] Production.INFO: count ==3433 [2025-01-29 18:45:19] Production.ERROR: pbx CDR StartTime 2025-01-29 15:45:05 - End Time 2025-01-29 18:45:05 [2025-01-29 18:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 18:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358238', 'tblTempUsageDetail_20' ) start [2025-01-29 18:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358238', 'tblTempUsageDetail_20' ) end [2025-01-29 18:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358238', 'tblTempVendorCDR_20' ) start [2025-01-29 18:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358238', 'tblTempVendorCDR_20' ) end [2025-01-29 18:45:19] Production.INFO: ProcessCDR(1,14358238,1,1,2) [2025-01-29 18:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14358238,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 18:45:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14358238,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 18:45:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14358238,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 18:45:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14358238,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 18:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358238', 'tblTempUsageDetail_20' ) start [2025-01-29 18:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358238', 'tblTempUsageDetail_20' ) end [2025-01-29 18:45:24] Production.ERROR: pbx prc_insertCDR start [2025-01-29 18:45:24] Production.ERROR: pbx prc_insertCDR end [2025-01-29 18:45:24] Production.INFO: ==29997== Releasing lock... [2025-01-29 18:45:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 18:45:24] Production.INFO: 53.5 MB #Memory Used# [2025-01-29 18:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 15:46:05 [end_date_ymd] => 2025-01-29 18:46:05 [RateCDR] => 1 ) [2025-01-29 18:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 15:46:05' and `end` < '2025-01-29 18:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 18:46:18] Production.INFO: count ==3418 [2025-01-29 18:46:19] Production.ERROR: pbx CDR StartTime 2025-01-29 15:46:05 - End Time 2025-01-29 18:46:05 [2025-01-29 18:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 18:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358243', 'tblTempUsageDetail_20' ) start [2025-01-29 18:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358243', 'tblTempUsageDetail_20' ) end [2025-01-29 18:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358243', 'tblTempVendorCDR_20' ) start [2025-01-29 18:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358243', 'tblTempVendorCDR_20' ) end [2025-01-29 18:46:19] Production.INFO: ProcessCDR(1,14358243,1,1,2) [2025-01-29 18:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14358243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 18:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14358243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 18:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14358243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 18:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14358243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 18:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358243', 'tblTempUsageDetail_20' ) start [2025-01-29 18:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358243', 'tblTempUsageDetail_20' ) end [2025-01-29 18:46:22] Production.ERROR: pbx prc_insertCDR start [2025-01-29 18:46:22] Production.ERROR: pbx prc_insertCDR end [2025-01-29 18:46:22] Production.INFO: ==30114== Releasing lock... [2025-01-29 18:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 18:46:22] Production.INFO: 53.75 MB #Memory Used# [2025-01-29 18:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 15:47:05 [end_date_ymd] => 2025-01-29 18:47:05 [RateCDR] => 1 ) [2025-01-29 18:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 15:47:05' and `end` < '2025-01-29 18:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 18:47:18] Production.INFO: count ==3415 [2025-01-29 18:47:19] Production.ERROR: pbx CDR StartTime 2025-01-29 15:47:05 - End Time 2025-01-29 18:47:05 [2025-01-29 18:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 18:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358248', 'tblTempUsageDetail_20' ) start [2025-01-29 18:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358248', 'tblTempUsageDetail_20' ) end [2025-01-29 18:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358248', 'tblTempVendorCDR_20' ) start [2025-01-29 18:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358248', 'tblTempVendorCDR_20' ) end [2025-01-29 18:47:19] Production.INFO: ProcessCDR(1,14358248,1,1,2) [2025-01-29 18:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14358248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 18:47:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14358248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 18:47:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14358248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 18:47:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14358248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 18:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358248', 'tblTempUsageDetail_20' ) start [2025-01-29 18:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358248', 'tblTempUsageDetail_20' ) end [2025-01-29 18:47:23] Production.ERROR: pbx prc_insertCDR start [2025-01-29 18:47:23] Production.ERROR: pbx prc_insertCDR end [2025-01-29 18:47:24] Production.INFO: ==30185== Releasing lock... [2025-01-29 18:47:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 18:47:24] Production.INFO: 53.5 MB #Memory Used# [2025-01-29 18:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 15:48:05 [end_date_ymd] => 2025-01-29 18:48:05 [RateCDR] => 1 ) [2025-01-29 18:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 15:48:05' and `end` < '2025-01-29 18:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 18:48:18] Production.INFO: count ==3406 [2025-01-29 18:48:19] Production.ERROR: pbx CDR StartTime 2025-01-29 15:48:05 - End Time 2025-01-29 18:48:05 [2025-01-29 18:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 18:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358253', 'tblTempUsageDetail_20' ) start [2025-01-29 18:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358253', 'tblTempUsageDetail_20' ) end [2025-01-29 18:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358253', 'tblTempVendorCDR_20' ) start [2025-01-29 18:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358253', 'tblTempVendorCDR_20' ) end [2025-01-29 18:48:20] Production.INFO: ProcessCDR(1,14358253,1,1,2) [2025-01-29 18:48:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14358253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 18:48:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14358253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 18:48:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14358253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 18:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14358253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 18:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358253', 'tblTempUsageDetail_20' ) start [2025-01-29 18:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358253', 'tblTempUsageDetail_20' ) end [2025-01-29 18:48:23] Production.ERROR: pbx prc_insertCDR start [2025-01-29 18:48:23] Production.ERROR: pbx prc_insertCDR end [2025-01-29 18:48:23] Production.INFO: ==30260== Releasing lock... [2025-01-29 18:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 18:48:23] Production.INFO: 54 MB #Memory Used# [2025-01-29 18:49:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 15:49:04 [end_date_ymd] => 2025-01-29 18:49:04 [RateCDR] => 1 ) [2025-01-29 18:49:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 15:49:04' and `end` < '2025-01-29 18:49:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 18:49:17] Production.INFO: count ==3392 [2025-01-29 18:49:18] Production.ERROR: pbx CDR StartTime 2025-01-29 15:49:04 - End Time 2025-01-29 18:49:04 [2025-01-29 18:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 18:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358258', 'tblTempUsageDetail_20' ) start [2025-01-29 18:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358258', 'tblTempUsageDetail_20' ) end [2025-01-29 18:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358258', 'tblTempVendorCDR_20' ) start [2025-01-29 18:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358258', 'tblTempVendorCDR_20' ) end [2025-01-29 18:49:18] Production.INFO: ProcessCDR(1,14358258,1,1,2) [2025-01-29 18:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14358258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 18:49:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14358258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 18:49:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14358258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 18:49:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14358258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 18:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358258', 'tblTempUsageDetail_20' ) start [2025-01-29 18:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358258', 'tblTempUsageDetail_20' ) end [2025-01-29 18:49:23] Production.ERROR: pbx prc_insertCDR start [2025-01-29 18:49:23] Production.ERROR: pbx prc_insertCDR end [2025-01-29 18:49:23] Production.INFO: ==30340== Releasing lock... [2025-01-29 18:49:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 18:49:23] Production.INFO: 53.25 MB #Memory Used# [2025-01-29 18:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 15:50:06 [end_date_ymd] => 2025-01-29 18:50:06 [RateCDR] => 1 ) [2025-01-29 18:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 15:50:06' and `end` < '2025-01-29 18:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 18:50:19] Production.INFO: count ==3388 [2025-01-29 18:50:20] Production.ERROR: pbx CDR StartTime 2025-01-29 15:50:06 - End Time 2025-01-29 18:50:06 [2025-01-29 18:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 18:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358264', 'tblTempUsageDetail_20' ) start [2025-01-29 18:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358264', 'tblTempUsageDetail_20' ) end [2025-01-29 18:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358264', 'tblTempVendorCDR_20' ) start [2025-01-29 18:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358264', 'tblTempVendorCDR_20' ) end [2025-01-29 18:50:20] Production.INFO: ProcessCDR(1,14358264,1,1,2) [2025-01-29 18:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14358264,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 18:50:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14358264,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 18:50:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14358264,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 18:50:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14358264,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 18:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358264', 'tblTempUsageDetail_20' ) start [2025-01-29 18:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358264', 'tblTempUsageDetail_20' ) end [2025-01-29 18:50:24] Production.ERROR: pbx prc_insertCDR start [2025-01-29 18:50:24] Production.ERROR: pbx prc_insertCDR end [2025-01-29 18:50:24] Production.INFO: ==30433== Releasing lock... [2025-01-29 18:50:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 18:50:24] Production.INFO: 53.25 MB #Memory Used# [2025-01-29 18:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 15:51:05 [end_date_ymd] => 2025-01-29 18:51:05 [RateCDR] => 1 ) [2025-01-29 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-01-29 15:51:05' and `end` < '2025-01-29 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-01-29 18:51:19] Production.INFO: count ==3345 [2025-01-29 18:51:20] Production.ERROR: pbx CDR StartTime 2025-01-29 15:51:05 - End Time 2025-01-29 18:51:05 [2025-01-29 18:51:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 18:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358269', 'tblTempUsageDetail_20' ) start [2025-01-29 18:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358269', 'tblTempUsageDetail_20' ) end [2025-01-29 18:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358269', 'tblTempVendorCDR_20' ) start [2025-01-29 18:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358269', 'tblTempVendorCDR_20' ) end [2025-01-29 18:51:20] Production.INFO: ProcessCDR(1,14358269,1,1,2) [2025-01-29 18:51:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14358269,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 18:51:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14358269,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 18:51:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14358269,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 18:51:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14358269,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 18:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358269', 'tblTempUsageDetail_20' ) start [2025-01-29 18:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358269', 'tblTempUsageDetail_20' ) end [2025-01-29 18:51:23] Production.ERROR: pbx prc_insertCDR start [2025-01-29 18:51:23] Production.ERROR: pbx prc_insertCDR end [2025-01-29 18:51:23] Production.INFO: ==30524== Releasing lock... [2025-01-29 18:51:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 18:51:23] Production.INFO: 53 MB #Memory Used# [2025-01-29 18:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 15:52:05 [end_date_ymd] => 2025-01-29 18:52:05 [RateCDR] => 1 ) [2025-01-29 18:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 15:52:05' and `end` < '2025-01-29 18:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 18:52:20] Production.INFO: count ==3356 [2025-01-29 18:52:21] Production.ERROR: pbx CDR StartTime 2025-01-29 15:52:05 - End Time 2025-01-29 18:52:05 [2025-01-29 18:52:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 18:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358274', 'tblTempUsageDetail_20' ) start [2025-01-29 18:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358274', 'tblTempUsageDetail_20' ) end [2025-01-29 18:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358274', 'tblTempVendorCDR_20' ) start [2025-01-29 18:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358274', 'tblTempVendorCDR_20' ) end [2025-01-29 18:52:22] Production.INFO: ProcessCDR(1,14358274,1,1,2) [2025-01-29 18:52:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14358274,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 18:52:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14358274,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 18:52:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14358274,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 18:52:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14358274,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 18:52:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358274', 'tblTempUsageDetail_20' ) start [2025-01-29 18:52:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358274', 'tblTempUsageDetail_20' ) end [2025-01-29 18:52:26] Production.ERROR: pbx prc_insertCDR start [2025-01-29 18:52:26] Production.ERROR: pbx prc_insertCDR end [2025-01-29 18:52:26] Production.INFO: ==30617== Releasing lock... [2025-01-29 18:52:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 18:52:26] Production.INFO: 53.75 MB #Memory Used# [2025-01-29 18:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 15:53:05 [end_date_ymd] => 2025-01-29 18:53:05 [RateCDR] => 1 ) [2025-01-29 18:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 15:53:05' and `end` < '2025-01-29 18:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 18:53:20] Production.INFO: count ==3369 [2025-01-29 18:53:21] Production.ERROR: pbx CDR StartTime 2025-01-29 15:53:05 - End Time 2025-01-29 18:53:05 [2025-01-29 18:53:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 18:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358279', 'tblTempUsageDetail_20' ) start [2025-01-29 18:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358279', 'tblTempUsageDetail_20' ) end [2025-01-29 18:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358279', 'tblTempVendorCDR_20' ) start [2025-01-29 18:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358279', 'tblTempVendorCDR_20' ) end [2025-01-29 18:53:22] Production.INFO: ProcessCDR(1,14358279,1,1,2) [2025-01-29 18:53:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14358279,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 18:53:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14358279,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 18:53:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14358279,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 18:53:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14358279,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 18:53:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358279', 'tblTempUsageDetail_20' ) start [2025-01-29 18:53:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358279', 'tblTempUsageDetail_20' ) end [2025-01-29 18:53:25] Production.ERROR: pbx prc_insertCDR start [2025-01-29 18:53:25] Production.ERROR: pbx prc_insertCDR end [2025-01-29 18:53:25] Production.INFO: ==30710== Releasing lock... [2025-01-29 18:53:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 18:53:25] Production.INFO: 53.25 MB #Memory Used# [2025-01-29 18:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 15:54:05 [end_date_ymd] => 2025-01-29 18:54:05 [RateCDR] => 1 ) [2025-01-29 18:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 15:54:05' and `end` < '2025-01-29 18:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 18:54:19] Production.INFO: count ==3368 [2025-01-29 18:54:20] Production.ERROR: pbx CDR StartTime 2025-01-29 15:54:05 - End Time 2025-01-29 18:54:05 [2025-01-29 18:54:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 18:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358284', 'tblTempUsageDetail_20' ) start [2025-01-29 18:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358284', 'tblTempUsageDetail_20' ) end [2025-01-29 18:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358284', 'tblTempVendorCDR_20' ) start [2025-01-29 18:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358284', 'tblTempVendorCDR_20' ) end [2025-01-29 18:54:20] Production.INFO: ProcessCDR(1,14358284,1,1,2) [2025-01-29 18:54:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14358284,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 18:54:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14358284,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 18:54:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14358284,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 18:54:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14358284,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 18:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358284', 'tblTempUsageDetail_20' ) start [2025-01-29 18:54:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358284', 'tblTempUsageDetail_20' ) end [2025-01-29 18:54:25] Production.ERROR: pbx prc_insertCDR start [2025-01-29 18:54:25] Production.ERROR: pbx prc_insertCDR end [2025-01-29 18:54:25] Production.INFO: ==30801== Releasing lock... [2025-01-29 18:54:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 18:54:25] Production.INFO: 53.5 MB #Memory Used# [2025-01-29 18:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 15:55:06 [end_date_ymd] => 2025-01-29 18:55:06 [RateCDR] => 1 ) [2025-01-29 18:55:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 15:55:06' and `end` < '2025-01-29 18:55:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 18:55:20] Production.INFO: count ==3366 [2025-01-29 18:55:21] Production.ERROR: pbx CDR StartTime 2025-01-29 15:55:06 - End Time 2025-01-29 18:55:06 [2025-01-29 18:55:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 18:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358289', 'tblTempUsageDetail_20' ) start [2025-01-29 18:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358289', 'tblTempUsageDetail_20' ) end [2025-01-29 18:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358289', 'tblTempVendorCDR_20' ) start [2025-01-29 18:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358289', 'tblTempVendorCDR_20' ) end [2025-01-29 18:55:21] Production.INFO: ProcessCDR(1,14358289,1,1,2) [2025-01-29 18:55:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14358289,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 18:55:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14358289,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 18:55:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14358289,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 18:55:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14358289,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 18:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358289', 'tblTempUsageDetail_20' ) start [2025-01-29 18:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358289', 'tblTempUsageDetail_20' ) end [2025-01-29 18:55:24] Production.ERROR: pbx prc_insertCDR start [2025-01-29 18:55:24] Production.ERROR: pbx prc_insertCDR end [2025-01-29 18:55:24] Production.INFO: ==30886== Releasing lock... [2025-01-29 18:55:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 18:55:24] Production.INFO: 53.5 MB #Memory Used# [2025-01-29 18:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 15:56:05 [end_date_ymd] => 2025-01-29 18:56:05 [RateCDR] => 1 ) [2025-01-29 18:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 15:56:05' and `end` < '2025-01-29 18:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 18:56:19] Production.INFO: count ==3389 [2025-01-29 18:56:20] Production.ERROR: pbx CDR StartTime 2025-01-29 15:56:05 - End Time 2025-01-29 18:56:05 [2025-01-29 18:56:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 18:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358294', 'tblTempUsageDetail_20' ) start [2025-01-29 18:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358294', 'tblTempUsageDetail_20' ) end [2025-01-29 18:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358294', 'tblTempVendorCDR_20' ) start [2025-01-29 18:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358294', 'tblTempVendorCDR_20' ) end [2025-01-29 18:56:20] Production.INFO: ProcessCDR(1,14358294,1,1,2) [2025-01-29 18:56:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14358294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 18:56:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14358294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 18:56:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14358294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 18:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14358294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 18:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358294', 'tblTempUsageDetail_20' ) start [2025-01-29 18:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358294', 'tblTempUsageDetail_20' ) end [2025-01-29 18:56:23] Production.ERROR: pbx prc_insertCDR start [2025-01-29 18:56:24] Production.ERROR: pbx prc_insertCDR end [2025-01-29 18:56:24] Production.INFO: ==30958== Releasing lock... [2025-01-29 18:56:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 18:56:24] Production.INFO: 53.25 MB #Memory Used# [2025-01-29 18:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 15:57:05 [end_date_ymd] => 2025-01-29 18:57:05 [RateCDR] => 1 ) [2025-01-29 18:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 15:57:05' and `end` < '2025-01-29 18:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 18:57:19] Production.INFO: count ==3417 [2025-01-29 18:57:20] Production.ERROR: pbx CDR StartTime 2025-01-29 15:57:05 - End Time 2025-01-29 18:57:05 [2025-01-29 18:57:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 18:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358299', 'tblTempUsageDetail_20' ) start [2025-01-29 18:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358299', 'tblTempUsageDetail_20' ) end [2025-01-29 18:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358299', 'tblTempVendorCDR_20' ) start [2025-01-29 18:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358299', 'tblTempVendorCDR_20' ) end [2025-01-29 18:57:20] Production.INFO: ProcessCDR(1,14358299,1,1,2) [2025-01-29 18:57:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14358299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 18:57:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14358299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 18:57:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14358299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 18:57:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14358299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 18:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358299', 'tblTempUsageDetail_20' ) start [2025-01-29 18:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358299', 'tblTempUsageDetail_20' ) end [2025-01-29 18:57:24] Production.ERROR: pbx prc_insertCDR start [2025-01-29 18:57:24] Production.ERROR: pbx prc_insertCDR end [2025-01-29 18:57:24] Production.INFO: ==31042== Releasing lock... [2025-01-29 18:57:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 18:57:24] Production.INFO: 54 MB #Memory Used# [2025-01-29 18:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 15:58:05 [end_date_ymd] => 2025-01-29 18:58:05 [RateCDR] => 1 ) [2025-01-29 18:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 15:58:05' and `end` < '2025-01-29 18:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 18:58:18] Production.INFO: count ==3443 [2025-01-29 18:58:19] Production.ERROR: pbx CDR StartTime 2025-01-29 15:58:05 - End Time 2025-01-29 18:58:05 [2025-01-29 18:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 18:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358304', 'tblTempUsageDetail_20' ) start [2025-01-29 18:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358304', 'tblTempUsageDetail_20' ) end [2025-01-29 18:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358304', 'tblTempVendorCDR_20' ) start [2025-01-29 18:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358304', 'tblTempVendorCDR_20' ) end [2025-01-29 18:58:19] Production.INFO: ProcessCDR(1,14358304,1,1,2) [2025-01-29 18:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14358304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 18:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14358304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 18:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14358304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 18:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14358304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 18:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358304', 'tblTempUsageDetail_20' ) start [2025-01-29 18:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358304', 'tblTempUsageDetail_20' ) end [2025-01-29 18:58:22] Production.ERROR: pbx prc_insertCDR start [2025-01-29 18:58:23] Production.ERROR: pbx prc_insertCDR end [2025-01-29 18:58:23] Production.INFO: ==31139== Releasing lock... [2025-01-29 18:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 18:58:23] Production.INFO: 54.75 MB #Memory Used# [2025-01-29 18:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 15:59:06 [end_date_ymd] => 2025-01-29 18:59:06 [RateCDR] => 1 ) [2025-01-29 18:59:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 15:59:06' and `end` < '2025-01-29 18:59:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 18:59:19] Production.INFO: count ==3477 [2025-01-29 18:59:20] Production.ERROR: pbx CDR StartTime 2025-01-29 15:59:06 - End Time 2025-01-29 18:59:06 [2025-01-29 18:59:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 18:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358309', 'tblTempUsageDetail_20' ) start [2025-01-29 18:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358309', 'tblTempUsageDetail_20' ) end [2025-01-29 18:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358309', 'tblTempVendorCDR_20' ) start [2025-01-29 18:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358309', 'tblTempVendorCDR_20' ) end [2025-01-29 18:59:20] Production.INFO: ProcessCDR(1,14358309,1,1,2) [2025-01-29 18:59:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14358309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 18:59:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14358309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 18:59:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14358309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 18:59:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14358309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 18:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358309', 'tblTempUsageDetail_20' ) start [2025-01-29 18:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358309', 'tblTempUsageDetail_20' ) end [2025-01-29 18:59:23] Production.ERROR: pbx prc_insertCDR start [2025-01-29 18:59:23] Production.ERROR: pbx prc_insertCDR end [2025-01-29 18:59:23] Production.INFO: ==31239== Releasing lock... [2025-01-29 18:59:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 18:59:23] Production.INFO: 54.25 MB #Memory Used# [2025-01-29 19:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 16:00:05 [end_date_ymd] => 2025-01-29 19:00:05 [RateCDR] => 1 ) [2025-01-29 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-01-29 16:00:05' and `end` < '2025-01-29 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-01-29 19:00:21] Production.INFO: count ==3503 [2025-01-29 19:00:22] Production.ERROR: pbx CDR StartTime 2025-01-29 16:00:05 - End Time 2025-01-29 19:00:05 [2025-01-29 19:00:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 19:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358315', 'tblTempUsageDetail_20' ) start [2025-01-29 19:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358315', 'tblTempUsageDetail_20' ) end [2025-01-29 19:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358315', 'tblTempVendorCDR_20' ) start [2025-01-29 19:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358315', 'tblTempVendorCDR_20' ) end [2025-01-29 19:00:22] Production.INFO: ProcessCDR(1,14358315,1,1,2) [2025-01-29 19:00:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14358315,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 19:00:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14358315,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 19:00:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14358315,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 19:00:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14358315,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 19:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358315', 'tblTempUsageDetail_20' ) start [2025-01-29 19:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358315', 'tblTempUsageDetail_20' ) end [2025-01-29 19:00:28] Production.ERROR: pbx prc_insertCDR start [2025-01-29 19:00:28] Production.ERROR: pbx prc_insertCDR end [2025-01-29 19:00:28] Production.INFO: ==31339== Releasing lock... [2025-01-29 19:00:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 19:00:28] Production.INFO: 54.5 MB #Memory Used# [2025-01-29 19:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 16:01:06 [end_date_ymd] => 2025-01-29 19:01:06 [RateCDR] => 1 ) [2025-01-29 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-01-29 16:01:06' and `end` < '2025-01-29 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-01-29 19:01:19] Production.INFO: count ==3512 [2025-01-29 19:01:20] Production.ERROR: pbx CDR StartTime 2025-01-29 16:01:06 - End Time 2025-01-29 19:01:06 [2025-01-29 19:01:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 19:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358320', 'tblTempUsageDetail_20' ) start [2025-01-29 19:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358320', 'tblTempUsageDetail_20' ) end [2025-01-29 19:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358320', 'tblTempVendorCDR_20' ) start [2025-01-29 19:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358320', 'tblTempVendorCDR_20' ) end [2025-01-29 19:01:20] Production.INFO: ProcessCDR(1,14358320,1,1,2) [2025-01-29 19:01:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14358320,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 19:01:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14358320,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 19:01:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14358320,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 19:01:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14358320,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 19:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358320', 'tblTempUsageDetail_20' ) start [2025-01-29 19:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358320', 'tblTempUsageDetail_20' ) end [2025-01-29 19:01:26] Production.ERROR: pbx prc_insertCDR start [2025-01-29 19:01:26] Production.ERROR: pbx prc_insertCDR end [2025-01-29 19:01:26] Production.INFO: ==31578== Releasing lock... [2025-01-29 19:01:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 19:01:26] Production.INFO: 54.5 MB #Memory Used# [2025-01-29 19:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 16:02:05 [end_date_ymd] => 2025-01-29 19:02:05 [RateCDR] => 1 ) [2025-01-29 19:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 16:02:05' and `end` < '2025-01-29 19:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 19:02:18] Production.INFO: count ==3542 [2025-01-29 19:02:20] Production.ERROR: pbx CDR StartTime 2025-01-29 16:02:05 - End Time 2025-01-29 19:02:05 [2025-01-29 19:02:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 19:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358325', 'tblTempUsageDetail_20' ) start [2025-01-29 19:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358325', 'tblTempUsageDetail_20' ) end [2025-01-29 19:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358325', 'tblTempVendorCDR_20' ) start [2025-01-29 19:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358325', 'tblTempVendorCDR_20' ) end [2025-01-29 19:02:20] Production.INFO: ProcessCDR(1,14358325,1,1,2) [2025-01-29 19:02:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14358325,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 19:02:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14358325,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 19:02:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14358325,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 19:02:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14358325,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 19:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358325', 'tblTempUsageDetail_20' ) start [2025-01-29 19:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358325', 'tblTempUsageDetail_20' ) end [2025-01-29 19:02:24] Production.ERROR: pbx prc_insertCDR start [2025-01-29 19:02:25] Production.ERROR: pbx prc_insertCDR end [2025-01-29 19:02:25] Production.INFO: ==31677== Releasing lock... [2025-01-29 19:02:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 19:02:25] Production.INFO: 54.75 MB #Memory Used# [2025-01-29 19:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 16:03:05 [end_date_ymd] => 2025-01-29 19:03:05 [RateCDR] => 1 ) [2025-01-29 19:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 16:03:05' and `end` < '2025-01-29 19:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 19:03:20] Production.INFO: count ==3834 [2025-01-29 19:03:21] Production.ERROR: pbx CDR StartTime 2025-01-29 16:03:05 - End Time 2025-01-29 19:03:05 [2025-01-29 19:03:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 19:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358330', 'tblTempUsageDetail_20' ) start [2025-01-29 19:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358330', 'tblTempUsageDetail_20' ) end [2025-01-29 19:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358330', 'tblTempVendorCDR_20' ) start [2025-01-29 19:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358330', 'tblTempVendorCDR_20' ) end [2025-01-29 19:03:22] Production.INFO: ProcessCDR(1,14358330,1,1,2) [2025-01-29 19:03:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14358330,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 19:03:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14358330,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 19:03:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14358330,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 19:03:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14358330,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 19:03:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358330', 'tblTempUsageDetail_20' ) start [2025-01-29 19:03:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358330', 'tblTempUsageDetail_20' ) end [2025-01-29 19:03:25] Production.ERROR: pbx prc_insertCDR start [2025-01-29 19:03:26] Production.ERROR: pbx prc_insertCDR end [2025-01-29 19:03:26] Production.INFO: ==31774== Releasing lock... [2025-01-29 19:03:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 19:03:26] Production.INFO: 56.5 MB #Memory Used# [2025-01-29 19:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 16:04:05 [end_date_ymd] => 2025-01-29 19:04:05 [RateCDR] => 1 ) [2025-01-29 19:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 16:04:05' and `end` < '2025-01-29 19:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 19:04:20] Production.INFO: count ==3842 [2025-01-29 19:04:22] Production.ERROR: pbx CDR StartTime 2025-01-29 16:04:05 - End Time 2025-01-29 19:04:05 [2025-01-29 19:04:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 19:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358335', 'tblTempUsageDetail_20' ) start [2025-01-29 19:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358335', 'tblTempUsageDetail_20' ) end [2025-01-29 19:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358335', 'tblTempVendorCDR_20' ) start [2025-01-29 19:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358335', 'tblTempVendorCDR_20' ) end [2025-01-29 19:04:22] Production.INFO: ProcessCDR(1,14358335,1,1,2) [2025-01-29 19:04:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14358335,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 19:04:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14358335,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 19:04:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14358335,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 19:04:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14358335,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 19:04:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358335', 'tblTempUsageDetail_20' ) start [2025-01-29 19:04:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358335', 'tblTempUsageDetail_20' ) end [2025-01-29 19:04:26] Production.ERROR: pbx prc_insertCDR start [2025-01-29 19:04:26] Production.ERROR: pbx prc_insertCDR end [2025-01-29 19:04:26] Production.INFO: ==31882== Releasing lock... [2025-01-29 19:04:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 19:04:26] Production.INFO: 56.75 MB #Memory Used# [2025-01-29 19:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 16:05:05 [end_date_ymd] => 2025-01-29 19:05:05 [RateCDR] => 1 ) [2025-01-29 19:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 16:05:05' and `end` < '2025-01-29 19:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 19:05:20] Production.INFO: count ==3813 [2025-01-29 19:05:21] Production.ERROR: pbx CDR StartTime 2025-01-29 16:05:05 - End Time 2025-01-29 19:05:05 [2025-01-29 19:05:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 19:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358340', 'tblTempUsageDetail_20' ) start [2025-01-29 19:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358340', 'tblTempUsageDetail_20' ) end [2025-01-29 19:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358340', 'tblTempVendorCDR_20' ) start [2025-01-29 19:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358340', 'tblTempVendorCDR_20' ) end [2025-01-29 19:05:21] Production.INFO: ProcessCDR(1,14358340,1,1,2) [2025-01-29 19:05:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14358340,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 19:05:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14358340,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 19:05:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14358340,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 19:05:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14358340,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 19:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358340', 'tblTempUsageDetail_20' ) start [2025-01-29 19:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358340', 'tblTempUsageDetail_20' ) end [2025-01-29 19:05:24] Production.ERROR: pbx prc_insertCDR start [2025-01-29 19:05:24] Production.ERROR: pbx prc_insertCDR end [2025-01-29 19:05:24] Production.INFO: ==32059== Releasing lock... [2025-01-29 19:05:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 19:05:24] Production.INFO: 56.5 MB #Memory Used# [2025-01-29 19:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 16:06:05 [end_date_ymd] => 2025-01-29 19:06:05 [RateCDR] => 1 ) [2025-01-29 19:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 16:06:05' and `end` < '2025-01-29 19:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 19:06:19] Production.INFO: count ==3793 [2025-01-29 19:06:20] Production.ERROR: pbx CDR StartTime 2025-01-29 16:06:05 - End Time 2025-01-29 19:06:05 [2025-01-29 19:06:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 19:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358345', 'tblTempUsageDetail_20' ) start [2025-01-29 19:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358345', 'tblTempUsageDetail_20' ) end [2025-01-29 19:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358345', 'tblTempVendorCDR_20' ) start [2025-01-29 19:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358345', 'tblTempVendorCDR_20' ) end [2025-01-29 19:06:20] Production.INFO: ProcessCDR(1,14358345,1,1,2) [2025-01-29 19:06:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14358345,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 19:06:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14358345,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 19:06:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14358345,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 19:06:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14358345,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 19:06:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358345', 'tblTempUsageDetail_20' ) start [2025-01-29 19:06:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358345', 'tblTempUsageDetail_20' ) end [2025-01-29 19:06:25] Production.ERROR: pbx prc_insertCDR start [2025-01-29 19:06:25] Production.ERROR: pbx prc_insertCDR end [2025-01-29 19:06:25] Production.INFO: ==32159== Releasing lock... [2025-01-29 19:06:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 19:06:25] Production.INFO: 56.25 MB #Memory Used# [2025-01-29 19:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 16:07:05 [end_date_ymd] => 2025-01-29 19:07:05 [RateCDR] => 1 ) [2025-01-29 19:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 16:07:05' and `end` < '2025-01-29 19:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 19:07:21] Production.INFO: count ==3773 [2025-01-29 19:07:23] Production.ERROR: pbx CDR StartTime 2025-01-29 16:07:05 - End Time 2025-01-29 19:07:05 [2025-01-29 19:07:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 19:07:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358350', 'tblTempUsageDetail_20' ) start [2025-01-29 19:07:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358350', 'tblTempUsageDetail_20' ) end [2025-01-29 19:07:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358350', 'tblTempVendorCDR_20' ) start [2025-01-29 19:07:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358350', 'tblTempVendorCDR_20' ) end [2025-01-29 19:07:23] Production.INFO: ProcessCDR(1,14358350,1,1,2) [2025-01-29 19:07:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14358350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 19:07:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14358350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 19:07:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14358350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 19:07:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14358350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 19:07:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358350', 'tblTempUsageDetail_20' ) start [2025-01-29 19:07:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358350', 'tblTempUsageDetail_20' ) end [2025-01-29 19:07:27] Production.ERROR: pbx prc_insertCDR start [2025-01-29 19:07:27] Production.ERROR: pbx prc_insertCDR end [2025-01-29 19:07:27] Production.INFO: ==32261== Releasing lock... [2025-01-29 19:07:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 19:07:27] Production.INFO: 56.25 MB #Memory Used# [2025-01-29 19:08:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 16:08:04 [end_date_ymd] => 2025-01-29 19:08:04 [RateCDR] => 1 ) [2025-01-29 19:08:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 16:08:04' and `end` < '2025-01-29 19:08:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 19:08:18] Production.INFO: count ==3763 [2025-01-29 19:08:19] Production.ERROR: pbx CDR StartTime 2025-01-29 16:08:04 - End Time 2025-01-29 19:08:04 [2025-01-29 19:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 19:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358355', 'tblTempUsageDetail_20' ) start [2025-01-29 19:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358355', 'tblTempUsageDetail_20' ) end [2025-01-29 19:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358355', 'tblTempVendorCDR_20' ) start [2025-01-29 19:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358355', 'tblTempVendorCDR_20' ) end [2025-01-29 19:08:19] Production.INFO: ProcessCDR(1,14358355,1,1,2) [2025-01-29 19:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14358355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 19:08:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14358355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 19:08:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14358355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 19:08:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14358355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 19:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358355', 'tblTempUsageDetail_20' ) start [2025-01-29 19:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358355', 'tblTempUsageDetail_20' ) end [2025-01-29 19:08:24] Production.ERROR: pbx prc_insertCDR start [2025-01-29 19:08:24] Production.ERROR: pbx prc_insertCDR end [2025-01-29 19:08:24] Production.INFO: ==32439== Releasing lock... [2025-01-29 19:08:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 19:08:24] Production.INFO: 56 MB #Memory Used# [2025-01-29 19:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 16:09:05 [end_date_ymd] => 2025-01-29 19:09:05 [RateCDR] => 1 ) [2025-01-29 19:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 16:09:05' and `end` < '2025-01-29 19:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 19:09:18] Production.INFO: count ==3761 [2025-01-29 19:09:19] Production.ERROR: pbx CDR StartTime 2025-01-29 16:09:05 - End Time 2025-01-29 19:09:05 [2025-01-29 19:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 19:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358360', 'tblTempUsageDetail_20' ) start [2025-01-29 19:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358360', 'tblTempUsageDetail_20' ) end [2025-01-29 19:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358360', 'tblTempVendorCDR_20' ) start [2025-01-29 19:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358360', 'tblTempVendorCDR_20' ) end [2025-01-29 19:09:19] Production.INFO: ProcessCDR(1,14358360,1,1,2) [2025-01-29 19:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14358360,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 19:09:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14358360,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 19:09:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14358360,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 19:09:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14358360,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 19:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358360', 'tblTempUsageDetail_20' ) start [2025-01-29 19:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358360', 'tblTempUsageDetail_20' ) end [2025-01-29 19:09:24] Production.ERROR: pbx prc_insertCDR start [2025-01-29 19:09:24] Production.ERROR: pbx prc_insertCDR end [2025-01-29 19:09:24] Production.INFO: ==32538== Releasing lock... [2025-01-29 19:09:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 19:09:24] Production.INFO: 56 MB #Memory Used# [2025-01-29 19:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 16:10:06 [end_date_ymd] => 2025-01-29 19:10:06 [RateCDR] => 1 ) [2025-01-29 19:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 16:10:06' and `end` < '2025-01-29 19:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 19:10:19] Production.INFO: count ==3755 [2025-01-29 19:10:21] Production.ERROR: pbx CDR StartTime 2025-01-29 16:10:06 - End Time 2025-01-29 19:10:06 [2025-01-29 19:10:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 19:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358366', 'tblTempUsageDetail_20' ) start [2025-01-29 19:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358366', 'tblTempUsageDetail_20' ) end [2025-01-29 19:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358366', 'tblTempVendorCDR_20' ) start [2025-01-29 19:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358366', 'tblTempVendorCDR_20' ) end [2025-01-29 19:10:21] Production.INFO: ProcessCDR(1,14358366,1,1,2) [2025-01-29 19:10:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14358366,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 19:10:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14358366,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 19:10:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14358366,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 19:10:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14358366,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 19:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358366', 'tblTempUsageDetail_20' ) start [2025-01-29 19:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358366', 'tblTempUsageDetail_20' ) end [2025-01-29 19:10:24] Production.ERROR: pbx prc_insertCDR start [2025-01-29 19:10:24] Production.ERROR: pbx prc_insertCDR end [2025-01-29 19:10:24] Production.INFO: ==32641== Releasing lock... [2025-01-29 19:10:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 19:10:24] Production.INFO: 56.25 MB #Memory Used# [2025-01-29 19:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 16:11:05 [end_date_ymd] => 2025-01-29 19:11:05 [RateCDR] => 1 ) [2025-01-29 19:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 16:11:05' and `end` < '2025-01-29 19:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 19:11:19] Production.INFO: count ==3675 [2025-01-29 19:11:21] Production.ERROR: pbx CDR StartTime 2025-01-29 16:11:05 - End Time 2025-01-29 19:11:05 [2025-01-29 19:11:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 19:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358371', 'tblTempUsageDetail_20' ) start [2025-01-29 19:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358371', 'tblTempUsageDetail_20' ) end [2025-01-29 19:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358371', 'tblTempVendorCDR_20' ) start [2025-01-29 19:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358371', 'tblTempVendorCDR_20' ) end [2025-01-29 19:11:21] Production.INFO: ProcessCDR(1,14358371,1,1,2) [2025-01-29 19:11:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14358371,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 19:11:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14358371,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 19:11:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14358371,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 19:11:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14358371,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 19:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358371', 'tblTempUsageDetail_20' ) start [2025-01-29 19:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358371', 'tblTempUsageDetail_20' ) end [2025-01-29 19:11:24] Production.ERROR: pbx prc_insertCDR start [2025-01-29 19:11:24] Production.ERROR: pbx prc_insertCDR end [2025-01-29 19:11:24] Production.INFO: ==32739== Releasing lock... [2025-01-29 19:11:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 19:11:24] Production.INFO: 55.75 MB #Memory Used# [2025-01-29 19:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 16:12:06 [end_date_ymd] => 2025-01-29 19:12:06 [RateCDR] => 1 ) [2025-01-29 19:12:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 16:12:06' and `end` < '2025-01-29 19:12:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 19:12:19] Production.INFO: count ==3665 [2025-01-29 19:12:20] Production.ERROR: pbx CDR StartTime 2025-01-29 16:12:06 - End Time 2025-01-29 19:12:06 [2025-01-29 19:12:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 19:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358376', 'tblTempUsageDetail_20' ) start [2025-01-29 19:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358376', 'tblTempUsageDetail_20' ) end [2025-01-29 19:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358376', 'tblTempVendorCDR_20' ) start [2025-01-29 19:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358376', 'tblTempVendorCDR_20' ) end [2025-01-29 19:12:20] Production.INFO: ProcessCDR(1,14358376,1,1,2) [2025-01-29 19:12:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14358376,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 19:12:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14358376,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 19:12:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14358376,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 19:12:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14358376,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 19:12:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358376', 'tblTempUsageDetail_20' ) start [2025-01-29 19:12:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358376', 'tblTempUsageDetail_20' ) end [2025-01-29 19:12:25] Production.ERROR: pbx prc_insertCDR start [2025-01-29 19:12:25] Production.ERROR: pbx prc_insertCDR end [2025-01-29 19:12:25] Production.INFO: ==469== Releasing lock... [2025-01-29 19:12:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 19:12:25] Production.INFO: 55.25 MB #Memory Used# [2025-01-29 19:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 16:13:05 [end_date_ymd] => 2025-01-29 19:13:05 [RateCDR] => 1 ) [2025-01-29 19:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 16:13:05' and `end` < '2025-01-29 19:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 19:13:18] Production.INFO: count ==3650 [2025-01-29 19:13:19] Production.ERROR: pbx CDR StartTime 2025-01-29 16:13:05 - End Time 2025-01-29 19:13:05 [2025-01-29 19:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 19:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358381', 'tblTempUsageDetail_20' ) start [2025-01-29 19:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358381', 'tblTempUsageDetail_20' ) end [2025-01-29 19:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358381', 'tblTempVendorCDR_20' ) start [2025-01-29 19:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358381', 'tblTempVendorCDR_20' ) end [2025-01-29 19:13:19] Production.INFO: ProcessCDR(1,14358381,1,1,2) [2025-01-29 19:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14358381,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 19:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14358381,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 19:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14358381,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 19:13:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14358381,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 19:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358381', 'tblTempUsageDetail_20' ) start [2025-01-29 19:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358381', 'tblTempUsageDetail_20' ) end [2025-01-29 19:13:23] Production.ERROR: pbx prc_insertCDR start [2025-01-29 19:13:23] Production.ERROR: pbx prc_insertCDR end [2025-01-29 19:13:23] Production.INFO: ==573== Releasing lock... [2025-01-29 19:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 19:13:23] Production.INFO: 55.5 MB #Memory Used# [2025-01-29 19:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 16:14:05 [end_date_ymd] => 2025-01-29 19:14:05 [RateCDR] => 1 ) [2025-01-29 19:14:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 16:14:05' and `end` < '2025-01-29 19:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 19:14:19] Production.INFO: count ==3642 [2025-01-29 19:14:21] Production.ERROR: pbx CDR StartTime 2025-01-29 16:14:05 - End Time 2025-01-29 19:14:05 [2025-01-29 19:14:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 19:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358386', 'tblTempUsageDetail_20' ) start [2025-01-29 19:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358386', 'tblTempUsageDetail_20' ) end [2025-01-29 19:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358386', 'tblTempVendorCDR_20' ) start [2025-01-29 19:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358386', 'tblTempVendorCDR_20' ) end [2025-01-29 19:14:21] Production.INFO: ProcessCDR(1,14358386,1,1,2) [2025-01-29 19:14:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14358386,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 19:14:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14358386,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 19:14:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14358386,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 19:14:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14358386,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 19:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358386', 'tblTempUsageDetail_20' ) start [2025-01-29 19:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358386', 'tblTempUsageDetail_20' ) end [2025-01-29 19:14:24] Production.ERROR: pbx prc_insertCDR start [2025-01-29 19:14:24] Production.ERROR: pbx prc_insertCDR end [2025-01-29 19:14:24] Production.INFO: ==706== Releasing lock... [2025-01-29 19:14:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 19:14:24] Production.INFO: 55.5 MB #Memory Used# [2025-01-29 19:15:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 16:15:04 [end_date_ymd] => 2025-01-29 19:15:04 [RateCDR] => 1 ) [2025-01-29 19:15:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 16:15:04' and `end` < '2025-01-29 19:15:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 19:15:19] Production.INFO: count ==3627 [2025-01-29 19:15:20] Production.ERROR: pbx CDR StartTime 2025-01-29 16:15:04 - End Time 2025-01-29 19:15:04 [2025-01-29 19:15:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 19:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358391', 'tblTempUsageDetail_20' ) start [2025-01-29 19:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358391', 'tblTempUsageDetail_20' ) end [2025-01-29 19:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358391', 'tblTempVendorCDR_20' ) start [2025-01-29 19:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358391', 'tblTempVendorCDR_20' ) end [2025-01-29 19:15:20] Production.INFO: ProcessCDR(1,14358391,1,1,2) [2025-01-29 19:15:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14358391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 19:15:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14358391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 19:15:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14358391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 19:15:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14358391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 19:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358391', 'tblTempUsageDetail_20' ) start [2025-01-29 19:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358391', 'tblTempUsageDetail_20' ) end [2025-01-29 19:15:25] Production.ERROR: pbx prc_insertCDR start [2025-01-29 19:15:25] Production.ERROR: pbx prc_insertCDR end [2025-01-29 19:15:25] Production.INFO: ==877== Releasing lock... [2025-01-29 19:15:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 19:15:25] Production.INFO: 55.25 MB #Memory Used# [2025-01-29 19:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 16:16:05 [end_date_ymd] => 2025-01-29 19:16:05 [RateCDR] => 1 ) [2025-01-29 19:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 16:16:05' and `end` < '2025-01-29 19:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 19:16:20] Production.INFO: count ==3623 [2025-01-29 19:16:21] Production.ERROR: pbx CDR StartTime 2025-01-29 16:16:05 - End Time 2025-01-29 19:16:05 [2025-01-29 19:16:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 19:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358396', 'tblTempUsageDetail_20' ) start [2025-01-29 19:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358396', 'tblTempUsageDetail_20' ) end [2025-01-29 19:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358396', 'tblTempVendorCDR_20' ) start [2025-01-29 19:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358396', 'tblTempVendorCDR_20' ) end [2025-01-29 19:16:21] Production.INFO: ProcessCDR(1,14358396,1,1,2) [2025-01-29 19:16:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14358396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 19:16:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14358396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 19:16:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14358396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 19:16:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14358396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 19:16:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358396', 'tblTempUsageDetail_20' ) start [2025-01-29 19:16:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358396', 'tblTempUsageDetail_20' ) end [2025-01-29 19:16:26] Production.ERROR: pbx prc_insertCDR start [2025-01-29 19:16:26] Production.ERROR: pbx prc_insertCDR end [2025-01-29 19:16:26] Production.INFO: ==950== Releasing lock... [2025-01-29 19:16:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 19:16:26] Production.INFO: 55.5 MB #Memory Used# [2025-01-29 19:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 16:17:05 [end_date_ymd] => 2025-01-29 19:17:05 [RateCDR] => 1 ) [2025-01-29 19:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 16:17:05' and `end` < '2025-01-29 19:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 19:17:18] Production.INFO: count ==3611 [2025-01-29 19:17:19] Production.ERROR: pbx CDR StartTime 2025-01-29 16:17:05 - End Time 2025-01-29 19:17:05 [2025-01-29 19:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 19:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358401', 'tblTempUsageDetail_20' ) start [2025-01-29 19:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358401', 'tblTempUsageDetail_20' ) end [2025-01-29 19:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358401', 'tblTempVendorCDR_20' ) start [2025-01-29 19:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358401', 'tblTempVendorCDR_20' ) end [2025-01-29 19:17:19] Production.INFO: ProcessCDR(1,14358401,1,1,2) [2025-01-29 19:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14358401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 19:17:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14358401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 19:17:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14358401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 19:17:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14358401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 19:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358401', 'tblTempUsageDetail_20' ) start [2025-01-29 19:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358401', 'tblTempUsageDetail_20' ) end [2025-01-29 19:17:24] Production.ERROR: pbx prc_insertCDR start [2025-01-29 19:17:24] Production.ERROR: pbx prc_insertCDR end [2025-01-29 19:17:24] Production.INFO: ==1061== Releasing lock... [2025-01-29 19:17:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 19:17:24] Production.INFO: 55.5 MB #Memory Used# [2025-01-29 19:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 16:18:05 [end_date_ymd] => 2025-01-29 19:18:05 [RateCDR] => 1 ) [2025-01-29 19:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 16:18:05' and `end` < '2025-01-29 19:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 19:18:18] Production.INFO: count ==3597 [2025-01-29 19:18:20] Production.ERROR: pbx CDR StartTime 2025-01-29 16:18:05 - End Time 2025-01-29 19:18:05 [2025-01-29 19:18:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 19:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358406', 'tblTempUsageDetail_20' ) start [2025-01-29 19:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358406', 'tblTempUsageDetail_20' ) end [2025-01-29 19:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358406', 'tblTempVendorCDR_20' ) start [2025-01-29 19:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358406', 'tblTempVendorCDR_20' ) end [2025-01-29 19:18:20] Production.INFO: ProcessCDR(1,14358406,1,1,2) [2025-01-29 19:18:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14358406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 19:18:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14358406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 19:18:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14358406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 19:18:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14358406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 19:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358406', 'tblTempUsageDetail_20' ) start [2025-01-29 19:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358406', 'tblTempUsageDetail_20' ) end [2025-01-29 19:18:23] Production.ERROR: pbx prc_insertCDR start [2025-01-29 19:18:23] Production.ERROR: pbx prc_insertCDR end [2025-01-29 19:18:23] Production.INFO: ==1134== Releasing lock... [2025-01-29 19:18:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 19:18:23] Production.INFO: 55.25 MB #Memory Used# [2025-01-29 19:19:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 16:19:04 [end_date_ymd] => 2025-01-29 19:19:04 [RateCDR] => 1 ) [2025-01-29 19:19:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 16:19:04' and `end` < '2025-01-29 19:19:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 19:19:18] Production.INFO: count ==3565 [2025-01-29 19:19:19] Production.ERROR: pbx CDR StartTime 2025-01-29 16:19:04 - End Time 2025-01-29 19:19:04 [2025-01-29 19:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 19:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358411', 'tblTempUsageDetail_20' ) start [2025-01-29 19:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358411', 'tblTempUsageDetail_20' ) end [2025-01-29 19:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358411', 'tblTempVendorCDR_20' ) start [2025-01-29 19:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358411', 'tblTempVendorCDR_20' ) end [2025-01-29 19:19:19] Production.INFO: ProcessCDR(1,14358411,1,1,2) [2025-01-29 19:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14358411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 19:19:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14358411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 19:19:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14358411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 19:19:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14358411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 19:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358411', 'tblTempUsageDetail_20' ) start [2025-01-29 19:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358411', 'tblTempUsageDetail_20' ) end [2025-01-29 19:19:23] Production.ERROR: pbx prc_insertCDR start [2025-01-29 19:19:23] Production.ERROR: pbx prc_insertCDR end [2025-01-29 19:19:23] Production.INFO: ==1217== Releasing lock... [2025-01-29 19:19:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 19:19:23] Production.INFO: 54.5 MB #Memory Used# [2025-01-29 19:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 16:20:06 [end_date_ymd] => 2025-01-29 19:20:06 [RateCDR] => 1 ) [2025-01-29 19:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 16:20:06' and `end` < '2025-01-29 19:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 19:20:19] Production.INFO: count ==3550 [2025-01-29 19:20:20] Production.ERROR: pbx CDR StartTime 2025-01-29 16:20:06 - End Time 2025-01-29 19:20:06 [2025-01-29 19:20:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 19:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358417', 'tblTempUsageDetail_20' ) start [2025-01-29 19:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358417', 'tblTempUsageDetail_20' ) end [2025-01-29 19:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358417', 'tblTempVendorCDR_20' ) start [2025-01-29 19:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358417', 'tblTempVendorCDR_20' ) end [2025-01-29 19:20:20] Production.INFO: ProcessCDR(1,14358417,1,1,2) [2025-01-29 19:20:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14358417,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 19:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14358417,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 19:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14358417,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 19:20:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14358417,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 19:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358417', 'tblTempUsageDetail_20' ) start [2025-01-29 19:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358417', 'tblTempUsageDetail_20' ) end [2025-01-29 19:20:24] Production.ERROR: pbx prc_insertCDR start [2025-01-29 19:20:24] Production.ERROR: pbx prc_insertCDR end [2025-01-29 19:20:24] Production.INFO: ==1307== Releasing lock... [2025-01-29 19:20:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 19:20:24] Production.INFO: 54.5 MB #Memory Used# [2025-01-29 19:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 16:21:05 [end_date_ymd] => 2025-01-29 19:21:05 [RateCDR] => 1 ) [2025-01-29 19:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 16:21:05' and `end` < '2025-01-29 19:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 19:21:19] Production.INFO: count ==3483 [2025-01-29 19:21:20] Production.ERROR: pbx CDR StartTime 2025-01-29 16:21:05 - End Time 2025-01-29 19:21:05 [2025-01-29 19:21:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 19:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358422', 'tblTempUsageDetail_20' ) start [2025-01-29 19:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358422', 'tblTempUsageDetail_20' ) end [2025-01-29 19:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358422', 'tblTempVendorCDR_20' ) start [2025-01-29 19:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358422', 'tblTempVendorCDR_20' ) end [2025-01-29 19:21:20] Production.INFO: ProcessCDR(1,14358422,1,1,2) [2025-01-29 19:21:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14358422,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 19:21:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14358422,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 19:21:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14358422,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 19:21:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14358422,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 19:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358422', 'tblTempUsageDetail_20' ) start [2025-01-29 19:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358422', 'tblTempUsageDetail_20' ) end [2025-01-29 19:21:23] Production.ERROR: pbx prc_insertCDR start [2025-01-29 19:21:23] Production.ERROR: pbx prc_insertCDR end [2025-01-29 19:21:23] Production.INFO: ==1385== Releasing lock... [2025-01-29 19:21:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 19:21:23] Production.INFO: 54 MB #Memory Used# [2025-01-29 19:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 16:22:06 [end_date_ymd] => 2025-01-29 19:22:06 [RateCDR] => 1 ) [2025-01-29 19:22:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 16:22:06' and `end` < '2025-01-29 19:22:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 19:22:19] Production.INFO: count ==3478 [2025-01-29 19:22:20] Production.ERROR: pbx CDR StartTime 2025-01-29 16:22:06 - End Time 2025-01-29 19:22:06 [2025-01-29 19:22:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 19:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358427', 'tblTempUsageDetail_20' ) start [2025-01-29 19:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358427', 'tblTempUsageDetail_20' ) end [2025-01-29 19:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358427', 'tblTempVendorCDR_20' ) start [2025-01-29 19:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358427', 'tblTempVendorCDR_20' ) end [2025-01-29 19:22:20] Production.INFO: ProcessCDR(1,14358427,1,1,2) [2025-01-29 19:22:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14358427,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 19:22:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14358427,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 19:22:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14358427,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 19:22:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14358427,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 19:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358427', 'tblTempUsageDetail_20' ) start [2025-01-29 19:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358427', 'tblTempUsageDetail_20' ) end [2025-01-29 19:22:23] Production.ERROR: pbx prc_insertCDR start [2025-01-29 19:22:23] Production.ERROR: pbx prc_insertCDR end [2025-01-29 19:22:23] Production.INFO: ==1456== Releasing lock... [2025-01-29 19:22:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 19:22:23] Production.INFO: 54 MB #Memory Used# [2025-01-29 19:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 16:23:05 [end_date_ymd] => 2025-01-29 19:23:05 [RateCDR] => 1 ) [2025-01-29 19:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 16:23:05' and `end` < '2025-01-29 19:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 19:23:18] Production.INFO: count ==3452 [2025-01-29 19:23:19] Production.ERROR: pbx CDR StartTime 2025-01-29 16:23:05 - End Time 2025-01-29 19:23:05 [2025-01-29 19:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 19:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358432', 'tblTempUsageDetail_20' ) start [2025-01-29 19:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358432', 'tblTempUsageDetail_20' ) end [2025-01-29 19:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358432', 'tblTempVendorCDR_20' ) start [2025-01-29 19:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358432', 'tblTempVendorCDR_20' ) end [2025-01-29 19:23:19] Production.INFO: ProcessCDR(1,14358432,1,1,2) [2025-01-29 19:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14358432,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 19:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14358432,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 19:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14358432,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 19:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14358432,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 19:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358432', 'tblTempUsageDetail_20' ) start [2025-01-29 19:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358432', 'tblTempUsageDetail_20' ) end [2025-01-29 19:23:22] Production.ERROR: pbx prc_insertCDR start [2025-01-29 19:23:22] Production.ERROR: pbx prc_insertCDR end [2025-01-29 19:23:22] Production.INFO: ==1561== Releasing lock... [2025-01-29 19:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 19:23:22] Production.INFO: 53.75 MB #Memory Used# [2025-01-29 19:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 16:24:05 [end_date_ymd] => 2025-01-29 19:24:05 [RateCDR] => 1 ) [2025-01-29 19:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 16:24:05' and `end` < '2025-01-29 19:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 19:24:21] Production.INFO: count ==3444 [2025-01-29 19:24:22] Production.ERROR: pbx CDR StartTime 2025-01-29 16:24:05 - End Time 2025-01-29 19:24:05 [2025-01-29 19:24:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 19:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358437', 'tblTempUsageDetail_20' ) start [2025-01-29 19:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358437', 'tblTempUsageDetail_20' ) end [2025-01-29 19:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358437', 'tblTempVendorCDR_20' ) start [2025-01-29 19:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358437', 'tblTempVendorCDR_20' ) end [2025-01-29 19:24:22] Production.INFO: ProcessCDR(1,14358437,1,1,2) [2025-01-29 19:24:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14358437,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 19:24:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14358437,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 19:24:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14358437,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 19:24:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14358437,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 19:24:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358437', 'tblTempUsageDetail_20' ) start [2025-01-29 19:24:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358437', 'tblTempUsageDetail_20' ) end [2025-01-29 19:24:26] Production.ERROR: pbx prc_insertCDR start [2025-01-29 19:24:26] Production.ERROR: pbx prc_insertCDR end [2025-01-29 19:24:26] Production.INFO: ==1635== Releasing lock... [2025-01-29 19:24:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 19:24:26] Production.INFO: 54.5 MB #Memory Used# [2025-01-29 19:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 16:25:05 [end_date_ymd] => 2025-01-29 19:25:05 [RateCDR] => 1 ) [2025-01-29 19:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 16:25:05' and `end` < '2025-01-29 19:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 19:25:19] Production.INFO: count ==3420 [2025-01-29 19:25:20] Production.ERROR: pbx CDR StartTime 2025-01-29 16:25:05 - End Time 2025-01-29 19:25:05 [2025-01-29 19:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 19:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358442', 'tblTempUsageDetail_20' ) start [2025-01-29 19:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358442', 'tblTempUsageDetail_20' ) end [2025-01-29 19:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358442', 'tblTempVendorCDR_20' ) start [2025-01-29 19:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358442', 'tblTempVendorCDR_20' ) end [2025-01-29 19:25:20] Production.INFO: ProcessCDR(1,14358442,1,1,2) [2025-01-29 19:25:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14358442,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 19:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14358442,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 19:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14358442,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 19:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14358442,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 19:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358442', 'tblTempUsageDetail_20' ) start [2025-01-29 19:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358442', 'tblTempUsageDetail_20' ) end [2025-01-29 19:25:24] Production.ERROR: pbx prc_insertCDR start [2025-01-29 19:25:24] Production.ERROR: pbx prc_insertCDR end [2025-01-29 19:25:24] Production.INFO: ==1712== Releasing lock... [2025-01-29 19:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 19:25:24] Production.INFO: 54 MB #Memory Used# [2025-01-29 19:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 16:26:05 [end_date_ymd] => 2025-01-29 19:26:05 [RateCDR] => 1 ) [2025-01-29 19:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 16:26:05' and `end` < '2025-01-29 19:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 19:26:18] Production.INFO: count ==3384 [2025-01-29 19:26:19] Production.ERROR: pbx CDR StartTime 2025-01-29 16:26:05 - End Time 2025-01-29 19:26:05 [2025-01-29 19:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 19:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358447', 'tblTempUsageDetail_20' ) start [2025-01-29 19:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358447', 'tblTempUsageDetail_20' ) end [2025-01-29 19:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358447', 'tblTempVendorCDR_20' ) start [2025-01-29 19:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358447', 'tblTempVendorCDR_20' ) end [2025-01-29 19:26:19] Production.INFO: ProcessCDR(1,14358447,1,1,2) [2025-01-29 19:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14358447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 19:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14358447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 19:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14358447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 19:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14358447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 19:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358447', 'tblTempUsageDetail_20' ) start [2025-01-29 19:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358447', 'tblTempUsageDetail_20' ) end [2025-01-29 19:26:23] Production.ERROR: pbx prc_insertCDR start [2025-01-29 19:26:23] Production.ERROR: pbx prc_insertCDR end [2025-01-29 19:26:23] Production.INFO: ==1786== Releasing lock... [2025-01-29 19:26:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 19:26:23] Production.INFO: 53.25 MB #Memory Used# [2025-01-29 19:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 16:27:05 [end_date_ymd] => 2025-01-29 19:27:05 [RateCDR] => 1 ) [2025-01-29 19:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 16:27:05' and `end` < '2025-01-29 19:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 19:27:18] Production.INFO: count ==3372 [2025-01-29 19:27:19] Production.ERROR: pbx CDR StartTime 2025-01-29 16:27:05 - End Time 2025-01-29 19:27:05 [2025-01-29 19:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 19:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358452', 'tblTempUsageDetail_20' ) start [2025-01-29 19:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358452', 'tblTempUsageDetail_20' ) end [2025-01-29 19:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358452', 'tblTempVendorCDR_20' ) start [2025-01-29 19:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358452', 'tblTempVendorCDR_20' ) end [2025-01-29 19:27:19] Production.INFO: ProcessCDR(1,14358452,1,1,2) [2025-01-29 19:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14358452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 19:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14358452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 19:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14358452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 19:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14358452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 19:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358452', 'tblTempUsageDetail_20' ) start [2025-01-29 19:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358452', 'tblTempUsageDetail_20' ) end [2025-01-29 19:27:22] Production.ERROR: pbx prc_insertCDR start [2025-01-29 19:27:22] Production.ERROR: pbx prc_insertCDR end [2025-01-29 19:27:22] Production.INFO: ==1864== Releasing lock... [2025-01-29 19:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 19:27:22] Production.INFO: 53.5 MB #Memory Used# [2025-01-29 19:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 16:28:05 [end_date_ymd] => 2025-01-29 19:28:05 [RateCDR] => 1 ) [2025-01-29 19:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 16:28:05' and `end` < '2025-01-29 19:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 19:28:18] Production.INFO: count ==3346 [2025-01-29 19:28:19] Production.ERROR: pbx CDR StartTime 2025-01-29 16:28:05 - End Time 2025-01-29 19:28:05 [2025-01-29 19:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 19:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358457', 'tblTempUsageDetail_20' ) start [2025-01-29 19:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358457', 'tblTempUsageDetail_20' ) end [2025-01-29 19:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358457', 'tblTempVendorCDR_20' ) start [2025-01-29 19:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358457', 'tblTempVendorCDR_20' ) end [2025-01-29 19:28:19] Production.INFO: ProcessCDR(1,14358457,1,1,2) [2025-01-29 19:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14358457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 19:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14358457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 19:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14358457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 19:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14358457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 19:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358457', 'tblTempUsageDetail_20' ) start [2025-01-29 19:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358457', 'tblTempUsageDetail_20' ) end [2025-01-29 19:28:22] Production.ERROR: pbx prc_insertCDR start [2025-01-29 19:28:22] Production.ERROR: pbx prc_insertCDR end [2025-01-29 19:28:22] Production.INFO: ==1939== Releasing lock... [2025-01-29 19:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 19:28:22] Production.INFO: 53.25 MB #Memory Used# [2025-01-29 19:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 16:29:05 [end_date_ymd] => 2025-01-29 19:29:05 [RateCDR] => 1 ) [2025-01-29 19:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 16:29:05' and `end` < '2025-01-29 19:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 19:29:19] Production.INFO: count ==3325 [2025-01-29 19:29:20] Production.ERROR: pbx CDR StartTime 2025-01-29 16:29:05 - End Time 2025-01-29 19:29:05 [2025-01-29 19:29:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 19:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358462', 'tblTempUsageDetail_20' ) start [2025-01-29 19:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358462', 'tblTempUsageDetail_20' ) end [2025-01-29 19:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358462', 'tblTempVendorCDR_20' ) start [2025-01-29 19:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358462', 'tblTempVendorCDR_20' ) end [2025-01-29 19:29:20] Production.INFO: ProcessCDR(1,14358462,1,1,2) [2025-01-29 19:29:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14358462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 19:29:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14358462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 19:29:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14358462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 19:29:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14358462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 19:29:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358462', 'tblTempUsageDetail_20' ) start [2025-01-29 19:29:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358462', 'tblTempUsageDetail_20' ) end [2025-01-29 19:29:25] Production.ERROR: pbx prc_insertCDR start [2025-01-29 19:29:25] Production.ERROR: pbx prc_insertCDR end [2025-01-29 19:29:25] Production.INFO: ==2015== Releasing lock... [2025-01-29 19:29:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 19:29:25] Production.INFO: 52.75 MB #Memory Used# [2025-01-29 19:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 16:30:05 [end_date_ymd] => 2025-01-29 19:30:05 [RateCDR] => 1 ) [2025-01-29 19:30:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 16:30:05' and `end` < '2025-01-29 19:30:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 19:30:18] Production.INFO: count ==3326 [2025-01-29 19:30:19] Production.ERROR: pbx CDR StartTime 2025-01-29 16:30:05 - End Time 2025-01-29 19:30:05 [2025-01-29 19:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 19:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358467', 'tblTempUsageDetail_20' ) start [2025-01-29 19:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358467', 'tblTempUsageDetail_20' ) end [2025-01-29 19:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358467', 'tblTempVendorCDR_20' ) start [2025-01-29 19:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358467', 'tblTempVendorCDR_20' ) end [2025-01-29 19:30:20] Production.INFO: ProcessCDR(1,14358467,1,1,2) [2025-01-29 19:30:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14358467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 19:30:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14358467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 19:30:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14358467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 19:30:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14358467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 19:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358467', 'tblTempUsageDetail_20' ) start [2025-01-29 19:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358467', 'tblTempUsageDetail_20' ) end [2025-01-29 19:30:24] Production.ERROR: pbx prc_insertCDR start [2025-01-29 19:30:24] Production.ERROR: pbx prc_insertCDR end [2025-01-29 19:30:24] Production.INFO: ==2095== Releasing lock... [2025-01-29 19:30:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 19:30:24] Production.INFO: 53 MB #Memory Used# [2025-01-29 19:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 16:31:06 [end_date_ymd] => 2025-01-29 19:31:06 [RateCDR] => 1 ) [2025-01-29 19:31:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 16:31:06' and `end` < '2025-01-29 19:31:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 19:31:19] Production.INFO: count ==3263 [2025-01-29 19:31:20] Production.ERROR: pbx CDR StartTime 2025-01-29 16:31:06 - End Time 2025-01-29 19:31:06 [2025-01-29 19:31:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 19:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358473', 'tblTempUsageDetail_20' ) start [2025-01-29 19:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358473', 'tblTempUsageDetail_20' ) end [2025-01-29 19:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358473', 'tblTempVendorCDR_20' ) start [2025-01-29 19:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358473', 'tblTempVendorCDR_20' ) end [2025-01-29 19:31:20] Production.INFO: ProcessCDR(1,14358473,1,1,2) [2025-01-29 19:31:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14358473,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 19:31:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14358473,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 19:31:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14358473,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 19:31:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14358473,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 19:31:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358473', 'tblTempUsageDetail_20' ) start [2025-01-29 19:31:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358473', 'tblTempUsageDetail_20' ) end [2025-01-29 19:31:25] Production.ERROR: pbx prc_insertCDR start [2025-01-29 19:31:25] Production.ERROR: pbx prc_insertCDR end [2025-01-29 19:31:25] Production.INFO: ==2177== Releasing lock... [2025-01-29 19:31:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 19:31:25] Production.INFO: 52.25 MB #Memory Used# [2025-01-29 19:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 16:32:05 [end_date_ymd] => 2025-01-29 19:32:05 [RateCDR] => 1 ) [2025-01-29 19:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 16:32:05' and `end` < '2025-01-29 19:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 19:32:18] Production.INFO: count ==3263 [2025-01-29 19:32:19] Production.ERROR: pbx CDR StartTime 2025-01-29 16:32:05 - End Time 2025-01-29 19:32:05 [2025-01-29 19:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 19:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358478', 'tblTempUsageDetail_20' ) start [2025-01-29 19:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358478', 'tblTempUsageDetail_20' ) end [2025-01-29 19:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358478', 'tblTempVendorCDR_20' ) start [2025-01-29 19:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358478', 'tblTempVendorCDR_20' ) end [2025-01-29 19:32:19] Production.INFO: ProcessCDR(1,14358478,1,1,2) [2025-01-29 19:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14358478,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 19:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14358478,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 19:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14358478,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 19:32:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14358478,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 19:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358478', 'tblTempUsageDetail_20' ) start [2025-01-29 19:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358478', 'tblTempUsageDetail_20' ) end [2025-01-29 19:32:23] Production.ERROR: pbx prc_insertCDR start [2025-01-29 19:32:23] Production.ERROR: pbx prc_insertCDR end [2025-01-29 19:32:23] Production.INFO: ==2296== Releasing lock... [2025-01-29 19:32:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 19:32:23] Production.INFO: 52.5 MB #Memory Used# [2025-01-29 19:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 16:33:05 [end_date_ymd] => 2025-01-29 19:33:05 [RateCDR] => 1 ) [2025-01-29 19:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 16:33:05' and `end` < '2025-01-29 19:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 19:33:20] Production.INFO: count ==3261 [2025-01-29 19:33:21] Production.ERROR: pbx CDR StartTime 2025-01-29 16:33:05 - End Time 2025-01-29 19:33:05 [2025-01-29 19:33:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 19:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358483', 'tblTempUsageDetail_20' ) start [2025-01-29 19:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358483', 'tblTempUsageDetail_20' ) end [2025-01-29 19:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358483', 'tblTempVendorCDR_20' ) start [2025-01-29 19:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358483', 'tblTempVendorCDR_20' ) end [2025-01-29 19:33:21] Production.INFO: ProcessCDR(1,14358483,1,1,2) [2025-01-29 19:33:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14358483,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 19:33:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14358483,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 19:33:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14358483,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 19:33:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14358483,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 19:33:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358483', 'tblTempUsageDetail_20' ) start [2025-01-29 19:33:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358483', 'tblTempUsageDetail_20' ) end [2025-01-29 19:33:25] Production.ERROR: pbx prc_insertCDR start [2025-01-29 19:33:25] Production.ERROR: pbx prc_insertCDR end [2025-01-29 19:33:25] Production.INFO: ==2378== Releasing lock... [2025-01-29 19:33:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 19:33:25] Production.INFO: 52.25 MB #Memory Used# [2025-01-29 19:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 16:34:05 [end_date_ymd] => 2025-01-29 19:34:05 [RateCDR] => 1 ) [2025-01-29 19:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 16:34:05' and `end` < '2025-01-29 19:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 19:34:19] Production.INFO: count ==3242 [2025-01-29 19:34:20] Production.ERROR: pbx CDR StartTime 2025-01-29 16:34:05 - End Time 2025-01-29 19:34:05 [2025-01-29 19:34:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 19:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358488', 'tblTempUsageDetail_20' ) start [2025-01-29 19:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358488', 'tblTempUsageDetail_20' ) end [2025-01-29 19:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358488', 'tblTempVendorCDR_20' ) start [2025-01-29 19:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358488', 'tblTempVendorCDR_20' ) end [2025-01-29 19:34:20] Production.INFO: ProcessCDR(1,14358488,1,1,2) [2025-01-29 19:34:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14358488,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 19:34:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14358488,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 19:34:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14358488,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 19:34:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14358488,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 19:34:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358488', 'tblTempUsageDetail_20' ) start [2025-01-29 19:34:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358488', 'tblTempUsageDetail_20' ) end [2025-01-29 19:34:25] Production.ERROR: pbx prc_insertCDR start [2025-01-29 19:34:25] Production.ERROR: pbx prc_insertCDR end [2025-01-29 19:34:25] Production.INFO: ==2464== Releasing lock... [2025-01-29 19:34:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 19:34:25] Production.INFO: 52.25 MB #Memory Used# [2025-01-29 19:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 16:35:05 [end_date_ymd] => 2025-01-29 19:35:05 [RateCDR] => 1 ) [2025-01-29 19:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 16:35:05' and `end` < '2025-01-29 19:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 19:35:18] Production.INFO: count ==3234 [2025-01-29 19:35:19] Production.ERROR: pbx CDR StartTime 2025-01-29 16:35:05 - End Time 2025-01-29 19:35:05 [2025-01-29 19:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 19:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358492', 'tblTempUsageDetail_20' ) start [2025-01-29 19:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358492', 'tblTempUsageDetail_20' ) end [2025-01-29 19:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358492', 'tblTempVendorCDR_20' ) start [2025-01-29 19:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358492', 'tblTempVendorCDR_20' ) end [2025-01-29 19:35:19] Production.INFO: ProcessCDR(1,14358492,1,1,2) [2025-01-29 19:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14358492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 19:35:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14358492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 19:35:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14358492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 19:35:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14358492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 19:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358492', 'tblTempUsageDetail_20' ) start [2025-01-29 19:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358492', 'tblTempUsageDetail_20' ) end [2025-01-29 19:35:24] Production.ERROR: pbx prc_insertCDR start [2025-01-29 19:35:24] Production.ERROR: pbx prc_insertCDR end [2025-01-29 19:35:24] Production.INFO: ==2546== Releasing lock... [2025-01-29 19:35:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 19:35:24] Production.INFO: 52 MB #Memory Used# [2025-01-29 19:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 16:36:06 [end_date_ymd] => 2025-01-29 19:36:06 [RateCDR] => 1 ) [2025-01-29 19:36:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 16:36:06' and `end` < '2025-01-29 19:36:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 19:36:19] Production.INFO: count ==3234 [2025-01-29 19:36:20] Production.ERROR: pbx CDR StartTime 2025-01-29 16:36:06 - End Time 2025-01-29 19:36:06 [2025-01-29 19:36:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 19:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358498', 'tblTempUsageDetail_20' ) start [2025-01-29 19:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358498', 'tblTempUsageDetail_20' ) end [2025-01-29 19:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358498', 'tblTempVendorCDR_20' ) start [2025-01-29 19:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358498', 'tblTempVendorCDR_20' ) end [2025-01-29 19:36:20] Production.INFO: ProcessCDR(1,14358498,1,1,2) [2025-01-29 19:36:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14358498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 19:36:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14358498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 19:36:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14358498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 19:36:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14358498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 19:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358498', 'tblTempUsageDetail_20' ) start [2025-01-29 19:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358498', 'tblTempUsageDetail_20' ) end [2025-01-29 19:36:24] Production.ERROR: pbx prc_insertCDR start [2025-01-29 19:36:25] Production.ERROR: pbx prc_insertCDR end [2025-01-29 19:36:25] Production.INFO: ==2626== Releasing lock... [2025-01-29 19:36:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 19:36:25] Production.INFO: 52.5 MB #Memory Used# [2025-01-29 19:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 16:37:05 [end_date_ymd] => 2025-01-29 19:37:05 [RateCDR] => 1 ) [2025-01-29 19:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 16:37:05' and `end` < '2025-01-29 19:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 19:37:18] Production.INFO: count ==3220 [2025-01-29 19:37:19] Production.ERROR: pbx CDR StartTime 2025-01-29 16:37:05 - End Time 2025-01-29 19:37:05 [2025-01-29 19:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 19:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358503', 'tblTempUsageDetail_20' ) start [2025-01-29 19:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358503', 'tblTempUsageDetail_20' ) end [2025-01-29 19:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358503', 'tblTempVendorCDR_20' ) start [2025-01-29 19:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358503', 'tblTempVendorCDR_20' ) end [2025-01-29 19:37:19] Production.INFO: ProcessCDR(1,14358503,1,1,2) [2025-01-29 19:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14358503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 19:37:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14358503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 19:37:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14358503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 19:37:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14358503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 19:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358503', 'tblTempUsageDetail_20' ) start [2025-01-29 19:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358503', 'tblTempUsageDetail_20' ) end [2025-01-29 19:37:24] Production.ERROR: pbx prc_insertCDR start [2025-01-29 19:37:24] Production.ERROR: pbx prc_insertCDR end [2025-01-29 19:37:24] Production.INFO: ==2706== Releasing lock... [2025-01-29 19:37:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 19:37:24] Production.INFO: 52.5 MB #Memory Used# [2025-01-29 19:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 16:38:06 [end_date_ymd] => 2025-01-29 19:38:06 [RateCDR] => 1 ) [2025-01-29 19:38:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 16:38:06' and `end` < '2025-01-29 19:38:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 19:38:20] Production.INFO: count ==3208 [2025-01-29 19:38:21] Production.ERROR: pbx CDR StartTime 2025-01-29 16:38:06 - End Time 2025-01-29 19:38:06 [2025-01-29 19:38:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 19:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358508', 'tblTempUsageDetail_20' ) start [2025-01-29 19:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358508', 'tblTempUsageDetail_20' ) end [2025-01-29 19:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358508', 'tblTempVendorCDR_20' ) start [2025-01-29 19:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358508', 'tblTempVendorCDR_20' ) end [2025-01-29 19:38:21] Production.INFO: ProcessCDR(1,14358508,1,1,2) [2025-01-29 19:38:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14358508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 19:38:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14358508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 19:38:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14358508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 19:38:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14358508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 19:38:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358508', 'tblTempUsageDetail_20' ) start [2025-01-29 19:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358508', 'tblTempUsageDetail_20' ) end [2025-01-29 19:38:26] Production.ERROR: pbx prc_insertCDR start [2025-01-29 19:38:26] Production.ERROR: pbx prc_insertCDR end [2025-01-29 19:38:26] Production.INFO: ==2793== Releasing lock... [2025-01-29 19:38:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 19:38:26] Production.INFO: 52 MB #Memory Used# [2025-01-29 19:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 16:39:05 [end_date_ymd] => 2025-01-29 19:39:05 [RateCDR] => 1 ) [2025-01-29 19:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 16:39:05' and `end` < '2025-01-29 19:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 19:39:18] Production.INFO: count ==3186 [2025-01-29 19:39:19] Production.ERROR: pbx CDR StartTime 2025-01-29 16:39:05 - End Time 2025-01-29 19:39:05 [2025-01-29 19:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 19:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358513', 'tblTempUsageDetail_20' ) start [2025-01-29 19:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358513', 'tblTempUsageDetail_20' ) end [2025-01-29 19:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358513', 'tblTempVendorCDR_20' ) start [2025-01-29 19:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358513', 'tblTempVendorCDR_20' ) end [2025-01-29 19:39:19] Production.INFO: ProcessCDR(1,14358513,1,1,2) [2025-01-29 19:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14358513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 19:39:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14358513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 19:39:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14358513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 19:39:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14358513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 19:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358513', 'tblTempUsageDetail_20' ) start [2025-01-29 19:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358513', 'tblTempUsageDetail_20' ) end [2025-01-29 19:39:24] Production.ERROR: pbx prc_insertCDR start [2025-01-29 19:39:24] Production.ERROR: pbx prc_insertCDR end [2025-01-29 19:39:24] Production.INFO: ==2873== Releasing lock... [2025-01-29 19:39:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 19:39:24] Production.INFO: 51.75 MB #Memory Used# [2025-01-29 19:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 16:40:06 [end_date_ymd] => 2025-01-29 19:40:06 [RateCDR] => 1 ) [2025-01-29 19:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 16:40:06' and `end` < '2025-01-29 19:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 19:40:19] Production.INFO: count ==3179 [2025-01-29 19:40:20] Production.ERROR: pbx CDR StartTime 2025-01-29 16:40:06 - End Time 2025-01-29 19:40:06 [2025-01-29 19:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 19:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358519', 'tblTempUsageDetail_20' ) start [2025-01-29 19:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358519', 'tblTempUsageDetail_20' ) end [2025-01-29 19:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358519', 'tblTempVendorCDR_20' ) start [2025-01-29 19:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358519', 'tblTempVendorCDR_20' ) end [2025-01-29 19:40:20] Production.INFO: ProcessCDR(1,14358519,1,1,2) [2025-01-29 19:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14358519,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 19:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14358519,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 19:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14358519,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 19:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14358519,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 19:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358519', 'tblTempUsageDetail_20' ) start [2025-01-29 19:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358519', 'tblTempUsageDetail_20' ) end [2025-01-29 19:40:23] Production.ERROR: pbx prc_insertCDR start [2025-01-29 19:40:23] Production.ERROR: pbx prc_insertCDR end [2025-01-29 19:40:23] Production.INFO: ==2960== Releasing lock... [2025-01-29 19:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 19:40:23] Production.INFO: 52 MB #Memory Used# [2025-01-29 19:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 16:41:05 [end_date_ymd] => 2025-01-29 19:41:05 [RateCDR] => 1 ) [2025-01-29 19:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 16:41:05' and `end` < '2025-01-29 19:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 19:41:18] Production.INFO: count ==3152 [2025-01-29 19:41:19] Production.ERROR: pbx CDR StartTime 2025-01-29 16:41:05 - End Time 2025-01-29 19:41:05 [2025-01-29 19:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 19:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358524', 'tblTempUsageDetail_20' ) start [2025-01-29 19:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358524', 'tblTempUsageDetail_20' ) end [2025-01-29 19:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358524', 'tblTempVendorCDR_20' ) start [2025-01-29 19:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358524', 'tblTempVendorCDR_20' ) end [2025-01-29 19:41:19] Production.INFO: ProcessCDR(1,14358524,1,1,2) [2025-01-29 19:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14358524,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 19:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14358524,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 19:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14358524,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 19:41:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14358524,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 19:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358524', 'tblTempUsageDetail_20' ) start [2025-01-29 19:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358524', 'tblTempUsageDetail_20' ) end [2025-01-29 19:41:23] Production.ERROR: pbx prc_insertCDR start [2025-01-29 19:41:23] Production.ERROR: pbx prc_insertCDR end [2025-01-29 19:41:23] Production.INFO: ==3041== Releasing lock... [2025-01-29 19:41:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 19:41:23] Production.INFO: 51.75 MB #Memory Used# [2025-01-29 19:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 16:42:05 [end_date_ymd] => 2025-01-29 19:42:05 [RateCDR] => 1 ) [2025-01-29 19:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 16:42:05' and `end` < '2025-01-29 19:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 19:42:18] Production.INFO: count ==3134 [2025-01-29 19:42:19] Production.ERROR: pbx CDR StartTime 2025-01-29 16:42:05 - End Time 2025-01-29 19:42:05 [2025-01-29 19:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 19:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358529', 'tblTempUsageDetail_20' ) start [2025-01-29 19:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358529', 'tblTempUsageDetail_20' ) end [2025-01-29 19:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358529', 'tblTempVendorCDR_20' ) start [2025-01-29 19:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358529', 'tblTempVendorCDR_20' ) end [2025-01-29 19:42:19] Production.INFO: ProcessCDR(1,14358529,1,1,2) [2025-01-29 19:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14358529,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 19:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14358529,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 19:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14358529,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 19:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14358529,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 19:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358529', 'tblTempUsageDetail_20' ) start [2025-01-29 19:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358529', 'tblTempUsageDetail_20' ) end [2025-01-29 19:42:23] Production.ERROR: pbx prc_insertCDR start [2025-01-29 19:42:23] Production.ERROR: pbx prc_insertCDR end [2025-01-29 19:42:23] Production.INFO: ==3124== Releasing lock... [2025-01-29 19:42:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 19:42:23] Production.INFO: 51.5 MB #Memory Used# [2025-01-29 19:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 16:43:05 [end_date_ymd] => 2025-01-29 19:43:05 [RateCDR] => 1 ) [2025-01-29 19:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 16:43:05' and `end` < '2025-01-29 19:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 19:43:19] Production.INFO: count ==3117 [2025-01-29 19:43:20] Production.ERROR: pbx CDR StartTime 2025-01-29 16:43:05 - End Time 2025-01-29 19:43:05 [2025-01-29 19:43:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 19:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358534', 'tblTempUsageDetail_20' ) start [2025-01-29 19:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358534', 'tblTempUsageDetail_20' ) end [2025-01-29 19:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358534', 'tblTempVendorCDR_20' ) start [2025-01-29 19:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358534', 'tblTempVendorCDR_20' ) end [2025-01-29 19:43:20] Production.INFO: ProcessCDR(1,14358534,1,1,2) [2025-01-29 19:43:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14358534,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 19:43:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14358534,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 19:43:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14358534,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 19:43:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14358534,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 19:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358534', 'tblTempUsageDetail_20' ) start [2025-01-29 19:43:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358534', 'tblTempUsageDetail_20' ) end [2025-01-29 19:43:25] Production.ERROR: pbx prc_insertCDR start [2025-01-29 19:43:25] Production.ERROR: pbx prc_insertCDR end [2025-01-29 19:43:25] Production.INFO: ==3204== Releasing lock... [2025-01-29 19:43:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 19:43:25] Production.INFO: 51.25 MB #Memory Used# [2025-01-29 19:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 16:44:05 [end_date_ymd] => 2025-01-29 19:44:05 [RateCDR] => 1 ) [2025-01-29 19:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 16:44:05' and `end` < '2025-01-29 19:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 19:44:20] Production.INFO: count ==3102 [2025-01-29 19:44:21] Production.ERROR: pbx CDR StartTime 2025-01-29 16:44:05 - End Time 2025-01-29 19:44:05 [2025-01-29 19:44:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 19:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358539', 'tblTempUsageDetail_20' ) start [2025-01-29 19:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358539', 'tblTempUsageDetail_20' ) end [2025-01-29 19:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358539', 'tblTempVendorCDR_20' ) start [2025-01-29 19:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358539', 'tblTempVendorCDR_20' ) end [2025-01-29 19:44:21] Production.INFO: ProcessCDR(1,14358539,1,1,2) [2025-01-29 19:44:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14358539,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 19:44:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14358539,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 19:44:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14358539,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 19:44:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14358539,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 19:44:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358539', 'tblTempUsageDetail_20' ) start [2025-01-29 19:44:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358539', 'tblTempUsageDetail_20' ) end [2025-01-29 19:44:26] Production.ERROR: pbx prc_insertCDR start [2025-01-29 19:44:26] Production.ERROR: pbx prc_insertCDR end [2025-01-29 19:44:26] Production.INFO: ==3289== Releasing lock... [2025-01-29 19:44:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 19:44:26] Production.INFO: 51.25 MB #Memory Used# [2025-01-29 19:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 16:45:05 [end_date_ymd] => 2025-01-29 19:45:05 [RateCDR] => 1 ) [2025-01-29 19:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 16:45:05' and `end` < '2025-01-29 19:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 19:45:18] Production.INFO: count ==3073 [2025-01-29 19:45:19] Production.ERROR: pbx CDR StartTime 2025-01-29 16:45:05 - End Time 2025-01-29 19:45:05 [2025-01-29 19:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 19:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358544', 'tblTempUsageDetail_20' ) start [2025-01-29 19:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358544', 'tblTempUsageDetail_20' ) end [2025-01-29 19:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358544', 'tblTempVendorCDR_20' ) start [2025-01-29 19:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358544', 'tblTempVendorCDR_20' ) end [2025-01-29 19:45:19] Production.INFO: ProcessCDR(1,14358544,1,1,2) [2025-01-29 19:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14358544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 19:45:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14358544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 19:45:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14358544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 19:45:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14358544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 19:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358544', 'tblTempUsageDetail_20' ) start [2025-01-29 19:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358544', 'tblTempUsageDetail_20' ) end [2025-01-29 19:45:23] Production.ERROR: pbx prc_insertCDR start [2025-01-29 19:45:23] Production.ERROR: pbx prc_insertCDR end [2025-01-29 19:45:23] Production.INFO: ==3371== Releasing lock... [2025-01-29 19:45:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 19:45:23] Production.INFO: 51.75 MB #Memory Used# [2025-01-29 19:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 16:46:05 [end_date_ymd] => 2025-01-29 19:46:05 [RateCDR] => 1 ) [2025-01-29 19:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 16:46:05' and `end` < '2025-01-29 19:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 19:46:18] Production.INFO: count ==3061 [2025-01-29 19:46:19] Production.ERROR: pbx CDR StartTime 2025-01-29 16:46:05 - End Time 2025-01-29 19:46:05 [2025-01-29 19:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 19:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358549', 'tblTempUsageDetail_20' ) start [2025-01-29 19:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358549', 'tblTempUsageDetail_20' ) end [2025-01-29 19:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358549', 'tblTempVendorCDR_20' ) start [2025-01-29 19:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358549', 'tblTempVendorCDR_20' ) end [2025-01-29 19:46:19] Production.INFO: ProcessCDR(1,14358549,1,1,2) [2025-01-29 19:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14358549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 19:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14358549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 19:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14358549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 19:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14358549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 19:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358549', 'tblTempUsageDetail_20' ) start [2025-01-29 19:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358549', 'tblTempUsageDetail_20' ) end [2025-01-29 19:46:22] Production.ERROR: pbx prc_insertCDR start [2025-01-29 19:46:22] Production.ERROR: pbx prc_insertCDR end [2025-01-29 19:46:22] Production.INFO: ==3461== Releasing lock... [2025-01-29 19:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 19:46:22] Production.INFO: 50.75 MB #Memory Used# [2025-01-29 19:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 16:47:05 [end_date_ymd] => 2025-01-29 19:47:05 [RateCDR] => 1 ) [2025-01-29 19:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 16:47:05' and `end` < '2025-01-29 19:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 19:47:19] Production.INFO: count ==3060 [2025-01-29 19:47:20] Production.ERROR: pbx CDR StartTime 2025-01-29 16:47:05 - End Time 2025-01-29 19:47:05 [2025-01-29 19:47:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 19:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358554', 'tblTempUsageDetail_20' ) start [2025-01-29 19:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358554', 'tblTempUsageDetail_20' ) end [2025-01-29 19:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358554', 'tblTempVendorCDR_20' ) start [2025-01-29 19:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358554', 'tblTempVendorCDR_20' ) end [2025-01-29 19:47:20] Production.INFO: ProcessCDR(1,14358554,1,1,2) [2025-01-29 19:47:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14358554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 19:47:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14358554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 19:47:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14358554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 19:47:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14358554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 19:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358554', 'tblTempUsageDetail_20' ) start [2025-01-29 19:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358554', 'tblTempUsageDetail_20' ) end [2025-01-29 19:47:24] Production.ERROR: pbx prc_insertCDR start [2025-01-29 19:47:24] Production.ERROR: pbx prc_insertCDR end [2025-01-29 19:47:24] Production.INFO: ==3545== Releasing lock... [2025-01-29 19:47:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 19:47:24] Production.INFO: 50.75 MB #Memory Used# [2025-01-29 19:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 16:48:05 [end_date_ymd] => 2025-01-29 19:48:05 [RateCDR] => 1 ) [2025-01-29 19:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 16:48:05' and `end` < '2025-01-29 19:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 19:48:18] Production.INFO: count ==3045 [2025-01-29 19:48:19] Production.ERROR: pbx CDR StartTime 2025-01-29 16:48:05 - End Time 2025-01-29 19:48:05 [2025-01-29 19:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 19:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358559', 'tblTempUsageDetail_20' ) start [2025-01-29 19:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358559', 'tblTempUsageDetail_20' ) end [2025-01-29 19:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358559', 'tblTempVendorCDR_20' ) start [2025-01-29 19:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358559', 'tblTempVendorCDR_20' ) end [2025-01-29 19:48:19] Production.INFO: ProcessCDR(1,14358559,1,1,2) [2025-01-29 19:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14358559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 19:48:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14358559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 19:48:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14358559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 19:48:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14358559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 19:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358559', 'tblTempUsageDetail_20' ) start [2025-01-29 19:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358559', 'tblTempUsageDetail_20' ) end [2025-01-29 19:48:24] Production.ERROR: pbx prc_insertCDR start [2025-01-29 19:48:24] Production.ERROR: pbx prc_insertCDR end [2025-01-29 19:48:24] Production.INFO: ==3666== Releasing lock... [2025-01-29 19:48:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 19:48:24] Production.INFO: 51.25 MB #Memory Used# [2025-01-29 19:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 16:49:06 [end_date_ymd] => 2025-01-29 19:49:06 [RateCDR] => 1 ) [2025-01-29 19:49:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 16:49:06' and `end` < '2025-01-29 19:49:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 19:49:19] Production.INFO: count ==3027 [2025-01-29 19:49:20] Production.ERROR: pbx CDR StartTime 2025-01-29 16:49:06 - End Time 2025-01-29 19:49:06 [2025-01-29 19:49:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 19:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358564', 'tblTempUsageDetail_20' ) start [2025-01-29 19:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358564', 'tblTempUsageDetail_20' ) end [2025-01-29 19:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358564', 'tblTempVendorCDR_20' ) start [2025-01-29 19:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358564', 'tblTempVendorCDR_20' ) end [2025-01-29 19:49:20] Production.INFO: ProcessCDR(1,14358564,1,1,2) [2025-01-29 19:49:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14358564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 19:49:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14358564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 19:49:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14358564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 19:49:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14358564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 19:49:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358564', 'tblTempUsageDetail_20' ) start [2025-01-29 19:49:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358564', 'tblTempUsageDetail_20' ) end [2025-01-29 19:49:25] Production.ERROR: pbx prc_insertCDR start [2025-01-29 19:49:25] Production.ERROR: pbx prc_insertCDR end [2025-01-29 19:49:25] Production.INFO: ==3759== Releasing lock... [2025-01-29 19:49:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 19:49:25] Production.INFO: 50.5 MB #Memory Used# [2025-01-29 19:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 16:50:05 [end_date_ymd] => 2025-01-29 19:50:05 [RateCDR] => 1 ) [2025-01-29 19:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 16:50:05' and `end` < '2025-01-29 19:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 19:50:19] Production.INFO: count ==3020 [2025-01-29 19:50:19] Production.ERROR: pbx CDR StartTime 2025-01-29 16:50:05 - End Time 2025-01-29 19:50:05 [2025-01-29 19:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 19:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358570', 'tblTempUsageDetail_20' ) start [2025-01-29 19:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358570', 'tblTempUsageDetail_20' ) end [2025-01-29 19:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358570', 'tblTempVendorCDR_20' ) start [2025-01-29 19:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358570', 'tblTempVendorCDR_20' ) end [2025-01-29 19:50:20] Production.INFO: ProcessCDR(1,14358570,1,1,2) [2025-01-29 19:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14358570,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 19:50:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14358570,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 19:50:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14358570,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 19:50:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14358570,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 19:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358570', 'tblTempUsageDetail_20' ) start [2025-01-29 19:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358570', 'tblTempUsageDetail_20' ) end [2025-01-29 19:50:24] Production.ERROR: pbx prc_insertCDR start [2025-01-29 19:50:24] Production.ERROR: pbx prc_insertCDR end [2025-01-29 19:50:24] Production.INFO: ==3843== Releasing lock... [2025-01-29 19:50:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 19:50:24] Production.INFO: 50.5 MB #Memory Used# [2025-01-29 19:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 16:51:05 [end_date_ymd] => 2025-01-29 19:51:05 [RateCDR] => 1 ) [2025-01-29 19:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 16:51:05' and `end` < '2025-01-29 19:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 19:51:18] Production.INFO: count ==2932 [2025-01-29 19:51:19] Production.ERROR: pbx CDR StartTime 2025-01-29 16:51:05 - End Time 2025-01-29 19:51:05 [2025-01-29 19:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 19:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358575', 'tblTempUsageDetail_20' ) start [2025-01-29 19:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358575', 'tblTempUsageDetail_20' ) end [2025-01-29 19:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358575', 'tblTempVendorCDR_20' ) start [2025-01-29 19:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358575', 'tblTempVendorCDR_20' ) end [2025-01-29 19:51:19] Production.INFO: ProcessCDR(1,14358575,1,1,2) [2025-01-29 19:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14358575,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 19:51:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14358575,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 19:51:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14358575,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 19:51:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14358575,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 19:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358575', 'tblTempUsageDetail_20' ) start [2025-01-29 19:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358575', 'tblTempUsageDetail_20' ) end [2025-01-29 19:51:23] Production.ERROR: pbx prc_insertCDR start [2025-01-29 19:51:23] Production.ERROR: pbx prc_insertCDR end [2025-01-29 19:51:23] Production.INFO: ==3928== Releasing lock... [2025-01-29 19:51:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 19:51:23] Production.INFO: 49.75 MB #Memory Used# [2025-01-29 19:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 16:52:05 [end_date_ymd] => 2025-01-29 19:52:05 [RateCDR] => 1 ) [2025-01-29 19:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 16:52:05' and `end` < '2025-01-29 19:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 19:52:18] Production.INFO: count ==2903 [2025-01-29 19:52:19] Production.ERROR: pbx CDR StartTime 2025-01-29 16:52:05 - End Time 2025-01-29 19:52:05 [2025-01-29 19:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 19:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358580', 'tblTempUsageDetail_20' ) start [2025-01-29 19:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358580', 'tblTempUsageDetail_20' ) end [2025-01-29 19:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358580', 'tblTempVendorCDR_20' ) start [2025-01-29 19:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358580', 'tblTempVendorCDR_20' ) end [2025-01-29 19:52:19] Production.INFO: ProcessCDR(1,14358580,1,1,2) [2025-01-29 19:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14358580,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 19:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14358580,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 19:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14358580,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 19:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14358580,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 19:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358580', 'tblTempUsageDetail_20' ) start [2025-01-29 19:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358580', 'tblTempUsageDetail_20' ) end [2025-01-29 19:52:22] Production.ERROR: pbx prc_insertCDR start [2025-01-29 19:52:22] Production.ERROR: pbx prc_insertCDR end [2025-01-29 19:52:22] Production.INFO: ==4013== Releasing lock... [2025-01-29 19:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 19:52:22] Production.INFO: 50 MB #Memory Used# [2025-01-29 19:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 16:53:05 [end_date_ymd] => 2025-01-29 19:53:05 [RateCDR] => 1 ) [2025-01-29 19:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 16:53:05' and `end` < '2025-01-29 19:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 19:53:19] Production.INFO: count ==2894 [2025-01-29 19:53:20] Production.ERROR: pbx CDR StartTime 2025-01-29 16:53:05 - End Time 2025-01-29 19:53:05 [2025-01-29 19:53:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 19:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358585', 'tblTempUsageDetail_20' ) start [2025-01-29 19:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358585', 'tblTempUsageDetail_20' ) end [2025-01-29 19:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358585', 'tblTempVendorCDR_20' ) start [2025-01-29 19:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358585', 'tblTempVendorCDR_20' ) end [2025-01-29 19:53:20] Production.INFO: ProcessCDR(1,14358585,1,1,2) [2025-01-29 19:53:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14358585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 19:53:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14358585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 19:53:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14358585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 19:53:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14358585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 19:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358585', 'tblTempUsageDetail_20' ) start [2025-01-29 19:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358585', 'tblTempUsageDetail_20' ) end [2025-01-29 19:53:24] Production.ERROR: pbx prc_insertCDR start [2025-01-29 19:53:24] Production.ERROR: pbx prc_insertCDR end [2025-01-29 19:53:24] Production.INFO: ==4098== Releasing lock... [2025-01-29 19:53:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 19:53:24] Production.INFO: 49.5 MB #Memory Used# [2025-01-29 19:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 16:54:05 [end_date_ymd] => 2025-01-29 19:54:05 [RateCDR] => 1 ) [2025-01-29 19:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 16:54:05' and `end` < '2025-01-29 19:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 19:54:18] Production.INFO: count ==2871 [2025-01-29 19:54:18] Production.ERROR: pbx CDR StartTime 2025-01-29 16:54:05 - End Time 2025-01-29 19:54:05 [2025-01-29 19:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 19:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358590', 'tblTempUsageDetail_20' ) start [2025-01-29 19:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358590', 'tblTempUsageDetail_20' ) end [2025-01-29 19:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358590', 'tblTempVendorCDR_20' ) start [2025-01-29 19:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358590', 'tblTempVendorCDR_20' ) end [2025-01-29 19:54:19] Production.INFO: ProcessCDR(1,14358590,1,1,2) [2025-01-29 19:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14358590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 19:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14358590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 19:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14358590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 19:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14358590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 19:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358590', 'tblTempUsageDetail_20' ) start [2025-01-29 19:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358590', 'tblTempUsageDetail_20' ) end [2025-01-29 19:54:22] Production.ERROR: pbx prc_insertCDR start [2025-01-29 19:54:22] Production.ERROR: pbx prc_insertCDR end [2025-01-29 19:54:22] Production.INFO: ==4185== Releasing lock... [2025-01-29 19:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 19:54:22] Production.INFO: 49.5 MB #Memory Used# [2025-01-29 19:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 16:55:05 [end_date_ymd] => 2025-01-29 19:55:05 [RateCDR] => 1 ) [2025-01-29 19:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 16:55:05' and `end` < '2025-01-29 19:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 19:55:18] Production.INFO: count ==2863 [2025-01-29 19:55:19] Production.ERROR: pbx CDR StartTime 2025-01-29 16:55:05 - End Time 2025-01-29 19:55:05 [2025-01-29 19:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 19:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358595', 'tblTempUsageDetail_20' ) start [2025-01-29 19:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358595', 'tblTempUsageDetail_20' ) end [2025-01-29 19:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358595', 'tblTempVendorCDR_20' ) start [2025-01-29 19:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358595', 'tblTempVendorCDR_20' ) end [2025-01-29 19:55:19] Production.INFO: ProcessCDR(1,14358595,1,1,2) [2025-01-29 19:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14358595,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 19:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14358595,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 19:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14358595,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 19:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14358595,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 19:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358595', 'tblTempUsageDetail_20' ) start [2025-01-29 19:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358595', 'tblTempUsageDetail_20' ) end [2025-01-29 19:55:22] Production.ERROR: pbx prc_insertCDR start [2025-01-29 19:55:22] Production.ERROR: pbx prc_insertCDR end [2025-01-29 19:55:22] Production.INFO: ==4267== Releasing lock... [2025-01-29 19:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 19:55:22] Production.INFO: 49.25 MB #Memory Used# [2025-01-29 19:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 16:56:05 [end_date_ymd] => 2025-01-29 19:56:05 [RateCDR] => 1 ) [2025-01-29 19:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 16:56:05' and `end` < '2025-01-29 19:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 19:56:19] Production.INFO: count ==2842 [2025-01-29 19:56:19] Production.ERROR: pbx CDR StartTime 2025-01-29 16:56:05 - End Time 2025-01-29 19:56:05 [2025-01-29 19:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 19:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358600', 'tblTempUsageDetail_20' ) start [2025-01-29 19:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358600', 'tblTempUsageDetail_20' ) end [2025-01-29 19:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358600', 'tblTempVendorCDR_20' ) start [2025-01-29 19:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358600', 'tblTempVendorCDR_20' ) end [2025-01-29 19:56:19] Production.INFO: ProcessCDR(1,14358600,1,1,2) [2025-01-29 19:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14358600,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 19:56:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14358600,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 19:56:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14358600,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 19:56:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14358600,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 19:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358600', 'tblTempUsageDetail_20' ) start [2025-01-29 19:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358600', 'tblTempUsageDetail_20' ) end [2025-01-29 19:56:24] Production.ERROR: pbx prc_insertCDR start [2025-01-29 19:56:24] Production.ERROR: pbx prc_insertCDR end [2025-01-29 19:56:24] Production.INFO: ==4347== Releasing lock... [2025-01-29 19:56:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 19:56:24] Production.INFO: 50.25 MB #Memory Used# [2025-01-29 19:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 16:57:05 [end_date_ymd] => 2025-01-29 19:57:05 [RateCDR] => 1 ) [2025-01-29 19:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 16:57:05' and `end` < '2025-01-29 19:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 19:57:19] Production.INFO: count ==2839 [2025-01-29 19:57:20] Production.ERROR: pbx CDR StartTime 2025-01-29 16:57:05 - End Time 2025-01-29 19:57:05 [2025-01-29 19:57:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 19:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358605', 'tblTempUsageDetail_20' ) start [2025-01-29 19:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358605', 'tblTempUsageDetail_20' ) end [2025-01-29 19:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358605', 'tblTempVendorCDR_20' ) start [2025-01-29 19:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358605', 'tblTempVendorCDR_20' ) end [2025-01-29 19:57:20] Production.INFO: ProcessCDR(1,14358605,1,1,2) [2025-01-29 19:57:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14358605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 19:57:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14358605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 19:57:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14358605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 19:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14358605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 19:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358605', 'tblTempUsageDetail_20' ) start [2025-01-29 19:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358605', 'tblTempUsageDetail_20' ) end [2025-01-29 19:57:23] Production.ERROR: pbx prc_insertCDR start [2025-01-29 19:57:23] Production.ERROR: pbx prc_insertCDR end [2025-01-29 19:57:23] Production.INFO: ==4429== Releasing lock... [2025-01-29 19:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 19:57:23] Production.INFO: 49.25 MB #Memory Used# [2025-01-29 19:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 16:58:05 [end_date_ymd] => 2025-01-29 19:58:05 [RateCDR] => 1 ) [2025-01-29 19:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 16:58:05' and `end` < '2025-01-29 19:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 19:58:18] Production.INFO: count ==2828 [2025-01-29 19:58:19] Production.ERROR: pbx CDR StartTime 2025-01-29 16:58:05 - End Time 2025-01-29 19:58:05 [2025-01-29 19:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 19:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358610', 'tblTempUsageDetail_20' ) start [2025-01-29 19:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358610', 'tblTempUsageDetail_20' ) end [2025-01-29 19:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358610', 'tblTempVendorCDR_20' ) start [2025-01-29 19:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358610', 'tblTempVendorCDR_20' ) end [2025-01-29 19:58:19] Production.INFO: ProcessCDR(1,14358610,1,1,2) [2025-01-29 19:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14358610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 19:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14358610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 19:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14358610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 19:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14358610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 19:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358610', 'tblTempUsageDetail_20' ) start [2025-01-29 19:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358610', 'tblTempUsageDetail_20' ) end [2025-01-29 19:58:22] Production.ERROR: pbx prc_insertCDR start [2025-01-29 19:58:22] Production.ERROR: pbx prc_insertCDR end [2025-01-29 19:58:22] Production.INFO: ==4508== Releasing lock... [2025-01-29 19:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 19:58:22] Production.INFO: 49.25 MB #Memory Used# [2025-01-29 19:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 16:59:05 [end_date_ymd] => 2025-01-29 19:59:05 [RateCDR] => 1 ) [2025-01-29 19:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 16:59:05' and `end` < '2025-01-29 19:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 19:59:18] Production.INFO: count ==2821 [2025-01-29 19:59:19] Production.ERROR: pbx CDR StartTime 2025-01-29 16:59:05 - End Time 2025-01-29 19:59:05 [2025-01-29 19:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 19:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358615', 'tblTempUsageDetail_20' ) start [2025-01-29 19:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358615', 'tblTempUsageDetail_20' ) end [2025-01-29 19:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358615', 'tblTempVendorCDR_20' ) start [2025-01-29 19:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358615', 'tblTempVendorCDR_20' ) end [2025-01-29 19:59:19] Production.INFO: ProcessCDR(1,14358615,1,1,2) [2025-01-29 19:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14358615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 19:59:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14358615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 19:59:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14358615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 19:59:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14358615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 19:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358615', 'tblTempUsageDetail_20' ) start [2025-01-29 19:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358615', 'tblTempUsageDetail_20' ) end [2025-01-29 19:59:23] Production.ERROR: pbx prc_insertCDR start [2025-01-29 19:59:23] Production.ERROR: pbx prc_insertCDR end [2025-01-29 19:59:23] Production.INFO: ==4598== Releasing lock... [2025-01-29 19:59:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 19:59:23] Production.INFO: 49 MB #Memory Used# [2025-01-29 20:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 17:00:06 [end_date_ymd] => 2025-01-29 20:00:06 [RateCDR] => 1 ) [2025-01-29 20:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 17:00:06' and `end` < '2025-01-29 20:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 20:00:19] Production.INFO: count ==2821 [2025-01-29 20:00:20] Production.ERROR: pbx CDR StartTime 2025-01-29 17:00:06 - End Time 2025-01-29 20:00:06 [2025-01-29 20:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 20:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358621', 'tblTempUsageDetail_20' ) start [2025-01-29 20:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358621', 'tblTempUsageDetail_20' ) end [2025-01-29 20:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358621', 'tblTempVendorCDR_20' ) start [2025-01-29 20:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358621', 'tblTempVendorCDR_20' ) end [2025-01-29 20:00:20] Production.INFO: ProcessCDR(1,14358621,1,1,2) [2025-01-29 20:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14358621,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 20:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14358621,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 20:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14358621,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 20:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14358621,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 20:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358621', 'tblTempUsageDetail_20' ) start [2025-01-29 20:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358621', 'tblTempUsageDetail_20' ) end [2025-01-29 20:00:23] Production.ERROR: pbx prc_insertCDR start [2025-01-29 20:00:23] Production.ERROR: pbx prc_insertCDR end [2025-01-29 20:00:23] Production.INFO: ==4692== Releasing lock... [2025-01-29 20:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 20:00:23] Production.INFO: 49 MB #Memory Used# [2025-01-29 20:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 17:01:05 [end_date_ymd] => 2025-01-29 20:01:05 [RateCDR] => 1 ) [2025-01-29 20:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 17:01:05' and `end` < '2025-01-29 20:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 20:01:18] Production.INFO: count ==2792 [2025-01-29 20:01:19] Production.ERROR: pbx CDR StartTime 2025-01-29 17:01:05 - End Time 2025-01-29 20:01:05 [2025-01-29 20:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 20:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358626', 'tblTempUsageDetail_20' ) start [2025-01-29 20:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358626', 'tblTempUsageDetail_20' ) end [2025-01-29 20:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358626', 'tblTempVendorCDR_20' ) start [2025-01-29 20:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358626', 'tblTempVendorCDR_20' ) end [2025-01-29 20:01:19] Production.INFO: ProcessCDR(1,14358626,1,1,2) [2025-01-29 20:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14358626,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 20:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14358626,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 20:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14358626,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 20:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14358626,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 20:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358626', 'tblTempUsageDetail_20' ) start [2025-01-29 20:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358626', 'tblTempUsageDetail_20' ) end [2025-01-29 20:01:23] Production.ERROR: pbx prc_insertCDR start [2025-01-29 20:01:23] Production.ERROR: pbx prc_insertCDR end [2025-01-29 20:01:23] Production.INFO: ==4823== Releasing lock... [2025-01-29 20:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 20:01:23] Production.INFO: 49 MB #Memory Used# [2025-01-29 20:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 17:02:05 [end_date_ymd] => 2025-01-29 20:02:05 [RateCDR] => 1 ) [2025-01-29 20:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 17:02:05' and `end` < '2025-01-29 20:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 20:02:19] Production.INFO: count ==2782 [2025-01-29 20:02:19] Production.ERROR: pbx CDR StartTime 2025-01-29 17:02:05 - End Time 2025-01-29 20:02:05 [2025-01-29 20:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 20:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358631', 'tblTempUsageDetail_20' ) start [2025-01-29 20:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358631', 'tblTempUsageDetail_20' ) end [2025-01-29 20:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358631', 'tblTempVendorCDR_20' ) start [2025-01-29 20:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358631', 'tblTempVendorCDR_20' ) end [2025-01-29 20:02:19] Production.INFO: ProcessCDR(1,14358631,1,1,2) [2025-01-29 20:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14358631,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 20:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14358631,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 20:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14358631,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 20:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14358631,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 20:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358631', 'tblTempUsageDetail_20' ) start [2025-01-29 20:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358631', 'tblTempUsageDetail_20' ) end [2025-01-29 20:02:23] Production.ERROR: pbx prc_insertCDR start [2025-01-29 20:02:23] Production.ERROR: pbx prc_insertCDR end [2025-01-29 20:02:23] Production.INFO: ==4904== Releasing lock... [2025-01-29 20:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 20:02:23] Production.INFO: 49.25 MB #Memory Used# [2025-01-29 20:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 17:03:05 [end_date_ymd] => 2025-01-29 20:03:05 [RateCDR] => 1 ) [2025-01-29 20:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 17:03:05' and `end` < '2025-01-29 20:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 20:03:19] Production.INFO: count ==2776 [2025-01-29 20:03:20] Production.ERROR: pbx CDR StartTime 2025-01-29 17:03:05 - End Time 2025-01-29 20:03:05 [2025-01-29 20:03:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 20:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358636', 'tblTempUsageDetail_20' ) start [2025-01-29 20:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358636', 'tblTempUsageDetail_20' ) end [2025-01-29 20:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358636', 'tblTempVendorCDR_20' ) start [2025-01-29 20:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358636', 'tblTempVendorCDR_20' ) end [2025-01-29 20:03:20] Production.INFO: ProcessCDR(1,14358636,1,1,2) [2025-01-29 20:03:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14358636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 20:03:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14358636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 20:03:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14358636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 20:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14358636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 20:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358636', 'tblTempUsageDetail_20' ) start [2025-01-29 20:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358636', 'tblTempUsageDetail_20' ) end [2025-01-29 20:03:23] Production.ERROR: pbx prc_insertCDR start [2025-01-29 20:03:23] Production.ERROR: pbx prc_insertCDR end [2025-01-29 20:03:23] Production.INFO: ==5026== Releasing lock... [2025-01-29 20:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 20:03:23] Production.INFO: 49 MB #Memory Used# [2025-01-29 20:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 17:04:05 [end_date_ymd] => 2025-01-29 20:04:05 [RateCDR] => 1 ) [2025-01-29 20:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 17:04:05' and `end` < '2025-01-29 20:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 20:04:18] Production.INFO: count ==2774 [2025-01-29 20:04:19] Production.ERROR: pbx CDR StartTime 2025-01-29 17:04:05 - End Time 2025-01-29 20:04:05 [2025-01-29 20:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 20:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358641', 'tblTempUsageDetail_20' ) start [2025-01-29 20:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358641', 'tblTempUsageDetail_20' ) end [2025-01-29 20:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358641', 'tblTempVendorCDR_20' ) start [2025-01-29 20:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358641', 'tblTempVendorCDR_20' ) end [2025-01-29 20:04:19] Production.INFO: ProcessCDR(1,14358641,1,1,2) [2025-01-29 20:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14358641,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 20:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14358641,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 20:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14358641,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 20:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14358641,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 20:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358641', 'tblTempUsageDetail_20' ) start [2025-01-29 20:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358641', 'tblTempUsageDetail_20' ) end [2025-01-29 20:04:22] Production.ERROR: pbx prc_insertCDR start [2025-01-29 20:04:22] Production.ERROR: pbx prc_insertCDR end [2025-01-29 20:04:22] Production.INFO: ==5106== Releasing lock... [2025-01-29 20:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 20:04:22] Production.INFO: 48.75 MB #Memory Used# [2025-01-29 20:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 17:05:05 [end_date_ymd] => 2025-01-29 20:05:05 [RateCDR] => 1 ) [2025-01-29 20:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 17:05:05' and `end` < '2025-01-29 20:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 20:05:18] Production.INFO: count ==2771 [2025-01-29 20:05:18] Production.ERROR: pbx CDR StartTime 2025-01-29 17:05:05 - End Time 2025-01-29 20:05:05 [2025-01-29 20:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 20:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358646', 'tblTempUsageDetail_20' ) start [2025-01-29 20:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358646', 'tblTempUsageDetail_20' ) end [2025-01-29 20:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358646', 'tblTempVendorCDR_20' ) start [2025-01-29 20:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358646', 'tblTempVendorCDR_20' ) end [2025-01-29 20:05:18] Production.INFO: ProcessCDR(1,14358646,1,1,2) [2025-01-29 20:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14358646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 20:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14358646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 20:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14358646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 20:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14358646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 20:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358646', 'tblTempUsageDetail_20' ) start [2025-01-29 20:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358646', 'tblTempUsageDetail_20' ) end [2025-01-29 20:05:22] Production.ERROR: pbx prc_insertCDR start [2025-01-29 20:05:22] Production.ERROR: pbx prc_insertCDR end [2025-01-29 20:05:22] Production.INFO: ==5200== Releasing lock... [2025-01-29 20:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 20:05:22] Production.INFO: 48.75 MB #Memory Used# [2025-01-29 20:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 17:06:05 [end_date_ymd] => 2025-01-29 20:06:05 [RateCDR] => 1 ) [2025-01-29 20:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 17:06:05' and `end` < '2025-01-29 20:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 20:06:18] Production.INFO: count ==2757 [2025-01-29 20:06:19] Production.ERROR: pbx CDR StartTime 2025-01-29 17:06:05 - End Time 2025-01-29 20:06:05 [2025-01-29 20:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 20:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358651', 'tblTempUsageDetail_20' ) start [2025-01-29 20:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358651', 'tblTempUsageDetail_20' ) end [2025-01-29 20:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358651', 'tblTempVendorCDR_20' ) start [2025-01-29 20:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358651', 'tblTempVendorCDR_20' ) end [2025-01-29 20:06:19] Production.INFO: ProcessCDR(1,14358651,1,1,2) [2025-01-29 20:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14358651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 20:06:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14358651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 20:06:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14358651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 20:06:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14358651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 20:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358651', 'tblTempUsageDetail_20' ) start [2025-01-29 20:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358651', 'tblTempUsageDetail_20' ) end [2025-01-29 20:06:23] Production.ERROR: pbx prc_insertCDR start [2025-01-29 20:06:23] Production.ERROR: pbx prc_insertCDR end [2025-01-29 20:06:23] Production.INFO: ==5323== Releasing lock... [2025-01-29 20:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 20:06:23] Production.INFO: 48.75 MB #Memory Used# [2025-01-29 20:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 17:07:05 [end_date_ymd] => 2025-01-29 20:07:05 [RateCDR] => 1 ) [2025-01-29 20:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 17:07:05' and `end` < '2025-01-29 20:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 20:07:18] Production.INFO: count ==2829 [2025-01-29 20:07:19] Production.ERROR: pbx CDR StartTime 2025-01-29 17:07:05 - End Time 2025-01-29 20:07:05 [2025-01-29 20:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 20:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358656', 'tblTempUsageDetail_20' ) start [2025-01-29 20:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358656', 'tblTempUsageDetail_20' ) end [2025-01-29 20:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358656', 'tblTempVendorCDR_20' ) start [2025-01-29 20:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358656', 'tblTempVendorCDR_20' ) end [2025-01-29 20:07:19] Production.INFO: ProcessCDR(1,14358656,1,1,2) [2025-01-29 20:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14358656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 20:07:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14358656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 20:07:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14358656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 20:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14358656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 20:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358656', 'tblTempUsageDetail_20' ) start [2025-01-29 20:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358656', 'tblTempUsageDetail_20' ) end [2025-01-29 20:07:23] Production.ERROR: pbx prc_insertCDR start [2025-01-29 20:07:23] Production.ERROR: pbx prc_insertCDR end [2025-01-29 20:07:23] Production.INFO: ==5453== Releasing lock... [2025-01-29 20:07:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 20:07:23] Production.INFO: 49 MB #Memory Used# [2025-01-29 20:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 17:08:05 [end_date_ymd] => 2025-01-29 20:08:05 [RateCDR] => 1 ) [2025-01-29 20:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 17:08:05' and `end` < '2025-01-29 20:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 20:08:18] Production.INFO: count ==2816 [2025-01-29 20:08:19] Production.ERROR: pbx CDR StartTime 2025-01-29 17:08:05 - End Time 2025-01-29 20:08:05 [2025-01-29 20:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 20:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358661', 'tblTempUsageDetail_20' ) start [2025-01-29 20:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358661', 'tblTempUsageDetail_20' ) end [2025-01-29 20:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358661', 'tblTempVendorCDR_20' ) start [2025-01-29 20:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358661', 'tblTempVendorCDR_20' ) end [2025-01-29 20:08:19] Production.INFO: ProcessCDR(1,14358661,1,1,2) [2025-01-29 20:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14358661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 20:08:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14358661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 20:08:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14358661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 20:08:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14358661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 20:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358661', 'tblTempUsageDetail_20' ) start [2025-01-29 20:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358661', 'tblTempUsageDetail_20' ) end [2025-01-29 20:08:24] Production.ERROR: pbx prc_insertCDR start [2025-01-29 20:08:24] Production.ERROR: pbx prc_insertCDR end [2025-01-29 20:08:24] Production.INFO: ==5575== Releasing lock... [2025-01-29 20:08:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 20:08:24] Production.INFO: 49 MB #Memory Used# [2025-01-29 20:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 17:09:05 [end_date_ymd] => 2025-01-29 20:09:05 [RateCDR] => 1 ) [2025-01-29 20:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 17:09:05' and `end` < '2025-01-29 20:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 20:09:18] Production.INFO: count ==2814 [2025-01-29 20:09:19] Production.ERROR: pbx CDR StartTime 2025-01-29 17:09:05 - End Time 2025-01-29 20:09:05 [2025-01-29 20:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 20:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358666', 'tblTempUsageDetail_20' ) start [2025-01-29 20:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358666', 'tblTempUsageDetail_20' ) end [2025-01-29 20:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358666', 'tblTempVendorCDR_20' ) start [2025-01-29 20:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358666', 'tblTempVendorCDR_20' ) end [2025-01-29 20:09:19] Production.INFO: ProcessCDR(1,14358666,1,1,2) [2025-01-29 20:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14358666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 20:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14358666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 20:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14358666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 20:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14358666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 20:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358666', 'tblTempUsageDetail_20' ) start [2025-01-29 20:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358666', 'tblTempUsageDetail_20' ) end [2025-01-29 20:09:22] Production.ERROR: pbx prc_insertCDR start [2025-01-29 20:09:22] Production.ERROR: pbx prc_insertCDR end [2025-01-29 20:09:22] Production.INFO: ==5695== Releasing lock... [2025-01-29 20:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 20:09:22] Production.INFO: 49 MB #Memory Used# [2025-01-29 20:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 17:10:06 [end_date_ymd] => 2025-01-29 20:10:06 [RateCDR] => 1 ) [2025-01-29 20:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 17:10:06' and `end` < '2025-01-29 20:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 20:10:19] Production.INFO: count ==2809 [2025-01-29 20:10:19] Production.ERROR: pbx CDR StartTime 2025-01-29 17:10:06 - End Time 2025-01-29 20:10:06 [2025-01-29 20:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 20:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358672', 'tblTempUsageDetail_20' ) start [2025-01-29 20:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358672', 'tblTempUsageDetail_20' ) end [2025-01-29 20:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358672', 'tblTempVendorCDR_20' ) start [2025-01-29 20:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358672', 'tblTempVendorCDR_20' ) end [2025-01-29 20:10:19] Production.INFO: ProcessCDR(1,14358672,1,1,2) [2025-01-29 20:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14358672,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 20:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14358672,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 20:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14358672,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 20:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14358672,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 20:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358672', 'tblTempUsageDetail_20' ) start [2025-01-29 20:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358672', 'tblTempUsageDetail_20' ) end [2025-01-29 20:10:23] Production.ERROR: pbx prc_insertCDR start [2025-01-29 20:10:23] Production.ERROR: pbx prc_insertCDR end [2025-01-29 20:10:23] Production.INFO: ==5820== Releasing lock... [2025-01-29 20:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 20:10:23] Production.INFO: 49 MB #Memory Used# [2025-01-29 20:11:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 17:11:04 [end_date_ymd] => 2025-01-29 20:11:04 [RateCDR] => 1 ) [2025-01-29 20:11:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 17:11:04' and `end` < '2025-01-29 20:11:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 20:11:17] Production.INFO: count ==2770 [2025-01-29 20:11:18] Production.ERROR: pbx CDR StartTime 2025-01-29 17:11:04 - End Time 2025-01-29 20:11:04 [2025-01-29 20:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 20:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358677', 'tblTempUsageDetail_20' ) start [2025-01-29 20:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358677', 'tblTempUsageDetail_20' ) end [2025-01-29 20:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358677', 'tblTempVendorCDR_20' ) start [2025-01-29 20:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358677', 'tblTempVendorCDR_20' ) end [2025-01-29 20:11:18] Production.INFO: ProcessCDR(1,14358677,1,1,2) [2025-01-29 20:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14358677,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 20:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14358677,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 20:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14358677,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 20:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14358677,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 20:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358677', 'tblTempUsageDetail_20' ) start [2025-01-29 20:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358677', 'tblTempUsageDetail_20' ) end [2025-01-29 20:11:21] Production.ERROR: pbx prc_insertCDR start [2025-01-29 20:11:21] Production.ERROR: pbx prc_insertCDR end [2025-01-29 20:11:21] Production.INFO: ==5946== Releasing lock... [2025-01-29 20:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 20:11:21] Production.INFO: 48.5 MB #Memory Used# [2025-01-29 20:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 17:12:05 [end_date_ymd] => 2025-01-29 20:12:05 [RateCDR] => 1 ) [2025-01-29 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-01-29 17:12:05' and `end` < '2025-01-29 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-01-29 20:12:18] Production.INFO: count ==2764 [2025-01-29 20:12:19] Production.ERROR: pbx CDR StartTime 2025-01-29 17:12:05 - End Time 2025-01-29 20:12:05 [2025-01-29 20:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 20:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358682', 'tblTempUsageDetail_20' ) start [2025-01-29 20:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358682', 'tblTempUsageDetail_20' ) end [2025-01-29 20:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358682', 'tblTempVendorCDR_20' ) start [2025-01-29 20:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358682', 'tblTempVendorCDR_20' ) end [2025-01-29 20:12:19] Production.INFO: ProcessCDR(1,14358682,1,1,2) [2025-01-29 20:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14358682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 20:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14358682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 20:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14358682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 20:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14358682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 20:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358682', 'tblTempUsageDetail_20' ) start [2025-01-29 20:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358682', 'tblTempUsageDetail_20' ) end [2025-01-29 20:12:22] Production.ERROR: pbx prc_insertCDR start [2025-01-29 20:12:22] Production.ERROR: pbx prc_insertCDR end [2025-01-29 20:12:22] Production.INFO: ==6075== Releasing lock... [2025-01-29 20:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 20:12:22] Production.INFO: 48.75 MB #Memory Used# [2025-01-29 20:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 17:13:06 [end_date_ymd] => 2025-01-29 20:13:06 [RateCDR] => 1 ) [2025-01-29 20:13:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 17:13:06' and `end` < '2025-01-29 20:13:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 20:13:19] Production.INFO: count ==2761 [2025-01-29 20:13:19] Production.ERROR: pbx CDR StartTime 2025-01-29 17:13:06 - End Time 2025-01-29 20:13:06 [2025-01-29 20:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 20:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358687', 'tblTempUsageDetail_20' ) start [2025-01-29 20:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358687', 'tblTempUsageDetail_20' ) end [2025-01-29 20:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358687', 'tblTempVendorCDR_20' ) start [2025-01-29 20:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358687', 'tblTempVendorCDR_20' ) end [2025-01-29 20:13:19] Production.INFO: ProcessCDR(1,14358687,1,1,2) [2025-01-29 20:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14358687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 20:13:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14358687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 20:13:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14358687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 20:13:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14358687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 20:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358687', 'tblTempUsageDetail_20' ) start [2025-01-29 20:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358687', 'tblTempUsageDetail_20' ) end [2025-01-29 20:13:24] Production.ERROR: pbx prc_insertCDR start [2025-01-29 20:13:24] Production.ERROR: pbx prc_insertCDR end [2025-01-29 20:13:24] Production.INFO: ==6207== Releasing lock... [2025-01-29 20:13:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 20:13:24] Production.INFO: 48.75 MB #Memory Used# [2025-01-29 20:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 17:14:05 [end_date_ymd] => 2025-01-29 20:14:05 [RateCDR] => 1 ) [2025-01-29 20:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 17:14:05' and `end` < '2025-01-29 20:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 20:14:20] Production.INFO: count ==2761 [2025-01-29 20:14:21] Production.ERROR: pbx CDR StartTime 2025-01-29 17:14:05 - End Time 2025-01-29 20:14:05 [2025-01-29 20:14:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 20:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358692', 'tblTempUsageDetail_20' ) start [2025-01-29 20:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358692', 'tblTempUsageDetail_20' ) end [2025-01-29 20:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358692', 'tblTempVendorCDR_20' ) start [2025-01-29 20:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358692', 'tblTempVendorCDR_20' ) end [2025-01-29 20:14:21] Production.INFO: ProcessCDR(1,14358692,1,1,2) [2025-01-29 20:14:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14358692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 20:14:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14358692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 20:14:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14358692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 20:14:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14358692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 20:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358692', 'tblTempUsageDetail_20' ) start [2025-01-29 20:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358692', 'tblTempUsageDetail_20' ) end [2025-01-29 20:14:24] Production.ERROR: pbx prc_insertCDR start [2025-01-29 20:14:24] Production.ERROR: pbx prc_insertCDR end [2025-01-29 20:14:24] Production.INFO: ==6334== Releasing lock... [2025-01-29 20:14:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 20:14:24] Production.INFO: 48.75 MB #Memory Used# [2025-01-29 20:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 17:15:05 [end_date_ymd] => 2025-01-29 20:15:05 [RateCDR] => 1 ) [2025-01-29 20:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 17:15:05' and `end` < '2025-01-29 20:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 20:15:18] Production.INFO: count ==2750 [2025-01-29 20:15:19] Production.ERROR: pbx CDR StartTime 2025-01-29 17:15:05 - End Time 2025-01-29 20:15:05 [2025-01-29 20:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 20:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358697', 'tblTempUsageDetail_20' ) start [2025-01-29 20:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358697', 'tblTempUsageDetail_20' ) end [2025-01-29 20:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358697', 'tblTempVendorCDR_20' ) start [2025-01-29 20:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358697', 'tblTempVendorCDR_20' ) end [2025-01-29 20:15:19] Production.INFO: ProcessCDR(1,14358697,1,1,2) [2025-01-29 20:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14358697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 20:15:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14358697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 20:15:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14358697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 20:15:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14358697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 20:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358697', 'tblTempUsageDetail_20' ) start [2025-01-29 20:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358697', 'tblTempUsageDetail_20' ) end [2025-01-29 20:15:24] Production.ERROR: pbx prc_insertCDR start [2025-01-29 20:15:24] Production.ERROR: pbx prc_insertCDR end [2025-01-29 20:15:24] Production.INFO: ==6463== Releasing lock... [2025-01-29 20:15:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 20:15:24] Production.INFO: 48.75 MB #Memory Used# [2025-01-29 20:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 17:16:05 [end_date_ymd] => 2025-01-29 20:16:05 [RateCDR] => 1 ) [2025-01-29 20:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 17:16:05' and `end` < '2025-01-29 20:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 20:16:18] Production.INFO: count ==2743 [2025-01-29 20:16:19] Production.ERROR: pbx CDR StartTime 2025-01-29 17:16:05 - End Time 2025-01-29 20:16:05 [2025-01-29 20:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 20:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358702', 'tblTempUsageDetail_20' ) start [2025-01-29 20:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358702', 'tblTempUsageDetail_20' ) end [2025-01-29 20:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358702', 'tblTempVendorCDR_20' ) start [2025-01-29 20:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358702', 'tblTempVendorCDR_20' ) end [2025-01-29 20:16:19] Production.INFO: ProcessCDR(1,14358702,1,1,2) [2025-01-29 20:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14358702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 20:16:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14358702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 20:16:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14358702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 20:16:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14358702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 20:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358702', 'tblTempUsageDetail_20' ) start [2025-01-29 20:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358702', 'tblTempUsageDetail_20' ) end [2025-01-29 20:16:23] Production.ERROR: pbx prc_insertCDR start [2025-01-29 20:16:23] Production.ERROR: pbx prc_insertCDR end [2025-01-29 20:16:23] Production.INFO: ==6581== Releasing lock... [2025-01-29 20:16:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 20:16:23] Production.INFO: 48.5 MB #Memory Used# [2025-01-29 20:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 17:17:05 [end_date_ymd] => 2025-01-29 20:17:05 [RateCDR] => 1 ) [2025-01-29 20:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 17:17:05' and `end` < '2025-01-29 20:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 20:17:19] Production.INFO: count ==2735 [2025-01-29 20:17:19] Production.ERROR: pbx CDR StartTime 2025-01-29 17:17:05 - End Time 2025-01-29 20:17:05 [2025-01-29 20:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 20:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358707', 'tblTempUsageDetail_20' ) start [2025-01-29 20:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358707', 'tblTempUsageDetail_20' ) end [2025-01-29 20:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358707', 'tblTempVendorCDR_20' ) start [2025-01-29 20:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358707', 'tblTempVendorCDR_20' ) end [2025-01-29 20:17:20] Production.INFO: ProcessCDR(1,14358707,1,1,2) [2025-01-29 20:17:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14358707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 20:17:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14358707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 20:17:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14358707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 20:17:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14358707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 20:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358707', 'tblTempUsageDetail_20' ) start [2025-01-29 20:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358707', 'tblTempUsageDetail_20' ) end [2025-01-29 20:17:23] Production.ERROR: pbx prc_insertCDR start [2025-01-29 20:17:23] Production.ERROR: pbx prc_insertCDR end [2025-01-29 20:17:23] Production.INFO: ==6702== Releasing lock... [2025-01-29 20:17:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 20:17:23] Production.INFO: 48.5 MB #Memory Used# [2025-01-29 20:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 17:18:05 [end_date_ymd] => 2025-01-29 20:18:05 [RateCDR] => 1 ) [2025-01-29 20:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 17:18:05' and `end` < '2025-01-29 20:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 20:18:19] Production.INFO: count ==2769 [2025-01-29 20:18:20] Production.ERROR: pbx CDR StartTime 2025-01-29 17:18:05 - End Time 2025-01-29 20:18:05 [2025-01-29 20:18:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 20:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358712', 'tblTempUsageDetail_20' ) start [2025-01-29 20:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358712', 'tblTempUsageDetail_20' ) end [2025-01-29 20:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358712', 'tblTempVendorCDR_20' ) start [2025-01-29 20:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358712', 'tblTempVendorCDR_20' ) end [2025-01-29 20:18:20] Production.INFO: ProcessCDR(1,14358712,1,1,2) [2025-01-29 20:18:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14358712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 20:18:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14358712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 20:18:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14358712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 20:18:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14358712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 20:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358712', 'tblTempUsageDetail_20' ) start [2025-01-29 20:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358712', 'tblTempUsageDetail_20' ) end [2025-01-29 20:18:24] Production.ERROR: pbx prc_insertCDR start [2025-01-29 20:18:24] Production.ERROR: pbx prc_insertCDR end [2025-01-29 20:18:24] Production.INFO: ==6835== Releasing lock... [2025-01-29 20:18:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 20:18:24] Production.INFO: 48.75 MB #Memory Used# [2025-01-29 20:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 17:19:05 [end_date_ymd] => 2025-01-29 20:19:05 [RateCDR] => 1 ) [2025-01-29 20:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 17:19:05' and `end` < '2025-01-29 20:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 20:19:18] Production.INFO: count ==2765 [2025-01-29 20:19:19] Production.ERROR: pbx CDR StartTime 2025-01-29 17:19:05 - End Time 2025-01-29 20:19:05 [2025-01-29 20:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 20:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358717', 'tblTempUsageDetail_20' ) start [2025-01-29 20:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358717', 'tblTempUsageDetail_20' ) end [2025-01-29 20:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358717', 'tblTempVendorCDR_20' ) start [2025-01-29 20:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358717', 'tblTempVendorCDR_20' ) end [2025-01-29 20:19:19] Production.INFO: ProcessCDR(1,14358717,1,1,2) [2025-01-29 20:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14358717,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 20:19:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14358717,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 20:19:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14358717,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 20:19:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14358717,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 20:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358717', 'tblTempUsageDetail_20' ) start [2025-01-29 20:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358717', 'tblTempUsageDetail_20' ) end [2025-01-29 20:19:24] Production.ERROR: pbx prc_insertCDR start [2025-01-29 20:19:24] Production.ERROR: pbx prc_insertCDR end [2025-01-29 20:19:24] Production.INFO: ==7011== Releasing lock... [2025-01-29 20:19:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 20:19:24] Production.INFO: 48.75 MB #Memory Used# [2025-01-29 20:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 17:20:06 [end_date_ymd] => 2025-01-29 20:20:06 [RateCDR] => 1 ) [2025-01-29 20:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 17:20:06' and `end` < '2025-01-29 20:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 20:20:20] Production.INFO: count ==2745 [2025-01-29 20:20:21] Production.ERROR: pbx CDR StartTime 2025-01-29 17:20:06 - End Time 2025-01-29 20:20:06 [2025-01-29 20:20:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 20:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358723', 'tblTempUsageDetail_20' ) start [2025-01-29 20:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358723', 'tblTempUsageDetail_20' ) end [2025-01-29 20:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358723', 'tblTempVendorCDR_20' ) start [2025-01-29 20:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358723', 'tblTempVendorCDR_20' ) end [2025-01-29 20:20:21] Production.INFO: ProcessCDR(1,14358723,1,1,2) [2025-01-29 20:20:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14358723,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 20:20:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14358723,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 20:20:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14358723,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 20:20:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14358723,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 20:20:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358723', 'tblTempUsageDetail_20' ) start [2025-01-29 20:20:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358723', 'tblTempUsageDetail_20' ) end [2025-01-29 20:20:26] Production.ERROR: pbx prc_insertCDR start [2025-01-29 20:20:26] Production.ERROR: pbx prc_insertCDR end [2025-01-29 20:20:26] Production.INFO: ==7144== Releasing lock... [2025-01-29 20:20:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 20:20:26] Production.INFO: 48.5 MB #Memory Used# [2025-01-29 20:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 17:21:05 [end_date_ymd] => 2025-01-29 20:21:05 [RateCDR] => 1 ) [2025-01-29 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-01-29 17:21:05' and `end` < '2025-01-29 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-01-29 20:21:19] Production.INFO: count ==2708 [2025-01-29 20:21:20] Production.ERROR: pbx CDR StartTime 2025-01-29 17:21:05 - End Time 2025-01-29 20:21:05 [2025-01-29 20:21:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 20:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358728', 'tblTempUsageDetail_20' ) start [2025-01-29 20:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358728', 'tblTempUsageDetail_20' ) end [2025-01-29 20:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358728', 'tblTempVendorCDR_20' ) start [2025-01-29 20:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358728', 'tblTempVendorCDR_20' ) end [2025-01-29 20:21:20] Production.INFO: ProcessCDR(1,14358728,1,1,2) [2025-01-29 20:21:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14358728,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 20:21:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14358728,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 20:21:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14358728,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 20:21:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14358728,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 20:21:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358728', 'tblTempUsageDetail_20' ) start [2025-01-29 20:21:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358728', 'tblTempUsageDetail_20' ) end [2025-01-29 20:21:25] Production.ERROR: pbx prc_insertCDR start [2025-01-29 20:21:25] Production.ERROR: pbx prc_insertCDR end [2025-01-29 20:21:25] Production.INFO: ==7268== Releasing lock... [2025-01-29 20:21:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 20:21:25] Production.INFO: 48.25 MB #Memory Used# [2025-01-29 20:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 17:22:06 [end_date_ymd] => 2025-01-29 20:22:06 [RateCDR] => 1 ) [2025-01-29 20:22:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 17:22:06' and `end` < '2025-01-29 20:22:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 20:22:20] Production.INFO: count ==2701 [2025-01-29 20:22:21] Production.ERROR: pbx CDR StartTime 2025-01-29 17:22:06 - End Time 2025-01-29 20:22:06 [2025-01-29 20:22:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 20:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358733', 'tblTempUsageDetail_20' ) start [2025-01-29 20:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358733', 'tblTempUsageDetail_20' ) end [2025-01-29 20:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358733', 'tblTempVendorCDR_20' ) start [2025-01-29 20:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358733', 'tblTempVendorCDR_20' ) end [2025-01-29 20:22:21] Production.INFO: ProcessCDR(1,14358733,1,1,2) [2025-01-29 20:22:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14358733,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 20:22:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14358733,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 20:22:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14358733,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 20:22:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14358733,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 20:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358733', 'tblTempUsageDetail_20' ) start [2025-01-29 20:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358733', 'tblTempUsageDetail_20' ) end [2025-01-29 20:22:24] Production.ERROR: pbx prc_insertCDR start [2025-01-29 20:22:24] Production.ERROR: pbx prc_insertCDR end [2025-01-29 20:22:24] Production.INFO: ==7389== Releasing lock... [2025-01-29 20:22:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 20:22:24] Production.INFO: 48.25 MB #Memory Used# [2025-01-29 20:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 17:23:05 [end_date_ymd] => 2025-01-29 20:23:05 [RateCDR] => 1 ) [2025-01-29 20:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 17:23:05' and `end` < '2025-01-29 20:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 20:23:18] Production.INFO: count ==3192 [2025-01-29 20:23:19] Production.ERROR: pbx CDR StartTime 2025-01-29 17:23:05 - End Time 2025-01-29 20:23:05 [2025-01-29 20:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 20:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358738', 'tblTempUsageDetail_20' ) start [2025-01-29 20:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358738', 'tblTempUsageDetail_20' ) end [2025-01-29 20:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358738', 'tblTempVendorCDR_20' ) start [2025-01-29 20:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358738', 'tblTempVendorCDR_20' ) end [2025-01-29 20:23:19] Production.INFO: ProcessCDR(1,14358738,1,1,2) [2025-01-29 20:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14358738,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 20:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14358738,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 20:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14358738,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 20:23:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14358738,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 20:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358738', 'tblTempUsageDetail_20' ) start [2025-01-29 20:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358738', 'tblTempUsageDetail_20' ) end [2025-01-29 20:23:23] Production.ERROR: pbx prc_insertCDR start [2025-01-29 20:23:23] Production.ERROR: pbx prc_insertCDR end [2025-01-29 20:23:23] Production.INFO: ==7508== Releasing lock... [2025-01-29 20:23:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 20:23:23] Production.INFO: 51.75 MB #Memory Used# [2025-01-29 20:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 17:24:06 [end_date_ymd] => 2025-01-29 20:24:06 [RateCDR] => 1 ) [2025-01-29 20:24:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 17:24:06' and `end` < '2025-01-29 20:24:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 20:24:19] Production.INFO: count ==3173 [2025-01-29 20:24:20] Production.ERROR: pbx CDR StartTime 2025-01-29 17:24:06 - End Time 2025-01-29 20:24:06 [2025-01-29 20:24:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 20:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358743', 'tblTempUsageDetail_20' ) start [2025-01-29 20:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358743', 'tblTempUsageDetail_20' ) end [2025-01-29 20:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358743', 'tblTempVendorCDR_20' ) start [2025-01-29 20:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358743', 'tblTempVendorCDR_20' ) end [2025-01-29 20:24:20] Production.INFO: ProcessCDR(1,14358743,1,1,2) [2025-01-29 20:24:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14358743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 20:24:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14358743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 20:24:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14358743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 20:24:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14358743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 20:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358743', 'tblTempUsageDetail_20' ) start [2025-01-29 20:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358743', 'tblTempUsageDetail_20' ) end [2025-01-29 20:24:23] Production.ERROR: pbx prc_insertCDR start [2025-01-29 20:24:23] Production.ERROR: pbx prc_insertCDR end [2025-01-29 20:24:23] Production.INFO: ==7638== Releasing lock... [2025-01-29 20:24:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 20:24:23] Production.INFO: 51.75 MB #Memory Used# [2025-01-29 20:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 17:25:05 [end_date_ymd] => 2025-01-29 20:25:05 [RateCDR] => 1 ) [2025-01-29 20:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 17:25:05' and `end` < '2025-01-29 20:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 20:25:18] Production.INFO: count ==3171 [2025-01-29 20:25:19] Production.ERROR: pbx CDR StartTime 2025-01-29 17:25:05 - End Time 2025-01-29 20:25:05 [2025-01-29 20:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358748', 'tblTempUsageDetail_20' ) start [2025-01-29 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358748', 'tblTempUsageDetail_20' ) end [2025-01-29 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358748', 'tblTempVendorCDR_20' ) start [2025-01-29 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358748', 'tblTempVendorCDR_20' ) end [2025-01-29 20:25:19] Production.INFO: ProcessCDR(1,14358748,1,1,2) [2025-01-29 20:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14358748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 20:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14358748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 20:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14358748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 20:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14358748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 20:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358748', 'tblTempUsageDetail_20' ) start [2025-01-29 20:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358748', 'tblTempUsageDetail_20' ) end [2025-01-29 20:25:22] Production.ERROR: pbx prc_insertCDR start [2025-01-29 20:25:22] Production.ERROR: pbx prc_insertCDR end [2025-01-29 20:25:22] Production.INFO: ==7754== Releasing lock... [2025-01-29 20:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 20:25:22] Production.INFO: 51.5 MB #Memory Used# [2025-01-29 20:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 17:26:05 [end_date_ymd] => 2025-01-29 20:26:05 [RateCDR] => 1 ) [2025-01-29 20:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 17:26:05' and `end` < '2025-01-29 20:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 20:26:18] Production.INFO: count ==3157 [2025-01-29 20:26:19] Production.ERROR: pbx CDR StartTime 2025-01-29 17:26:05 - End Time 2025-01-29 20:26:05 [2025-01-29 20:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 20:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358753', 'tblTempUsageDetail_20' ) start [2025-01-29 20:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358753', 'tblTempUsageDetail_20' ) end [2025-01-29 20:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358753', 'tblTempVendorCDR_20' ) start [2025-01-29 20:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358753', 'tblTempVendorCDR_20' ) end [2025-01-29 20:26:19] Production.INFO: ProcessCDR(1,14358753,1,1,2) [2025-01-29 20:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14358753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 20:26:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14358753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 20:26:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14358753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 20:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14358753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 20:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358753', 'tblTempUsageDetail_20' ) start [2025-01-29 20:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358753', 'tblTempUsageDetail_20' ) end [2025-01-29 20:26:23] Production.ERROR: pbx prc_insertCDR start [2025-01-29 20:26:23] Production.ERROR: pbx prc_insertCDR end [2025-01-29 20:26:23] Production.INFO: ==7880== Releasing lock... [2025-01-29 20:26:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 20:26:23] Production.INFO: 52 MB #Memory Used# [2025-01-29 20:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 17:27:05 [end_date_ymd] => 2025-01-29 20:27:05 [RateCDR] => 1 ) [2025-01-29 20:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 17:27:05' and `end` < '2025-01-29 20:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 20:27:19] Production.INFO: count ==3159 [2025-01-29 20:27:20] Production.ERROR: pbx CDR StartTime 2025-01-29 17:27:05 - End Time 2025-01-29 20:27:05 [2025-01-29 20:27:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 20:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358758', 'tblTempUsageDetail_20' ) start [2025-01-29 20:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358758', 'tblTempUsageDetail_20' ) end [2025-01-29 20:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358758', 'tblTempVendorCDR_20' ) start [2025-01-29 20:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358758', 'tblTempVendorCDR_20' ) end [2025-01-29 20:27:20] Production.INFO: ProcessCDR(1,14358758,1,1,2) [2025-01-29 20:27:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14358758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 20:27:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14358758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 20:27:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14358758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 20:27:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14358758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 20:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358758', 'tblTempUsageDetail_20' ) start [2025-01-29 20:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358758', 'tblTempUsageDetail_20' ) end [2025-01-29 20:27:23] Production.ERROR: pbx prc_insertCDR start [2025-01-29 20:27:23] Production.ERROR: pbx prc_insertCDR end [2025-01-29 20:27:23] Production.INFO: ==8004== Releasing lock... [2025-01-29 20:27:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 20:27:23] Production.INFO: 51.5 MB #Memory Used# [2025-01-29 20:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 17:28:05 [end_date_ymd] => 2025-01-29 20:28:05 [RateCDR] => 1 ) [2025-01-29 20:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 17:28:05' and `end` < '2025-01-29 20:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 20:28:19] Production.INFO: count ==3166 [2025-01-29 20:28:20] Production.ERROR: pbx CDR StartTime 2025-01-29 17:28:05 - End Time 2025-01-29 20:28:05 [2025-01-29 20:28:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 20:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358763', 'tblTempUsageDetail_20' ) start [2025-01-29 20:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358763', 'tblTempUsageDetail_20' ) end [2025-01-29 20:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358763', 'tblTempVendorCDR_20' ) start [2025-01-29 20:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358763', 'tblTempVendorCDR_20' ) end [2025-01-29 20:28:20] Production.INFO: ProcessCDR(1,14358763,1,1,2) [2025-01-29 20:28:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14358763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 20:28:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14358763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 20:28:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14358763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 20:28:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14358763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 20:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358763', 'tblTempUsageDetail_20' ) start [2025-01-29 20:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358763', 'tblTempUsageDetail_20' ) end [2025-01-29 20:28:23] Production.ERROR: pbx prc_insertCDR start [2025-01-29 20:28:23] Production.ERROR: pbx prc_insertCDR end [2025-01-29 20:28:23] Production.INFO: ==8120== Releasing lock... [2025-01-29 20:28:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 20:28:23] Production.INFO: 52 MB #Memory Used# [2025-01-29 20:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 17:29:06 [end_date_ymd] => 2025-01-29 20:29:06 [RateCDR] => 1 ) [2025-01-29 20:29:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 17:29:06' and `end` < '2025-01-29 20:29:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 20:29:20] Production.INFO: count ==3136 [2025-01-29 20:29:21] Production.ERROR: pbx CDR StartTime 2025-01-29 17:29:06 - End Time 2025-01-29 20:29:06 [2025-01-29 20:29:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 20:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358768', 'tblTempUsageDetail_20' ) start [2025-01-29 20:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358768', 'tblTempUsageDetail_20' ) end [2025-01-29 20:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358768', 'tblTempVendorCDR_20' ) start [2025-01-29 20:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358768', 'tblTempVendorCDR_20' ) end [2025-01-29 20:29:21] Production.INFO: ProcessCDR(1,14358768,1,1,2) [2025-01-29 20:29:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14358768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 20:29:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14358768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 20:29:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14358768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 20:29:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14358768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 20:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358768', 'tblTempUsageDetail_20' ) start [2025-01-29 20:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358768', 'tblTempUsageDetail_20' ) end [2025-01-29 20:29:24] Production.ERROR: pbx prc_insertCDR start [2025-01-29 20:29:24] Production.ERROR: pbx prc_insertCDR end [2025-01-29 20:29:24] Production.INFO: ==8239== Releasing lock... [2025-01-29 20:29:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 20:29:24] Production.INFO: 51.25 MB #Memory Used# [2025-01-29 20:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 17:30:06 [end_date_ymd] => 2025-01-29 20:30:06 [RateCDR] => 1 ) [2025-01-29 20:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 17:30:06' and `end` < '2025-01-29 20:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 20:30:19] Production.INFO: count ==3135 [2025-01-29 20:30:20] Production.ERROR: pbx CDR StartTime 2025-01-29 17:30:06 - End Time 2025-01-29 20:30:06 [2025-01-29 20:30:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 20:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358774', 'tblTempUsageDetail_20' ) start [2025-01-29 20:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358774', 'tblTempUsageDetail_20' ) end [2025-01-29 20:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358774', 'tblTempVendorCDR_20' ) start [2025-01-29 20:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358774', 'tblTempVendorCDR_20' ) end [2025-01-29 20:30:20] Production.INFO: ProcessCDR(1,14358774,1,1,2) [2025-01-29 20:30:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14358774,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 20:30:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14358774,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 20:30:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14358774,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 20:30:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14358774,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 20:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358774', 'tblTempUsageDetail_20' ) start [2025-01-29 20:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358774', 'tblTempUsageDetail_20' ) end [2025-01-29 20:30:24] Production.ERROR: pbx prc_insertCDR start [2025-01-29 20:30:24] Production.ERROR: pbx prc_insertCDR end [2025-01-29 20:30:24] Production.INFO: ==8361== Releasing lock... [2025-01-29 20:30:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 20:30:24] Production.INFO: 52 MB #Memory Used# [2025-01-29 20:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 17:31:05 [end_date_ymd] => 2025-01-29 20:31:05 [RateCDR] => 1 ) [2025-01-29 20:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 17:31:05' and `end` < '2025-01-29 20:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 20:31:21] Production.INFO: count ==3305 [2025-01-29 20:31:22] Production.ERROR: pbx CDR StartTime 2025-01-29 17:31:05 - End Time 2025-01-29 20:31:05 [2025-01-29 20:31:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 20:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358779', 'tblTempUsageDetail_20' ) start [2025-01-29 20:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358779', 'tblTempUsageDetail_20' ) end [2025-01-29 20:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358779', 'tblTempVendorCDR_20' ) start [2025-01-29 20:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358779', 'tblTempVendorCDR_20' ) end [2025-01-29 20:31:22] Production.INFO: ProcessCDR(1,14358779,1,1,2) [2025-01-29 20:31:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14358779,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 20:31:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14358779,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 20:31:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14358779,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 20:31:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14358779,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 20:31:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358779', 'tblTempUsageDetail_20' ) start [2025-01-29 20:31:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358779', 'tblTempUsageDetail_20' ) end [2025-01-29 20:31:27] Production.ERROR: pbx prc_insertCDR start [2025-01-29 20:31:27] Production.ERROR: pbx prc_insertCDR end [2025-01-29 20:31:27] Production.INFO: ==8483== Releasing lock... [2025-01-29 20:31:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 20:31:27] Production.INFO: 52.5 MB #Memory Used# [2025-01-29 20:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 17:32:05 [end_date_ymd] => 2025-01-29 20:32:05 [RateCDR] => 1 ) [2025-01-29 20:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 17:32:05' and `end` < '2025-01-29 20:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 20:32:18] Production.INFO: count ==3451 [2025-01-29 20:32:19] Production.ERROR: pbx CDR StartTime 2025-01-29 17:32:05 - End Time 2025-01-29 20:32:05 [2025-01-29 20:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 20:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358784', 'tblTempUsageDetail_20' ) start [2025-01-29 20:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358784', 'tblTempUsageDetail_20' ) end [2025-01-29 20:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358784', 'tblTempVendorCDR_20' ) start [2025-01-29 20:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358784', 'tblTempVendorCDR_20' ) end [2025-01-29 20:32:19] Production.INFO: ProcessCDR(1,14358784,1,1,2) [2025-01-29 20:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14358784,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 20:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14358784,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 20:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14358784,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 20:32:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14358784,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 20:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358784', 'tblTempUsageDetail_20' ) start [2025-01-29 20:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358784', 'tblTempUsageDetail_20' ) end [2025-01-29 20:32:23] Production.ERROR: pbx prc_insertCDR start [2025-01-29 20:32:23] Production.ERROR: pbx prc_insertCDR end [2025-01-29 20:32:23] Production.INFO: ==8601== Releasing lock... [2025-01-29 20:32:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 20:32:23] Production.INFO: 53.75 MB #Memory Used# [2025-01-29 20:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 17:33:05 [end_date_ymd] => 2025-01-29 20:33:05 [RateCDR] => 1 ) [2025-01-29 20:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 17:33:05' and `end` < '2025-01-29 20:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 20:33:18] Production.INFO: count ==3450 [2025-01-29 20:33:20] Production.ERROR: pbx CDR StartTime 2025-01-29 17:33:05 - End Time 2025-01-29 20:33:05 [2025-01-29 20:33:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 20:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358789', 'tblTempUsageDetail_20' ) start [2025-01-29 20:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358789', 'tblTempUsageDetail_20' ) end [2025-01-29 20:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358789', 'tblTempVendorCDR_20' ) start [2025-01-29 20:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358789', 'tblTempVendorCDR_20' ) end [2025-01-29 20:33:20] Production.INFO: ProcessCDR(1,14358789,1,1,2) [2025-01-29 20:33:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14358789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 20:33:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14358789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 20:33:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14358789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 20:33:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14358789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 20:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358789', 'tblTempUsageDetail_20' ) start [2025-01-29 20:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358789', 'tblTempUsageDetail_20' ) end [2025-01-29 20:33:23] Production.ERROR: pbx prc_insertCDR start [2025-01-29 20:33:23] Production.ERROR: pbx prc_insertCDR end [2025-01-29 20:33:23] Production.INFO: ==8709== Releasing lock... [2025-01-29 20:33:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 20:33:23] Production.INFO: 53.75 MB #Memory Used# [2025-01-29 20:34:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 17:34:04 [end_date_ymd] => 2025-01-29 20:34:04 [RateCDR] => 1 ) [2025-01-29 20:34:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 17:34:04' and `end` < '2025-01-29 20:34:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 20:34:17] Production.INFO: count ==3531 [2025-01-29 20:34:19] Production.ERROR: pbx CDR StartTime 2025-01-29 17:34:04 - End Time 2025-01-29 20:34:04 [2025-01-29 20:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 20:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358794', 'tblTempUsageDetail_20' ) start [2025-01-29 20:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358794', 'tblTempUsageDetail_20' ) end [2025-01-29 20:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358794', 'tblTempVendorCDR_20' ) start [2025-01-29 20:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358794', 'tblTempVendorCDR_20' ) end [2025-01-29 20:34:19] Production.INFO: ProcessCDR(1,14358794,1,1,2) [2025-01-29 20:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14358794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 20:34:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14358794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 20:34:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14358794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 20:34:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14358794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 20:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358794', 'tblTempUsageDetail_20' ) start [2025-01-29 20:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358794', 'tblTempUsageDetail_20' ) end [2025-01-29 20:34:23] Production.ERROR: pbx prc_insertCDR start [2025-01-29 20:34:23] Production.ERROR: pbx prc_insertCDR end [2025-01-29 20:34:23] Production.INFO: ==8824== Releasing lock... [2025-01-29 20:34:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 20:34:23] Production.INFO: 54.25 MB #Memory Used# [2025-01-29 20:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 17:35:05 [end_date_ymd] => 2025-01-29 20:35:05 [RateCDR] => 1 ) [2025-01-29 20:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 17:35:05' and `end` < '2025-01-29 20:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 20:35:18] Production.INFO: count ==3526 [2025-01-29 20:35:19] Production.ERROR: pbx CDR StartTime 2025-01-29 17:35:05 - End Time 2025-01-29 20:35:05 [2025-01-29 20:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 20:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358799', 'tblTempUsageDetail_20' ) start [2025-01-29 20:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358799', 'tblTempUsageDetail_20' ) end [2025-01-29 20:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358799', 'tblTempVendorCDR_20' ) start [2025-01-29 20:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358799', 'tblTempVendorCDR_20' ) end [2025-01-29 20:35:19] Production.INFO: ProcessCDR(1,14358799,1,1,2) [2025-01-29 20:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14358799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 20:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14358799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 20:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14358799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 20:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14358799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 20:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358799', 'tblTempUsageDetail_20' ) start [2025-01-29 20:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358799', 'tblTempUsageDetail_20' ) end [2025-01-29 20:35:22] Production.ERROR: pbx prc_insertCDR start [2025-01-29 20:35:22] Production.ERROR: pbx prc_insertCDR end [2025-01-29 20:35:22] Production.INFO: ==8902== Releasing lock... [2025-01-29 20:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 20:35:22] Production.INFO: 54.25 MB #Memory Used# [2025-01-29 20:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 17:36:05 [end_date_ymd] => 2025-01-29 20:36:05 [RateCDR] => 1 ) [2025-01-29 20:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 17:36:05' and `end` < '2025-01-29 20:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 20:36:18] Production.INFO: count ==3522 [2025-01-29 20:36:19] Production.ERROR: pbx CDR StartTime 2025-01-29 17:36:05 - End Time 2025-01-29 20:36:05 [2025-01-29 20:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 20:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358804', 'tblTempUsageDetail_20' ) start [2025-01-29 20:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358804', 'tblTempUsageDetail_20' ) end [2025-01-29 20:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358804', 'tblTempVendorCDR_20' ) start [2025-01-29 20:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358804', 'tblTempVendorCDR_20' ) end [2025-01-29 20:36:19] Production.INFO: ProcessCDR(1,14358804,1,1,2) [2025-01-29 20:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14358804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 20:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14358804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 20:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14358804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 20:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14358804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 20:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358804', 'tblTempUsageDetail_20' ) start [2025-01-29 20:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358804', 'tblTempUsageDetail_20' ) end [2025-01-29 20:36:22] Production.ERROR: pbx prc_insertCDR start [2025-01-29 20:36:22] Production.ERROR: pbx prc_insertCDR end [2025-01-29 20:36:22] Production.INFO: ==8981== Releasing lock... [2025-01-29 20:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 20:36:22] Production.INFO: 54.25 MB #Memory Used# [2025-01-29 20:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 17:37:05 [end_date_ymd] => 2025-01-29 20:37:05 [RateCDR] => 1 ) [2025-01-29 20:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 17:37:05' and `end` < '2025-01-29 20:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 20:37:18] Production.INFO: count ==3517 [2025-01-29 20:37:19] Production.ERROR: pbx CDR StartTime 2025-01-29 17:37:05 - End Time 2025-01-29 20:37:05 [2025-01-29 20:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 20:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358809', 'tblTempUsageDetail_20' ) start [2025-01-29 20:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358809', 'tblTempUsageDetail_20' ) end [2025-01-29 20:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358809', 'tblTempVendorCDR_20' ) start [2025-01-29 20:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358809', 'tblTempVendorCDR_20' ) end [2025-01-29 20:37:19] Production.INFO: ProcessCDR(1,14358809,1,1,2) [2025-01-29 20:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14358809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 20:37:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14358809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 20:37:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14358809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 20:37:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14358809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 20:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358809', 'tblTempUsageDetail_20' ) start [2025-01-29 20:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358809', 'tblTempUsageDetail_20' ) end [2025-01-29 20:37:24] Production.ERROR: pbx prc_insertCDR start [2025-01-29 20:37:24] Production.ERROR: pbx prc_insertCDR end [2025-01-29 20:37:24] Production.INFO: ==9050== Releasing lock... [2025-01-29 20:37:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 20:37:24] Production.INFO: 54.25 MB #Memory Used# [2025-01-29 20:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 17:38:05 [end_date_ymd] => 2025-01-29 20:38:05 [RateCDR] => 1 ) [2025-01-29 20:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 17:38:05' and `end` < '2025-01-29 20:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 20:38:18] Production.INFO: count ==3517 [2025-01-29 20:38:19] Production.ERROR: pbx CDR StartTime 2025-01-29 17:38:05 - End Time 2025-01-29 20:38:05 [2025-01-29 20:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 20:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358814', 'tblTempUsageDetail_20' ) start [2025-01-29 20:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358814', 'tblTempUsageDetail_20' ) end [2025-01-29 20:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358814', 'tblTempVendorCDR_20' ) start [2025-01-29 20:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358814', 'tblTempVendorCDR_20' ) end [2025-01-29 20:38:19] Production.INFO: ProcessCDR(1,14358814,1,1,2) [2025-01-29 20:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14358814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 20:38:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14358814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 20:38:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14358814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 20:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14358814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 20:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358814', 'tblTempUsageDetail_20' ) start [2025-01-29 20:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358814', 'tblTempUsageDetail_20' ) end [2025-01-29 20:38:24] Production.ERROR: pbx prc_insertCDR start [2025-01-29 20:38:24] Production.ERROR: pbx prc_insertCDR end [2025-01-29 20:38:24] Production.INFO: ==9128== Releasing lock... [2025-01-29 20:38:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 20:38:24] Production.INFO: 54.25 MB #Memory Used# [2025-01-29 20:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 17:39:05 [end_date_ymd] => 2025-01-29 20:39:05 [RateCDR] => 1 ) [2025-01-29 20:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 17:39:05' and `end` < '2025-01-29 20:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 20:39:18] Production.INFO: count ==3517 [2025-01-29 20:39:19] Production.ERROR: pbx CDR StartTime 2025-01-29 17:39:05 - End Time 2025-01-29 20:39:05 [2025-01-29 20:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 20:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358819', 'tblTempUsageDetail_20' ) start [2025-01-29 20:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358819', 'tblTempUsageDetail_20' ) end [2025-01-29 20:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358819', 'tblTempVendorCDR_20' ) start [2025-01-29 20:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358819', 'tblTempVendorCDR_20' ) end [2025-01-29 20:39:19] Production.INFO: ProcessCDR(1,14358819,1,1,2) [2025-01-29 20:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14358819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 20:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14358819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 20:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14358819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 20:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14358819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 20:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358819', 'tblTempUsageDetail_20' ) start [2025-01-29 20:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358819', 'tblTempUsageDetail_20' ) end [2025-01-29 20:39:22] Production.ERROR: pbx prc_insertCDR start [2025-01-29 20:39:22] Production.ERROR: pbx prc_insertCDR end [2025-01-29 20:39:22] Production.INFO: ==9200== Releasing lock... [2025-01-29 20:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 20:39:22] Production.INFO: 54.25 MB #Memory Used# [2025-01-29 20:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 17:40:06 [end_date_ymd] => 2025-01-29 20:40:06 [RateCDR] => 1 ) [2025-01-29 20:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 17:40:06' and `end` < '2025-01-29 20:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 20:40:19] Production.INFO: count ==3523 [2025-01-29 20:40:21] Production.ERROR: pbx CDR StartTime 2025-01-29 17:40:06 - End Time 2025-01-29 20:40:06 [2025-01-29 20:40:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 20:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358824', 'tblTempUsageDetail_20' ) start [2025-01-29 20:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358824', 'tblTempUsageDetail_20' ) end [2025-01-29 20:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358824', 'tblTempVendorCDR_20' ) start [2025-01-29 20:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358824', 'tblTempVendorCDR_20' ) end [2025-01-29 20:40:21] Production.INFO: ProcessCDR(1,14358824,1,1,2) [2025-01-29 20:40:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14358824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 20:40:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14358824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 20:40:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14358824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 20:40:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14358824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 20:40:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358824', 'tblTempUsageDetail_20' ) start [2025-01-29 20:40:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358824', 'tblTempUsageDetail_20' ) end [2025-01-29 20:40:25] Production.ERROR: pbx prc_insertCDR start [2025-01-29 20:40:25] Production.ERROR: pbx prc_insertCDR end [2025-01-29 20:40:25] Production.INFO: ==9277== Releasing lock... [2025-01-29 20:40:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 20:40:25] Production.INFO: 54.25 MB #Memory Used# [2025-01-29 20:41:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 17:41:04 [end_date_ymd] => 2025-01-29 20:41:04 [RateCDR] => 1 ) [2025-01-29 20:41:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 17:41:04' and `end` < '2025-01-29 20:41:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 20:41:18] Production.INFO: count ==3448 [2025-01-29 20:41:19] Production.ERROR: pbx CDR StartTime 2025-01-29 17:41:04 - End Time 2025-01-29 20:41:04 [2025-01-29 20:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 20:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358830', 'tblTempUsageDetail_20' ) start [2025-01-29 20:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358830', 'tblTempUsageDetail_20' ) end [2025-01-29 20:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358830', 'tblTempVendorCDR_20' ) start [2025-01-29 20:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358830', 'tblTempVendorCDR_20' ) end [2025-01-29 20:41:19] Production.INFO: ProcessCDR(1,14358830,1,1,2) [2025-01-29 20:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14358830,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 20:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14358830,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 20:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14358830,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 20:41:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14358830,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 20:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358830', 'tblTempUsageDetail_20' ) start [2025-01-29 20:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358830', 'tblTempUsageDetail_20' ) end [2025-01-29 20:41:23] Production.ERROR: pbx prc_insertCDR start [2025-01-29 20:41:23] Production.ERROR: pbx prc_insertCDR end [2025-01-29 20:41:23] Production.INFO: ==9349== Releasing lock... [2025-01-29 20:41:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 20:41:23] Production.INFO: 53.75 MB #Memory Used# [2025-01-29 20:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 17:42:06 [end_date_ymd] => 2025-01-29 20:42:06 [RateCDR] => 1 ) [2025-01-29 20:42:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 17:42:06' and `end` < '2025-01-29 20:42:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 20:42:19] Production.INFO: count ==3441 [2025-01-29 20:42:20] Production.ERROR: pbx CDR StartTime 2025-01-29 17:42:06 - End Time 2025-01-29 20:42:06 [2025-01-29 20:42:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 20:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358835', 'tblTempUsageDetail_20' ) start [2025-01-29 20:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358835', 'tblTempUsageDetail_20' ) end [2025-01-29 20:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358835', 'tblTempVendorCDR_20' ) start [2025-01-29 20:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358835', 'tblTempVendorCDR_20' ) end [2025-01-29 20:42:20] Production.INFO: ProcessCDR(1,14358835,1,1,2) [2025-01-29 20:42:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14358835,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 20:42:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14358835,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 20:42:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14358835,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 20:42:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14358835,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 20:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358835', 'tblTempUsageDetail_20' ) start [2025-01-29 20:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358835', 'tblTempUsageDetail_20' ) end [2025-01-29 20:42:24] Production.ERROR: pbx prc_insertCDR start [2025-01-29 20:42:24] Production.ERROR: pbx prc_insertCDR end [2025-01-29 20:42:24] Production.INFO: ==9421== Releasing lock... [2025-01-29 20:42:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 20:42:24] Production.INFO: 53.5 MB #Memory Used# [2025-01-29 20:43:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 17:43:04 [end_date_ymd] => 2025-01-29 20:43:04 [RateCDR] => 1 ) [2025-01-29 20:43:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 17:43:04' and `end` < '2025-01-29 20:43:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 20:43:17] Production.INFO: count ==3438 [2025-01-29 20:43:18] Production.ERROR: pbx CDR StartTime 2025-01-29 17:43:04 - End Time 2025-01-29 20:43:04 [2025-01-29 20:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 20:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358840', 'tblTempUsageDetail_20' ) start [2025-01-29 20:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358840', 'tblTempUsageDetail_20' ) end [2025-01-29 20:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358840', 'tblTempVendorCDR_20' ) start [2025-01-29 20:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358840', 'tblTempVendorCDR_20' ) end [2025-01-29 20:43:19] Production.INFO: ProcessCDR(1,14358840,1,1,2) [2025-01-29 20:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14358840,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 20:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14358840,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 20:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14358840,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 20:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14358840,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 20:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358840', 'tblTempUsageDetail_20' ) start [2025-01-29 20:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358840', 'tblTempUsageDetail_20' ) end [2025-01-29 20:43:22] Production.ERROR: pbx prc_insertCDR start [2025-01-29 20:43:22] Production.ERROR: pbx prc_insertCDR end [2025-01-29 20:43:22] Production.INFO: ==9495== Releasing lock... [2025-01-29 20:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 20:43:22] Production.INFO: 54.25 MB #Memory Used# [2025-01-29 20:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 17:44:05 [end_date_ymd] => 2025-01-29 20:44:05 [RateCDR] => 1 ) [2025-01-29 20:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 17:44:05' and `end` < '2025-01-29 20:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 20:44:19] Production.INFO: count ==3436 [2025-01-29 20:44:20] Production.ERROR: pbx CDR StartTime 2025-01-29 17:44:05 - End Time 2025-01-29 20:44:05 [2025-01-29 20:44:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 20:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358845', 'tblTempUsageDetail_20' ) start [2025-01-29 20:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358845', 'tblTempUsageDetail_20' ) end [2025-01-29 20:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358845', 'tblTempVendorCDR_20' ) start [2025-01-29 20:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358845', 'tblTempVendorCDR_20' ) end [2025-01-29 20:44:20] Production.INFO: ProcessCDR(1,14358845,1,1,2) [2025-01-29 20:44:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14358845,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 20:44:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14358845,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 20:44:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14358845,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 20:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14358845,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 20:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358845', 'tblTempUsageDetail_20' ) start [2025-01-29 20:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358845', 'tblTempUsageDetail_20' ) end [2025-01-29 20:44:23] Production.ERROR: pbx prc_insertCDR start [2025-01-29 20:44:23] Production.ERROR: pbx prc_insertCDR end [2025-01-29 20:44:23] Production.INFO: ==9567== Releasing lock... [2025-01-29 20:44:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 20:44:23] Production.INFO: 53.5 MB #Memory Used# [2025-01-29 20:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 17:45:05 [end_date_ymd] => 2025-01-29 20:45:05 [RateCDR] => 1 ) [2025-01-29 20:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 17:45:05' and `end` < '2025-01-29 20:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 20:45:19] Production.INFO: count ==3440 [2025-01-29 20:45:20] Production.ERROR: pbx CDR StartTime 2025-01-29 17:45:05 - End Time 2025-01-29 20:45:05 [2025-01-29 20:45:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 20:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358850', 'tblTempUsageDetail_20' ) start [2025-01-29 20:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358850', 'tblTempUsageDetail_20' ) end [2025-01-29 20:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358850', 'tblTempVendorCDR_20' ) start [2025-01-29 20:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358850', 'tblTempVendorCDR_20' ) end [2025-01-29 20:45:20] Production.INFO: ProcessCDR(1,14358850,1,1,2) [2025-01-29 20:45:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14358850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 20:45:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14358850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 20:45:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14358850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 20:45:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14358850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 20:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358850', 'tblTempUsageDetail_20' ) start [2025-01-29 20:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358850', 'tblTempUsageDetail_20' ) end [2025-01-29 20:45:23] Production.ERROR: pbx prc_insertCDR start [2025-01-29 20:45:23] Production.ERROR: pbx prc_insertCDR end [2025-01-29 20:45:23] Production.INFO: ==9639== Releasing lock... [2025-01-29 20:45:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 20:45:23] Production.INFO: 53.75 MB #Memory Used# [2025-01-29 20:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 17:46:05 [end_date_ymd] => 2025-01-29 20:46:05 [RateCDR] => 1 ) [2025-01-29 20:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 17:46:05' and `end` < '2025-01-29 20:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 20:46:18] Production.INFO: count ==3444 [2025-01-29 20:46:19] Production.ERROR: pbx CDR StartTime 2025-01-29 17:46:05 - End Time 2025-01-29 20:46:05 [2025-01-29 20:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 20:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358855', 'tblTempUsageDetail_20' ) start [2025-01-29 20:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358855', 'tblTempUsageDetail_20' ) end [2025-01-29 20:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358855', 'tblTempVendorCDR_20' ) start [2025-01-29 20:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358855', 'tblTempVendorCDR_20' ) end [2025-01-29 20:46:20] Production.INFO: ProcessCDR(1,14358855,1,1,2) [2025-01-29 20:46:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14358855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 20:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14358855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 20:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14358855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 20:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14358855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 20:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358855', 'tblTempUsageDetail_20' ) start [2025-01-29 20:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358855', 'tblTempUsageDetail_20' ) end [2025-01-29 20:46:23] Production.ERROR: pbx prc_insertCDR start [2025-01-29 20:46:23] Production.ERROR: pbx prc_insertCDR end [2025-01-29 20:46:23] Production.INFO: ==9710== Releasing lock... [2025-01-29 20:46:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 20:46:23] Production.INFO: 53.75 MB #Memory Used# [2025-01-29 20:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 17:47:05 [end_date_ymd] => 2025-01-29 20:47:05 [RateCDR] => 1 ) [2025-01-29 20:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 17:47:05' and `end` < '2025-01-29 20:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 20:47:19] Production.INFO: count ==3443 [2025-01-29 20:47:20] Production.ERROR: pbx CDR StartTime 2025-01-29 17:47:05 - End Time 2025-01-29 20:47:05 [2025-01-29 20:47:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 20:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358860', 'tblTempUsageDetail_20' ) start [2025-01-29 20:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358860', 'tblTempUsageDetail_20' ) end [2025-01-29 20:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358860', 'tblTempVendorCDR_20' ) start [2025-01-29 20:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358860', 'tblTempVendorCDR_20' ) end [2025-01-29 20:47:20] Production.INFO: ProcessCDR(1,14358860,1,1,2) [2025-01-29 20:47:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14358860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 20:47:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14358860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 20:47:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14358860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 20:47:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14358860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 20:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358860', 'tblTempUsageDetail_20' ) start [2025-01-29 20:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358860', 'tblTempUsageDetail_20' ) end [2025-01-29 20:47:24] Production.ERROR: pbx prc_insertCDR start [2025-01-29 20:47:24] Production.ERROR: pbx prc_insertCDR end [2025-01-29 20:47:24] Production.INFO: ==9782== Releasing lock... [2025-01-29 20:47:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 20:47:24] Production.INFO: 54.5 MB #Memory Used# [2025-01-29 20:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 17:48:05 [end_date_ymd] => 2025-01-29 20:48:05 [RateCDR] => 1 ) [2025-01-29 20:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 17:48:05' and `end` < '2025-01-29 20:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 20:48:18] Production.INFO: count ==3442 [2025-01-29 20:48:19] Production.ERROR: pbx CDR StartTime 2025-01-29 17:48:05 - End Time 2025-01-29 20:48:05 [2025-01-29 20:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 20:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358865', 'tblTempUsageDetail_20' ) start [2025-01-29 20:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358865', 'tblTempUsageDetail_20' ) end [2025-01-29 20:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358865', 'tblTempVendorCDR_20' ) start [2025-01-29 20:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358865', 'tblTempVendorCDR_20' ) end [2025-01-29 20:48:19] Production.INFO: ProcessCDR(1,14358865,1,1,2) [2025-01-29 20:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14358865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 20:48:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14358865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 20:48:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14358865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 20:48:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14358865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 20:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358865', 'tblTempUsageDetail_20' ) start [2025-01-29 20:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358865', 'tblTempUsageDetail_20' ) end [2025-01-29 20:48:24] Production.ERROR: pbx prc_insertCDR start [2025-01-29 20:48:24] Production.ERROR: pbx prc_insertCDR end [2025-01-29 20:48:24] Production.INFO: ==9856== Releasing lock... [2025-01-29 20:48:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 20:48:24] Production.INFO: 53.75 MB #Memory Used# [2025-01-29 20:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 17:49:05 [end_date_ymd] => 2025-01-29 20:49:05 [RateCDR] => 1 ) [2025-01-29 20:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 17:49:05' and `end` < '2025-01-29 20:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 20:49:18] Production.INFO: count ==3433 [2025-01-29 20:49:20] Production.ERROR: pbx CDR StartTime 2025-01-29 17:49:05 - End Time 2025-01-29 20:49:05 [2025-01-29 20:49:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 20:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358870', 'tblTempUsageDetail_20' ) start [2025-01-29 20:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358870', 'tblTempUsageDetail_20' ) end [2025-01-29 20:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358870', 'tblTempVendorCDR_20' ) start [2025-01-29 20:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358870', 'tblTempVendorCDR_20' ) end [2025-01-29 20:49:20] Production.INFO: ProcessCDR(1,14358870,1,1,2) [2025-01-29 20:49:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14358870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 20:49:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14358870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 20:49:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14358870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 20:49:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14358870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 20:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358870', 'tblTempUsageDetail_20' ) start [2025-01-29 20:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358870', 'tblTempUsageDetail_20' ) end [2025-01-29 20:49:23] Production.ERROR: pbx prc_insertCDR start [2025-01-29 20:49:23] Production.ERROR: pbx prc_insertCDR end [2025-01-29 20:49:23] Production.INFO: ==9969== Releasing lock... [2025-01-29 20:49:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 20:49:23] Production.INFO: 53.5 MB #Memory Used# [2025-01-29 20:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 17:50:06 [end_date_ymd] => 2025-01-29 20:50:06 [RateCDR] => 1 ) [2025-01-29 20:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 17:50:06' and `end` < '2025-01-29 20:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 20:50:19] Production.INFO: count ==3429 [2025-01-29 20:50:20] Production.ERROR: pbx CDR StartTime 2025-01-29 17:50:06 - End Time 2025-01-29 20:50:06 [2025-01-29 20:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 20:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358876', 'tblTempUsageDetail_20' ) start [2025-01-29 20:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358876', 'tblTempUsageDetail_20' ) end [2025-01-29 20:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358876', 'tblTempVendorCDR_20' ) start [2025-01-29 20:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358876', 'tblTempVendorCDR_20' ) end [2025-01-29 20:50:20] Production.INFO: ProcessCDR(1,14358876,1,1,2) [2025-01-29 20:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14358876,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 20:50:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14358876,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 20:50:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14358876,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 20:50:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14358876,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 20:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358876', 'tblTempUsageDetail_20' ) start [2025-01-29 20:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358876', 'tblTempUsageDetail_20' ) end [2025-01-29 20:50:24] Production.ERROR: pbx prc_insertCDR start [2025-01-29 20:50:24] Production.ERROR: pbx prc_insertCDR end [2025-01-29 20:50:24] Production.INFO: ==10045== Releasing lock... [2025-01-29 20:50:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 20:50:24] Production.INFO: 54.75 MB #Memory Used# [2025-01-29 20:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 17:51:05 [end_date_ymd] => 2025-01-29 20:51:05 [RateCDR] => 1 ) [2025-01-29 20:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 17:51:05' and `end` < '2025-01-29 20:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 20:51:18] Production.INFO: count ==3369 [2025-01-29 20:51:19] Production.ERROR: pbx CDR StartTime 2025-01-29 17:51:05 - End Time 2025-01-29 20:51:05 [2025-01-29 20:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 20:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358881', 'tblTempUsageDetail_20' ) start [2025-01-29 20:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358881', 'tblTempUsageDetail_20' ) end [2025-01-29 20:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358881', 'tblTempVendorCDR_20' ) start [2025-01-29 20:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358881', 'tblTempVendorCDR_20' ) end [2025-01-29 20:51:19] Production.INFO: ProcessCDR(1,14358881,1,1,2) [2025-01-29 20:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14358881,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 20:51:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14358881,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 20:51:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14358881,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 20:51:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14358881,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 20:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358881', 'tblTempUsageDetail_20' ) start [2025-01-29 20:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358881', 'tblTempUsageDetail_20' ) end [2025-01-29 20:51:24] Production.ERROR: pbx prc_insertCDR start [2025-01-29 20:51:24] Production.ERROR: pbx prc_insertCDR end [2025-01-29 20:51:24] Production.INFO: ==10120== Releasing lock... [2025-01-29 20:51:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 20:51:24] Production.INFO: 53 MB #Memory Used# [2025-01-29 20:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 17:52:05 [end_date_ymd] => 2025-01-29 20:52:05 [RateCDR] => 1 ) [2025-01-29 20:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 17:52:05' and `end` < '2025-01-29 20:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 20:52:18] Production.INFO: count ==3364 [2025-01-29 20:52:19] Production.ERROR: pbx CDR StartTime 2025-01-29 17:52:05 - End Time 2025-01-29 20:52:05 [2025-01-29 20:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 20:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358886', 'tblTempUsageDetail_20' ) start [2025-01-29 20:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358886', 'tblTempUsageDetail_20' ) end [2025-01-29 20:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358886', 'tblTempVendorCDR_20' ) start [2025-01-29 20:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358886', 'tblTempVendorCDR_20' ) end [2025-01-29 20:52:19] Production.INFO: ProcessCDR(1,14358886,1,1,2) [2025-01-29 20:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14358886,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 20:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14358886,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 20:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14358886,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 20:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14358886,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 20:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358886', 'tblTempUsageDetail_20' ) start [2025-01-29 20:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358886', 'tblTempUsageDetail_20' ) end [2025-01-29 20:52:22] Production.ERROR: pbx prc_insertCDR start [2025-01-29 20:52:22] Production.ERROR: pbx prc_insertCDR end [2025-01-29 20:52:22] Production.INFO: ==10189== Releasing lock... [2025-01-29 20:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 20:52:22] Production.INFO: 53 MB #Memory Used# [2025-01-29 20:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 17:53:05 [end_date_ymd] => 2025-01-29 20:53:05 [RateCDR] => 1 ) [2025-01-29 20:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 17:53:05' and `end` < '2025-01-29 20:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 20:53:18] Production.INFO: count ==3357 [2025-01-29 20:53:19] Production.ERROR: pbx CDR StartTime 2025-01-29 17:53:05 - End Time 2025-01-29 20:53:05 [2025-01-29 20:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 20:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358891', 'tblTempUsageDetail_20' ) start [2025-01-29 20:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358891', 'tblTempUsageDetail_20' ) end [2025-01-29 20:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358891', 'tblTempVendorCDR_20' ) start [2025-01-29 20:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358891', 'tblTempVendorCDR_20' ) end [2025-01-29 20:53:19] Production.INFO: ProcessCDR(1,14358891,1,1,2) [2025-01-29 20:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14358891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 20:53:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14358891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 20:53:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14358891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 20:53:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14358891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 20:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358891', 'tblTempUsageDetail_20' ) start [2025-01-29 20:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358891', 'tblTempUsageDetail_20' ) end [2025-01-29 20:53:23] Production.ERROR: pbx prc_insertCDR start [2025-01-29 20:53:23] Production.ERROR: pbx prc_insertCDR end [2025-01-29 20:53:23] Production.INFO: ==10260== Releasing lock... [2025-01-29 20:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 20:53:23] Production.INFO: 53 MB #Memory Used# [2025-01-29 20:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 17:54:05 [end_date_ymd] => 2025-01-29 20:54:05 [RateCDR] => 1 ) [2025-01-29 20:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 17:54:05' and `end` < '2025-01-29 20:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 20:54:19] Production.INFO: count ==3349 [2025-01-29 20:54:20] Production.ERROR: pbx CDR StartTime 2025-01-29 17:54:05 - End Time 2025-01-29 20:54:05 [2025-01-29 20:54:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 20:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358896', 'tblTempUsageDetail_20' ) start [2025-01-29 20:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358896', 'tblTempUsageDetail_20' ) end [2025-01-29 20:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358896', 'tblTempVendorCDR_20' ) start [2025-01-29 20:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358896', 'tblTempVendorCDR_20' ) end [2025-01-29 20:54:20] Production.INFO: ProcessCDR(1,14358896,1,1,2) [2025-01-29 20:54:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14358896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 20:54:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14358896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 20:54:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14358896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 20:54:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14358896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 20:54:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358896', 'tblTempUsageDetail_20' ) start [2025-01-29 20:54:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358896', 'tblTempUsageDetail_20' ) end [2025-01-29 20:54:25] Production.ERROR: pbx prc_insertCDR start [2025-01-29 20:54:25] Production.ERROR: pbx prc_insertCDR end [2025-01-29 20:54:25] Production.INFO: ==10363== Releasing lock... [2025-01-29 20:54:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 20:54:25] Production.INFO: 54 MB #Memory Used# [2025-01-29 20:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 17:55:05 [end_date_ymd] => 2025-01-29 20:55:05 [RateCDR] => 1 ) [2025-01-29 20:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 17:55:05' and `end` < '2025-01-29 20:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 20:55:18] Production.INFO: count ==3343 [2025-01-29 20:55:19] Production.ERROR: pbx CDR StartTime 2025-01-29 17:55:05 - End Time 2025-01-29 20:55:05 [2025-01-29 20:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 20:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358901', 'tblTempUsageDetail_20' ) start [2025-01-29 20:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358901', 'tblTempUsageDetail_20' ) end [2025-01-29 20:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358901', 'tblTempVendorCDR_20' ) start [2025-01-29 20:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358901', 'tblTempVendorCDR_20' ) end [2025-01-29 20:55:19] Production.INFO: ProcessCDR(1,14358901,1,1,2) [2025-01-29 20:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14358901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 20:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14358901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 20:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14358901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 20:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14358901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 20:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358901', 'tblTempUsageDetail_20' ) start [2025-01-29 20:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358901', 'tblTempUsageDetail_20' ) end [2025-01-29 20:55:22] Production.ERROR: pbx prc_insertCDR start [2025-01-29 20:55:22] Production.ERROR: pbx prc_insertCDR end [2025-01-29 20:55:22] Production.INFO: ==10467== Releasing lock... [2025-01-29 20:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 20:55:22] Production.INFO: 53.75 MB #Memory Used# [2025-01-29 20:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 17:56:05 [end_date_ymd] => 2025-01-29 20:56:05 [RateCDR] => 1 ) [2025-01-29 20:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 17:56:05' and `end` < '2025-01-29 20:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 20:56:19] Production.INFO: count ==3338 [2025-01-29 20:56:20] Production.ERROR: pbx CDR StartTime 2025-01-29 17:56:05 - End Time 2025-01-29 20:56:05 [2025-01-29 20:56:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 20:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358906', 'tblTempUsageDetail_20' ) start [2025-01-29 20:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358906', 'tblTempUsageDetail_20' ) end [2025-01-29 20:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358906', 'tblTempVendorCDR_20' ) start [2025-01-29 20:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358906', 'tblTempVendorCDR_20' ) end [2025-01-29 20:56:20] Production.INFO: ProcessCDR(1,14358906,1,1,2) [2025-01-29 20:56:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14358906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 20:56:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14358906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 20:56:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14358906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 20:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14358906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 20:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358906', 'tblTempUsageDetail_20' ) start [2025-01-29 20:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358906', 'tblTempUsageDetail_20' ) end [2025-01-29 20:56:23] Production.ERROR: pbx prc_insertCDR start [2025-01-29 20:56:23] Production.ERROR: pbx prc_insertCDR end [2025-01-29 20:56:23] Production.INFO: ==10574== Releasing lock... [2025-01-29 20:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 20:56:23] Production.INFO: 53.75 MB #Memory Used# [2025-01-29 20:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 17:57:05 [end_date_ymd] => 2025-01-29 20:57:05 [RateCDR] => 1 ) [2025-01-29 20:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 17:57:05' and `end` < '2025-01-29 20:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 20:57:19] Production.INFO: count ==3332 [2025-01-29 20:57:20] Production.ERROR: pbx CDR StartTime 2025-01-29 17:57:05 - End Time 2025-01-29 20:57:05 [2025-01-29 20:57:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 20:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358911', 'tblTempUsageDetail_20' ) start [2025-01-29 20:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358911', 'tblTempUsageDetail_20' ) end [2025-01-29 20:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358911', 'tblTempVendorCDR_20' ) start [2025-01-29 20:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358911', 'tblTempVendorCDR_20' ) end [2025-01-29 20:57:20] Production.INFO: ProcessCDR(1,14358911,1,1,2) [2025-01-29 20:57:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14358911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 20:57:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14358911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 20:57:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14358911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 20:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14358911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 20:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358911', 'tblTempUsageDetail_20' ) start [2025-01-29 20:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358911', 'tblTempUsageDetail_20' ) end [2025-01-29 20:57:23] Production.ERROR: pbx prc_insertCDR start [2025-01-29 20:57:23] Production.ERROR: pbx prc_insertCDR end [2025-01-29 20:57:23] Production.INFO: ==10677== Releasing lock... [2025-01-29 20:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 20:57:23] Production.INFO: 53.25 MB #Memory Used# [2025-01-29 20:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 17:58:05 [end_date_ymd] => 2025-01-29 20:58:05 [RateCDR] => 1 ) [2025-01-29 20:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 17:58:05' and `end` < '2025-01-29 20:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 20:58:18] Production.INFO: count ==3326 [2025-01-29 20:58:20] Production.ERROR: pbx CDR StartTime 2025-01-29 17:58:05 - End Time 2025-01-29 20:58:05 [2025-01-29 20:58:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 20:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358916', 'tblTempUsageDetail_20' ) start [2025-01-29 20:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358916', 'tblTempUsageDetail_20' ) end [2025-01-29 20:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358916', 'tblTempVendorCDR_20' ) start [2025-01-29 20:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358916', 'tblTempVendorCDR_20' ) end [2025-01-29 20:58:20] Production.INFO: ProcessCDR(1,14358916,1,1,2) [2025-01-29 20:58:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14358916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 20:58:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14358916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 20:58:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14358916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 20:58:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14358916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 20:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358916', 'tblTempUsageDetail_20' ) start [2025-01-29 20:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358916', 'tblTempUsageDetail_20' ) end [2025-01-29 20:58:24] Production.ERROR: pbx prc_insertCDR start [2025-01-29 20:58:24] Production.ERROR: pbx prc_insertCDR end [2025-01-29 20:58:24] Production.INFO: ==10768== Releasing lock... [2025-01-29 20:58:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 20:58:24] Production.INFO: 52.75 MB #Memory Used# [2025-01-29 20:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 17:59:05 [end_date_ymd] => 2025-01-29 20:59:05 [RateCDR] => 1 ) [2025-01-29 20:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 17:59:05' and `end` < '2025-01-29 20:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 20:59:18] Production.INFO: count ==3326 [2025-01-29 20:59:19] Production.ERROR: pbx CDR StartTime 2025-01-29 17:59:05 - End Time 2025-01-29 20:59:05 [2025-01-29 20:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 20:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358921', 'tblTempUsageDetail_20' ) start [2025-01-29 20:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358921', 'tblTempUsageDetail_20' ) end [2025-01-29 20:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358921', 'tblTempVendorCDR_20' ) start [2025-01-29 20:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358921', 'tblTempVendorCDR_20' ) end [2025-01-29 20:59:19] Production.INFO: ProcessCDR(1,14358921,1,1,2) [2025-01-29 20:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14358921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 20:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14358921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 20:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14358921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 20:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14358921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 20:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358921', 'tblTempUsageDetail_20' ) start [2025-01-29 20:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358921', 'tblTempUsageDetail_20' ) end [2025-01-29 20:59:22] Production.ERROR: pbx prc_insertCDR start [2025-01-29 20:59:22] Production.ERROR: pbx prc_insertCDR end [2025-01-29 20:59:22] Production.INFO: ==10840== Releasing lock... [2025-01-29 20:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 20:59:22] Production.INFO: 52.75 MB #Memory Used# [2025-01-29 21:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 18:00:07 [end_date_ymd] => 2025-01-29 21:00:07 [RateCDR] => 1 ) [2025-01-29 21:00:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 18:00:07' and `end` < '2025-01-29 21:00:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 21:00:20] Production.INFO: count ==3328 [2025-01-29 21:00:21] Production.ERROR: pbx CDR StartTime 2025-01-29 18:00:07 - End Time 2025-01-29 21:00:07 [2025-01-29 21:00:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 21:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358927', 'tblTempUsageDetail_20' ) start [2025-01-29 21:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358927', 'tblTempUsageDetail_20' ) end [2025-01-29 21:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358927', 'tblTempVendorCDR_20' ) start [2025-01-29 21:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358927', 'tblTempVendorCDR_20' ) end [2025-01-29 21:00:21] Production.INFO: ProcessCDR(1,14358927,1,1,2) [2025-01-29 21:00:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14358927,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 21:00:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14358927,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 21:00:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14358927,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 21:00:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14358927,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 21:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358927', 'tblTempUsageDetail_20' ) start [2025-01-29 21:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358927', 'tblTempUsageDetail_20' ) end [2025-01-29 21:00:25] Production.ERROR: pbx prc_insertCDR start [2025-01-29 21:00:25] Production.ERROR: pbx prc_insertCDR end [2025-01-29 21:00:26] Production.INFO: ==10915== Releasing lock... [2025-01-29 21:00:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 21:00:26] Production.INFO: 53.75 MB #Memory Used# [2025-01-29 21:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 18:01:05 [end_date_ymd] => 2025-01-29 21:01:05 [RateCDR] => 1 ) [2025-01-29 21:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 18:01:05' and `end` < '2025-01-29 21:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 21:01:18] Production.INFO: count ==3327 [2025-01-29 21:01:19] Production.ERROR: pbx CDR StartTime 2025-01-29 18:01:05 - End Time 2025-01-29 21:01:05 [2025-01-29 21:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 21:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358932', 'tblTempUsageDetail_20' ) start [2025-01-29 21:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358932', 'tblTempUsageDetail_20' ) end [2025-01-29 21:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358932', 'tblTempVendorCDR_20' ) start [2025-01-29 21:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358932', 'tblTempVendorCDR_20' ) end [2025-01-29 21:01:19] Production.INFO: ProcessCDR(1,14358932,1,1,2) [2025-01-29 21:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14358932,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 21:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14358932,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 21:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14358932,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 21:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14358932,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 21:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358932', 'tblTempUsageDetail_20' ) start [2025-01-29 21:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358932', 'tblTempUsageDetail_20' ) end [2025-01-29 21:01:22] Production.ERROR: pbx prc_insertCDR start [2025-01-29 21:01:22] Production.ERROR: pbx prc_insertCDR end [2025-01-29 21:01:22] Production.INFO: ==11006== Releasing lock... [2025-01-29 21:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 21:01:22] Production.INFO: 52.75 MB #Memory Used# [2025-01-29 21:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 18:02:05 [end_date_ymd] => 2025-01-29 21:02:05 [RateCDR] => 1 ) [2025-01-29 21:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 18:02:05' and `end` < '2025-01-29 21:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 21:02:19] Production.INFO: count ==3329 [2025-01-29 21:02:20] Production.ERROR: pbx CDR StartTime 2025-01-29 18:02:05 - End Time 2025-01-29 21:02:05 [2025-01-29 21:02:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 21:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358937', 'tblTempUsageDetail_20' ) start [2025-01-29 21:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358937', 'tblTempUsageDetail_20' ) end [2025-01-29 21:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358937', 'tblTempVendorCDR_20' ) start [2025-01-29 21:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358937', 'tblTempVendorCDR_20' ) end [2025-01-29 21:02:20] Production.INFO: ProcessCDR(1,14358937,1,1,2) [2025-01-29 21:02:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14358937,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 21:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14358937,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 21:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14358937,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 21:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14358937,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 21:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358937', 'tblTempUsageDetail_20' ) start [2025-01-29 21:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358937', 'tblTempUsageDetail_20' ) end [2025-01-29 21:02:23] Production.ERROR: pbx prc_insertCDR start [2025-01-29 21:02:23] Production.ERROR: pbx prc_insertCDR end [2025-01-29 21:02:23] Production.INFO: ==11079== Releasing lock... [2025-01-29 21:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 21:02:23] Production.INFO: 52.75 MB #Memory Used# [2025-01-29 21:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 18:03:05 [end_date_ymd] => 2025-01-29 21:03:05 [RateCDR] => 1 ) [2025-01-29 21:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 18:03:05' and `end` < '2025-01-29 21:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 21:03:18] Production.INFO: count ==3322 [2025-01-29 21:03:19] Production.ERROR: pbx CDR StartTime 2025-01-29 18:03:05 - End Time 2025-01-29 21:03:05 [2025-01-29 21:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 21:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358942', 'tblTempUsageDetail_20' ) start [2025-01-29 21:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358942', 'tblTempUsageDetail_20' ) end [2025-01-29 21:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358942', 'tblTempVendorCDR_20' ) start [2025-01-29 21:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358942', 'tblTempVendorCDR_20' ) end [2025-01-29 21:03:19] Production.INFO: ProcessCDR(1,14358942,1,1,2) [2025-01-29 21:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14358942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 21:03:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14358942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 21:03:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14358942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 21:03:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14358942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 21:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358942', 'tblTempUsageDetail_20' ) start [2025-01-29 21:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358942', 'tblTempUsageDetail_20' ) end [2025-01-29 21:03:24] Production.ERROR: pbx prc_insertCDR start [2025-01-29 21:03:24] Production.ERROR: pbx prc_insertCDR end [2025-01-29 21:03:24] Production.INFO: ==11148== Releasing lock... [2025-01-29 21:03:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 21:03:24] Production.INFO: 52.75 MB #Memory Used# [2025-01-29 21:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 18:04:05 [end_date_ymd] => 2025-01-29 21:04:05 [RateCDR] => 1 ) [2025-01-29 21:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 18:04:05' and `end` < '2025-01-29 21:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 21:04:18] Production.INFO: count ==3318 [2025-01-29 21:04:19] Production.ERROR: pbx CDR StartTime 2025-01-29 18:04:05 - End Time 2025-01-29 21:04:05 [2025-01-29 21:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 21:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358947', 'tblTempUsageDetail_20' ) start [2025-01-29 21:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358947', 'tblTempUsageDetail_20' ) end [2025-01-29 21:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358947', 'tblTempVendorCDR_20' ) start [2025-01-29 21:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358947', 'tblTempVendorCDR_20' ) end [2025-01-29 21:04:19] Production.INFO: ProcessCDR(1,14358947,1,1,2) [2025-01-29 21:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14358947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 21:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14358947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 21:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14358947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 21:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14358947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 21:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358947', 'tblTempUsageDetail_20' ) start [2025-01-29 21:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358947', 'tblTempUsageDetail_20' ) end [2025-01-29 21:04:22] Production.ERROR: pbx prc_insertCDR start [2025-01-29 21:04:22] Production.ERROR: pbx prc_insertCDR end [2025-01-29 21:04:22] Production.INFO: ==11220== Releasing lock... [2025-01-29 21:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 21:04:22] Production.INFO: 52.75 MB #Memory Used# [2025-01-29 21:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 18:05:05 [end_date_ymd] => 2025-01-29 21:05:05 [RateCDR] => 1 ) [2025-01-29 21:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 18:05:05' and `end` < '2025-01-29 21:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 21:05:18] Production.INFO: count ==3313 [2025-01-29 21:05:19] Production.ERROR: pbx CDR StartTime 2025-01-29 18:05:05 - End Time 2025-01-29 21:05:05 [2025-01-29 21:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 21:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358952', 'tblTempUsageDetail_20' ) start [2025-01-29 21:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358952', 'tblTempUsageDetail_20' ) end [2025-01-29 21:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358952', 'tblTempVendorCDR_20' ) start [2025-01-29 21:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358952', 'tblTempVendorCDR_20' ) end [2025-01-29 21:05:19] Production.INFO: ProcessCDR(1,14358952,1,1,2) [2025-01-29 21:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14358952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 21:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14358952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 21:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14358952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 21:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14358952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 21:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358952', 'tblTempUsageDetail_20' ) start [2025-01-29 21:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358952', 'tblTempUsageDetail_20' ) end [2025-01-29 21:05:22] Production.ERROR: pbx prc_insertCDR start [2025-01-29 21:05:22] Production.ERROR: pbx prc_insertCDR end [2025-01-29 21:05:22] Production.INFO: ==11331== Releasing lock... [2025-01-29 21:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 21:05:22] Production.INFO: 52.75 MB #Memory Used# [2025-01-29 21:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 18:06:05 [end_date_ymd] => 2025-01-29 21:06:05 [RateCDR] => 1 ) [2025-01-29 21:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 18:06:05' and `end` < '2025-01-29 21:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 21:06:18] Production.INFO: count ==3452 [2025-01-29 21:06:19] Production.ERROR: pbx CDR StartTime 2025-01-29 18:06:05 - End Time 2025-01-29 21:06:05 [2025-01-29 21:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 21:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358957', 'tblTempUsageDetail_20' ) start [2025-01-29 21:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358957', 'tblTempUsageDetail_20' ) end [2025-01-29 21:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358957', 'tblTempVendorCDR_20' ) start [2025-01-29 21:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358957', 'tblTempVendorCDR_20' ) end [2025-01-29 21:06:19] Production.INFO: ProcessCDR(1,14358957,1,1,2) [2025-01-29 21:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14358957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 21:06:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14358957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 21:06:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14358957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 21:06:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14358957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 21:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358957', 'tblTempUsageDetail_20' ) start [2025-01-29 21:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358957', 'tblTempUsageDetail_20' ) end [2025-01-29 21:06:24] Production.ERROR: pbx prc_insertCDR start [2025-01-29 21:06:24] Production.ERROR: pbx prc_insertCDR end [2025-01-29 21:06:24] Production.INFO: ==11405== Releasing lock... [2025-01-29 21:06:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 21:06:24] Production.INFO: 54.25 MB #Memory Used# [2025-01-29 21:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 18:07:05 [end_date_ymd] => 2025-01-29 21:07:05 [RateCDR] => 1 ) [2025-01-29 21:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 18:07:05' and `end` < '2025-01-29 21:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 21:07:19] Production.INFO: count ==3462 [2025-01-29 21:07:20] Production.ERROR: pbx CDR StartTime 2025-01-29 18:07:05 - End Time 2025-01-29 21:07:05 [2025-01-29 21:07:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 21:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358962', 'tblTempUsageDetail_20' ) start [2025-01-29 21:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358962', 'tblTempUsageDetail_20' ) end [2025-01-29 21:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358962', 'tblTempVendorCDR_20' ) start [2025-01-29 21:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358962', 'tblTempVendorCDR_20' ) end [2025-01-29 21:07:20] Production.INFO: ProcessCDR(1,14358962,1,1,2) [2025-01-29 21:07:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14358962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 21:07:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14358962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 21:07:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14358962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 21:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14358962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 21:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358962', 'tblTempUsageDetail_20' ) start [2025-01-29 21:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358962', 'tblTempUsageDetail_20' ) end [2025-01-29 21:07:23] Production.ERROR: pbx prc_insertCDR start [2025-01-29 21:07:23] Production.ERROR: pbx prc_insertCDR end [2025-01-29 21:07:23] Production.INFO: ==11477== Releasing lock... [2025-01-29 21:07:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 21:07:23] Production.INFO: 53.75 MB #Memory Used# [2025-01-29 21:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 18:08:05 [end_date_ymd] => 2025-01-29 21:08:05 [RateCDR] => 1 ) [2025-01-29 21:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 18:08:05' and `end` < '2025-01-29 21:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 21:08:19] Production.INFO: count ==3618 [2025-01-29 21:08:21] Production.ERROR: pbx CDR StartTime 2025-01-29 18:08:05 - End Time 2025-01-29 21:08:05 [2025-01-29 21:08:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 21:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358967', 'tblTempUsageDetail_20' ) start [2025-01-29 21:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358967', 'tblTempUsageDetail_20' ) end [2025-01-29 21:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358967', 'tblTempVendorCDR_20' ) start [2025-01-29 21:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358967', 'tblTempVendorCDR_20' ) end [2025-01-29 21:08:21] Production.INFO: ProcessCDR(1,14358967,1,1,2) [2025-01-29 21:08:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14358967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 21:08:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14358967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 21:08:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14358967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 21:08:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14358967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 21:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358967', 'tblTempUsageDetail_20' ) start [2025-01-29 21:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358967', 'tblTempUsageDetail_20' ) end [2025-01-29 21:08:24] Production.ERROR: pbx prc_insertCDR start [2025-01-29 21:08:24] Production.ERROR: pbx prc_insertCDR end [2025-01-29 21:08:24] Production.INFO: ==11550== Releasing lock... [2025-01-29 21:08:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 21:08:24] Production.INFO: 55 MB #Memory Used# [2025-01-29 21:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 18:09:06 [end_date_ymd] => 2025-01-29 21:09:06 [RateCDR] => 1 ) [2025-01-29 21:09:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 18:09:06' and `end` < '2025-01-29 21:09:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 21:09:19] Production.INFO: count ==3663 [2025-01-29 21:09:20] Production.ERROR: pbx CDR StartTime 2025-01-29 18:09:06 - End Time 2025-01-29 21:09:06 [2025-01-29 21:09:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 21:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358972', 'tblTempUsageDetail_20' ) start [2025-01-29 21:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358972', 'tblTempUsageDetail_20' ) end [2025-01-29 21:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358972', 'tblTempVendorCDR_20' ) start [2025-01-29 21:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358972', 'tblTempVendorCDR_20' ) end [2025-01-29 21:09:20] Production.INFO: ProcessCDR(1,14358972,1,1,2) [2025-01-29 21:09:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14358972,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 21:09:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14358972,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 21:09:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14358972,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 21:09:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14358972,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 21:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358972', 'tblTempUsageDetail_20' ) start [2025-01-29 21:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358972', 'tblTempUsageDetail_20' ) end [2025-01-29 21:09:24] Production.ERROR: pbx prc_insertCDR start [2025-01-29 21:09:24] Production.ERROR: pbx prc_insertCDR end [2025-01-29 21:09:24] Production.INFO: ==11622== Releasing lock... [2025-01-29 21:09:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 21:09:24] Production.INFO: 55.25 MB #Memory Used# [2025-01-29 21:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 18:10:06 [end_date_ymd] => 2025-01-29 21:10:06 [RateCDR] => 1 ) [2025-01-29 21:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 18:10:06' and `end` < '2025-01-29 21:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 21:10:24] Production.INFO: count ==3662 [2025-01-29 21:10:26] Production.ERROR: pbx CDR StartTime 2025-01-29 18:10:06 - End Time 2025-01-29 21:10:06 [2025-01-29 21:10:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 21:10:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358978', 'tblTempUsageDetail_20' ) start [2025-01-29 21:10:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358978', 'tblTempUsageDetail_20' ) end [2025-01-29 21:10:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358978', 'tblTempVendorCDR_20' ) start [2025-01-29 21:10:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358978', 'tblTempVendorCDR_20' ) end [2025-01-29 21:10:26] Production.INFO: ProcessCDR(1,14358978,1,1,2) [2025-01-29 21:10:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14358978,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 21:10:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14358978,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 21:10:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14358978,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 21:10:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14358978,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 21:10:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358978', 'tblTempUsageDetail_20' ) start [2025-01-29 21:10:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358978', 'tblTempUsageDetail_20' ) end [2025-01-29 21:10:30] Production.ERROR: pbx prc_insertCDR start [2025-01-29 21:10:30] Production.ERROR: pbx prc_insertCDR end [2025-01-29 21:10:30] Production.INFO: ==11704== Releasing lock... [2025-01-29 21:10:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 21:10:30] Production.INFO: 55.5 MB #Memory Used# [2025-01-29 21:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 18:11:05 [end_date_ymd] => 2025-01-29 21:11:05 [RateCDR] => 1 ) [2025-01-29 21:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 18:11:05' and `end` < '2025-01-29 21:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 21:11:18] Production.INFO: count ==3638 [2025-01-29 21:11:20] Production.ERROR: pbx CDR StartTime 2025-01-29 18:11:05 - End Time 2025-01-29 21:11:05 [2025-01-29 21:11:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 21:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358983', 'tblTempUsageDetail_20' ) start [2025-01-29 21:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358983', 'tblTempUsageDetail_20' ) end [2025-01-29 21:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358983', 'tblTempVendorCDR_20' ) start [2025-01-29 21:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358983', 'tblTempVendorCDR_20' ) end [2025-01-29 21:11:20] Production.INFO: ProcessCDR(1,14358983,1,1,2) [2025-01-29 21:11:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14358983,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 21:11:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14358983,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 21:11:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14358983,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 21:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14358983,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 21:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358983', 'tblTempUsageDetail_20' ) start [2025-01-29 21:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358983', 'tblTempUsageDetail_20' ) end [2025-01-29 21:11:23] Production.ERROR: pbx prc_insertCDR start [2025-01-29 21:11:23] Production.ERROR: pbx prc_insertCDR end [2025-01-29 21:11:23] Production.INFO: ==11788== Releasing lock... [2025-01-29 21:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 21:11:23] Production.INFO: 55 MB #Memory Used# [2025-01-29 21:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 18:12:05 [end_date_ymd] => 2025-01-29 21:12:05 [RateCDR] => 1 ) [2025-01-29 21:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 18:12:05' and `end` < '2025-01-29 21:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 21:12:20] Production.INFO: count ==3637 [2025-01-29 21:12:21] Production.ERROR: pbx CDR StartTime 2025-01-29 18:12:05 - End Time 2025-01-29 21:12:05 [2025-01-29 21:12:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 21:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358984', 'tblTempUsageDetail_20' ) start [2025-01-29 21:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358984', 'tblTempUsageDetail_20' ) end [2025-01-29 21:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358984', 'tblTempVendorCDR_20' ) start [2025-01-29 21:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358984', 'tblTempVendorCDR_20' ) end [2025-01-29 21:12:21] Production.INFO: ProcessCDR(1,14358984,1,1,2) [2025-01-29 21:12:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14358984,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 21:12:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14358984,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 21:12:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14358984,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 21:12:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14358984,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 21:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358984', 'tblTempUsageDetail_20' ) start [2025-01-29 21:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358984', 'tblTempUsageDetail_20' ) end [2025-01-29 21:12:26] Production.ERROR: pbx prc_insertCDR start [2025-01-29 21:12:26] Production.ERROR: pbx prc_insertCDR end [2025-01-29 21:12:26] Production.INFO: ==11869== Releasing lock... [2025-01-29 21:12:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 21:12:26] Production.INFO: 55 MB #Memory Used# [2025-01-29 21:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 18:13:06 [end_date_ymd] => 2025-01-29 21:13:06 [RateCDR] => 1 ) [2025-01-29 21:13:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 18:13:06' and `end` < '2025-01-29 21:13:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 21:13:19] Production.INFO: count ==3633 [2025-01-29 21:13:20] Production.ERROR: pbx CDR StartTime 2025-01-29 18:13:06 - End Time 2025-01-29 21:13:06 [2025-01-29 21:13:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 21:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358993', 'tblTempUsageDetail_20' ) start [2025-01-29 21:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358993', 'tblTempUsageDetail_20' ) end [2025-01-29 21:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358993', 'tblTempVendorCDR_20' ) start [2025-01-29 21:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358993', 'tblTempVendorCDR_20' ) end [2025-01-29 21:13:20] Production.INFO: ProcessCDR(1,14358993,1,1,2) [2025-01-29 21:13:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14358993,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 21:13:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14358993,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 21:13:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14358993,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 21:13:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14358993,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 21:13:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358993', 'tblTempUsageDetail_20' ) start [2025-01-29 21:13:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358993', 'tblTempUsageDetail_20' ) end [2025-01-29 21:13:25] Production.ERROR: pbx prc_insertCDR start [2025-01-29 21:13:25] Production.ERROR: pbx prc_insertCDR end [2025-01-29 21:13:25] Production.INFO: ==11953== Releasing lock... [2025-01-29 21:13:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 21:13:25] Production.INFO: 55.5 MB #Memory Used# [2025-01-29 21:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 18:14:05 [end_date_ymd] => 2025-01-29 21:14:05 [RateCDR] => 1 ) [2025-01-29 21:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 18:14:05' and `end` < '2025-01-29 21:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 21:14:18] Production.INFO: count ==3639 [2025-01-29 21:14:19] Production.ERROR: pbx CDR StartTime 2025-01-29 18:14:05 - End Time 2025-01-29 21:14:05 [2025-01-29 21:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 21:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358998', 'tblTempUsageDetail_20' ) start [2025-01-29 21:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14358998', 'tblTempUsageDetail_20' ) end [2025-01-29 21:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358998', 'tblTempVendorCDR_20' ) start [2025-01-29 21:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14358998', 'tblTempVendorCDR_20' ) end [2025-01-29 21:14:19] Production.INFO: ProcessCDR(1,14358998,1,1,2) [2025-01-29 21:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14358998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 21:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14358998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 21:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14358998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 21:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14358998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 21:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358998', 'tblTempUsageDetail_20' ) start [2025-01-29 21:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14358998', 'tblTempUsageDetail_20' ) end [2025-01-29 21:14:22] Production.ERROR: pbx prc_insertCDR start [2025-01-29 21:14:22] Production.ERROR: pbx prc_insertCDR end [2025-01-29 21:14:22] Production.INFO: ==12034== Releasing lock... [2025-01-29 21:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 21:14:22] Production.INFO: 55 MB #Memory Used# [2025-01-29 21:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 18:15:05 [end_date_ymd] => 2025-01-29 21:15:05 [RateCDR] => 1 ) [2025-01-29 21:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 18:15:05' and `end` < '2025-01-29 21:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 21:15:18] Production.INFO: count ==3629 [2025-01-29 21:15:20] Production.ERROR: pbx CDR StartTime 2025-01-29 18:15:05 - End Time 2025-01-29 21:15:05 [2025-01-29 21:15:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 21:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359003', 'tblTempUsageDetail_20' ) start [2025-01-29 21:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359003', 'tblTempUsageDetail_20' ) end [2025-01-29 21:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359003', 'tblTempVendorCDR_20' ) start [2025-01-29 21:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359003', 'tblTempVendorCDR_20' ) end [2025-01-29 21:15:20] Production.INFO: ProcessCDR(1,14359003,1,1,2) [2025-01-29 21:15:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14359003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 21:15:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14359003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 21:15:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14359003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 21:15:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14359003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 21:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359003', 'tblTempUsageDetail_20' ) start [2025-01-29 21:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359003', 'tblTempUsageDetail_20' ) end [2025-01-29 21:15:23] Production.ERROR: pbx prc_insertCDR start [2025-01-29 21:15:23] Production.ERROR: pbx prc_insertCDR end [2025-01-29 21:15:23] Production.INFO: ==12118== Releasing lock... [2025-01-29 21:15:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 21:15:23] Production.INFO: 55 MB #Memory Used# [2025-01-29 21:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 18:16:05 [end_date_ymd] => 2025-01-29 21:16:05 [RateCDR] => 1 ) [2025-01-29 21:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 18:16:05' and `end` < '2025-01-29 21:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 21:16:18] Production.INFO: count ==3736 [2025-01-29 21:16:19] Production.ERROR: pbx CDR StartTime 2025-01-29 18:16:05 - End Time 2025-01-29 21:16:05 [2025-01-29 21:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 21:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359008', 'tblTempUsageDetail_20' ) start [2025-01-29 21:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359008', 'tblTempUsageDetail_20' ) end [2025-01-29 21:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359008', 'tblTempVendorCDR_20' ) start [2025-01-29 21:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359008', 'tblTempVendorCDR_20' ) end [2025-01-29 21:16:19] Production.INFO: ProcessCDR(1,14359008,1,1,2) [2025-01-29 21:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14359008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 21:16:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14359008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 21:16:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14359008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 21:16:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14359008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 21:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359008', 'tblTempUsageDetail_20' ) start [2025-01-29 21:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359008', 'tblTempUsageDetail_20' ) end [2025-01-29 21:16:24] Production.ERROR: pbx prc_insertCDR start [2025-01-29 21:16:24] Production.ERROR: pbx prc_insertCDR end [2025-01-29 21:16:24] Production.INFO: ==12196== Releasing lock... [2025-01-29 21:16:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 21:16:24] Production.INFO: 56 MB #Memory Used# [2025-01-29 21:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 18:17:05 [end_date_ymd] => 2025-01-29 21:17:05 [RateCDR] => 1 ) [2025-01-29 21:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 18:17:05' and `end` < '2025-01-29 21:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 21:17:18] Production.INFO: count ==3731 [2025-01-29 21:17:19] Production.ERROR: pbx CDR StartTime 2025-01-29 18:17:05 - End Time 2025-01-29 21:17:05 [2025-01-29 21:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 21:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359013', 'tblTempUsageDetail_20' ) start [2025-01-29 21:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359013', 'tblTempUsageDetail_20' ) end [2025-01-29 21:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359013', 'tblTempVendorCDR_20' ) start [2025-01-29 21:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359013', 'tblTempVendorCDR_20' ) end [2025-01-29 21:17:19] Production.INFO: ProcessCDR(1,14359013,1,1,2) [2025-01-29 21:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14359013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 21:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14359013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 21:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14359013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 21:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14359013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 21:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359013', 'tblTempUsageDetail_20' ) start [2025-01-29 21:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359013', 'tblTempUsageDetail_20' ) end [2025-01-29 21:17:22] Production.ERROR: pbx prc_insertCDR start [2025-01-29 21:17:22] Production.ERROR: pbx prc_insertCDR end [2025-01-29 21:17:22] Production.INFO: ==12271== Releasing lock... [2025-01-29 21:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 21:17:22] Production.INFO: 56 MB #Memory Used# [2025-01-29 21:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 18:18:06 [end_date_ymd] => 2025-01-29 21:18:06 [RateCDR] => 1 ) [2025-01-29 21:18:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 18:18:06' and `end` < '2025-01-29 21:18:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 21:18:19] Production.INFO: count ==3734 [2025-01-29 21:18:21] Production.ERROR: pbx CDR StartTime 2025-01-29 18:18:06 - End Time 2025-01-29 21:18:06 [2025-01-29 21:18:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 21:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359018', 'tblTempUsageDetail_20' ) start [2025-01-29 21:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359018', 'tblTempUsageDetail_20' ) end [2025-01-29 21:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359018', 'tblTempVendorCDR_20' ) start [2025-01-29 21:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359018', 'tblTempVendorCDR_20' ) end [2025-01-29 21:18:21] Production.INFO: ProcessCDR(1,14359018,1,1,2) [2025-01-29 21:18:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14359018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 21:18:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14359018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 21:18:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14359018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 21:18:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14359018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 21:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359018', 'tblTempUsageDetail_20' ) start [2025-01-29 21:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359018', 'tblTempUsageDetail_20' ) end [2025-01-29 21:18:24] Production.ERROR: pbx prc_insertCDR start [2025-01-29 21:18:24] Production.ERROR: pbx prc_insertCDR end [2025-01-29 21:18:24] Production.INFO: ==12343== Releasing lock... [2025-01-29 21:18:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 21:18:24] Production.INFO: 55.75 MB #Memory Used# [2025-01-29 21:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 18:19:05 [end_date_ymd] => 2025-01-29 21:19:05 [RateCDR] => 1 ) [2025-01-29 21:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 18:19:05' and `end` < '2025-01-29 21:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 21:19:19] Production.INFO: count ==3729 [2025-01-29 21:19:20] Production.ERROR: pbx CDR StartTime 2025-01-29 18:19:05 - End Time 2025-01-29 21:19:05 [2025-01-29 21:19:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 21:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359023', 'tblTempUsageDetail_20' ) start [2025-01-29 21:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359023', 'tblTempUsageDetail_20' ) end [2025-01-29 21:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359023', 'tblTempVendorCDR_20' ) start [2025-01-29 21:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359023', 'tblTempVendorCDR_20' ) end [2025-01-29 21:19:20] Production.INFO: ProcessCDR(1,14359023,1,1,2) [2025-01-29 21:19:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14359023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 21:19:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14359023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 21:19:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14359023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 21:19:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14359023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 21:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359023', 'tblTempUsageDetail_20' ) start [2025-01-29 21:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359023', 'tblTempUsageDetail_20' ) end [2025-01-29 21:19:24] Production.ERROR: pbx prc_insertCDR start [2025-01-29 21:19:24] Production.ERROR: pbx prc_insertCDR end [2025-01-29 21:19:24] Production.INFO: ==12414== Releasing lock... [2025-01-29 21:19:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 21:19:24] Production.INFO: 56 MB #Memory Used# [2025-01-29 21:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 18:20:06 [end_date_ymd] => 2025-01-29 21:20:06 [RateCDR] => 1 ) [2025-01-29 21:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 18:20:06' and `end` < '2025-01-29 21:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 21:20:19] Production.INFO: count ==3731 [2025-01-29 21:20:20] Production.ERROR: pbx CDR StartTime 2025-01-29 18:20:06 - End Time 2025-01-29 21:20:06 [2025-01-29 21:20:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 21:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359028', 'tblTempUsageDetail_20' ) start [2025-01-29 21:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359028', 'tblTempUsageDetail_20' ) end [2025-01-29 21:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359028', 'tblTempVendorCDR_20' ) start [2025-01-29 21:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359028', 'tblTempVendorCDR_20' ) end [2025-01-29 21:20:21] Production.INFO: ProcessCDR(1,14359028,1,1,2) [2025-01-29 21:20:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14359028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 21:20:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14359028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 21:20:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14359028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 21:20:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14359028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 21:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359028', 'tblTempUsageDetail_20' ) start [2025-01-29 21:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359028', 'tblTempUsageDetail_20' ) end [2025-01-29 21:20:24] Production.ERROR: pbx prc_insertCDR start [2025-01-29 21:20:24] Production.ERROR: pbx prc_insertCDR end [2025-01-29 21:20:24] Production.INFO: ==12529== Releasing lock... [2025-01-29 21:20:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 21:20:24] Production.INFO: 56.5 MB #Memory Used# [2025-01-29 21:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 18:21:05 [end_date_ymd] => 2025-01-29 21:21:05 [RateCDR] => 1 ) [2025-01-29 21:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 18:21:05' and `end` < '2025-01-29 21:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 21:21:19] Production.INFO: count ==3893 [2025-01-29 21:21:20] Production.ERROR: pbx CDR StartTime 2025-01-29 18:21:05 - End Time 2025-01-29 21:21:05 [2025-01-29 21:21:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 21:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359034', 'tblTempUsageDetail_20' ) start [2025-01-29 21:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359034', 'tblTempUsageDetail_20' ) end [2025-01-29 21:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359034', 'tblTempVendorCDR_20' ) start [2025-01-29 21:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359034', 'tblTempVendorCDR_20' ) end [2025-01-29 21:21:20] Production.INFO: ProcessCDR(1,14359034,1,1,2) [2025-01-29 21:21:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14359034,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 21:21:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14359034,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 21:21:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14359034,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 21:21:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14359034,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 21:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359034', 'tblTempUsageDetail_20' ) start [2025-01-29 21:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359034', 'tblTempUsageDetail_20' ) end [2025-01-29 21:21:24] Production.ERROR: pbx prc_insertCDR start [2025-01-29 21:21:24] Production.ERROR: pbx prc_insertCDR end [2025-01-29 21:21:24] Production.INFO: ==12605== Releasing lock... [2025-01-29 21:21:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 21:21:24] Production.INFO: 57.25 MB #Memory Used# [2025-01-29 21:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 18:22:06 [end_date_ymd] => 2025-01-29 21:22:06 [RateCDR] => 1 ) [2025-01-29 21:22:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 18:22:06' and `end` < '2025-01-29 21:22:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 21:22:19] Production.INFO: count ==3890 [2025-01-29 21:22:20] Production.ERROR: pbx CDR StartTime 2025-01-29 18:22:06 - End Time 2025-01-29 21:22:06 [2025-01-29 21:22:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 21:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359039', 'tblTempUsageDetail_20' ) start [2025-01-29 21:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359039', 'tblTempUsageDetail_20' ) end [2025-01-29 21:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359039', 'tblTempVendorCDR_20' ) start [2025-01-29 21:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359039', 'tblTempVendorCDR_20' ) end [2025-01-29 21:22:20] Production.INFO: ProcessCDR(1,14359039,1,1,2) [2025-01-29 21:22:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14359039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 21:22:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14359039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 21:22:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14359039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 21:22:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14359039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 21:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359039', 'tblTempUsageDetail_20' ) start [2025-01-29 21:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359039', 'tblTempUsageDetail_20' ) end [2025-01-29 21:22:24] Production.ERROR: pbx prc_insertCDR start [2025-01-29 21:22:24] Production.ERROR: pbx prc_insertCDR end [2025-01-29 21:22:24] Production.INFO: ==12674== Releasing lock... [2025-01-29 21:22:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 21:22:24] Production.INFO: 57 MB #Memory Used# [2025-01-29 21:23:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 18:23:04 [end_date_ymd] => 2025-01-29 21:23:04 [RateCDR] => 1 ) [2025-01-29 21:23:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 18:23:04' and `end` < '2025-01-29 21:23:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 21:23:17] Production.INFO: count ==3937 [2025-01-29 21:23:19] Production.ERROR: pbx CDR StartTime 2025-01-29 18:23:04 - End Time 2025-01-29 21:23:04 [2025-01-29 21:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 21:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359044', 'tblTempUsageDetail_20' ) start [2025-01-29 21:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359044', 'tblTempUsageDetail_20' ) end [2025-01-29 21:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359044', 'tblTempVendorCDR_20' ) start [2025-01-29 21:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359044', 'tblTempVendorCDR_20' ) end [2025-01-29 21:23:19] Production.INFO: ProcessCDR(1,14359044,1,1,2) [2025-01-29 21:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14359044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 21:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14359044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 21:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14359044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 21:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14359044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 21:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359044', 'tblTempUsageDetail_20' ) start [2025-01-29 21:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359044', 'tblTempUsageDetail_20' ) end [2025-01-29 21:23:22] Production.ERROR: pbx prc_insertCDR start [2025-01-29 21:23:22] Production.ERROR: pbx prc_insertCDR end [2025-01-29 21:23:22] Production.INFO: ==12747== Releasing lock... [2025-01-29 21:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 21:23:22] Production.INFO: 57.25 MB #Memory Used# [2025-01-29 21:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 18:24:05 [end_date_ymd] => 2025-01-29 21:24:05 [RateCDR] => 1 ) [2025-01-29 21:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 18:24:05' and `end` < '2025-01-29 21:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 21:24:19] Production.INFO: count ==4418 [2025-01-29 21:24:20] Production.ERROR: pbx CDR StartTime 2025-01-29 18:24:05 - End Time 2025-01-29 21:24:05 [2025-01-29 21:24:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 21:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359049', 'tblTempUsageDetail_20' ) start [2025-01-29 21:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359049', 'tblTempUsageDetail_20' ) end [2025-01-29 21:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359049', 'tblTempVendorCDR_20' ) start [2025-01-29 21:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359049', 'tblTempVendorCDR_20' ) end [2025-01-29 21:24:21] Production.INFO: ProcessCDR(1,14359049,1,1,2) [2025-01-29 21:24:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14359049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 21:24:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14359049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 21:24:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14359049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 21:24:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14359049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 21:24:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359049', 'tblTempUsageDetail_20' ) start [2025-01-29 21:24:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359049', 'tblTempUsageDetail_20' ) end [2025-01-29 21:24:26] Production.ERROR: pbx prc_insertCDR start [2025-01-29 21:24:26] Production.ERROR: pbx prc_insertCDR end [2025-01-29 21:24:26] Production.INFO: ==12818== Releasing lock... [2025-01-29 21:24:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 21:24:26] Production.INFO: 61 MB #Memory Used# [2025-01-29 21:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 18:25:05 [end_date_ymd] => 2025-01-29 21:25:05 [RateCDR] => 1 ) [2025-01-29 21:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 18:25:05' and `end` < '2025-01-29 21:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 21:25:18] Production.INFO: count ==4417 [2025-01-29 21:25:20] Production.ERROR: pbx CDR StartTime 2025-01-29 18:25:05 - End Time 2025-01-29 21:25:05 [2025-01-29 21:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 21:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359054', 'tblTempUsageDetail_20' ) start [2025-01-29 21:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359054', 'tblTempUsageDetail_20' ) end [2025-01-29 21:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359054', 'tblTempVendorCDR_20' ) start [2025-01-29 21:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359054', 'tblTempVendorCDR_20' ) end [2025-01-29 21:25:20] Production.INFO: ProcessCDR(1,14359054,1,1,2) [2025-01-29 21:25:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14359054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 21:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14359054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 21:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14359054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 21:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14359054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 21:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359054', 'tblTempUsageDetail_20' ) start [2025-01-29 21:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359054', 'tblTempUsageDetail_20' ) end [2025-01-29 21:25:23] Production.ERROR: pbx prc_insertCDR start [2025-01-29 21:25:23] Production.ERROR: pbx prc_insertCDR end [2025-01-29 21:25:23] Production.INFO: ==12888== Releasing lock... [2025-01-29 21:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 21:25:23] Production.INFO: 61 MB #Memory Used# [2025-01-29 21:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 18:26:05 [end_date_ymd] => 2025-01-29 21:26:05 [RateCDR] => 1 ) [2025-01-29 21:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 18:26:05' and `end` < '2025-01-29 21:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 21:26:18] Production.INFO: count ==4401 [2025-01-29 21:26:20] Production.ERROR: pbx CDR StartTime 2025-01-29 18:26:05 - End Time 2025-01-29 21:26:05 [2025-01-29 21:26:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 21:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359059', 'tblTempUsageDetail_20' ) start [2025-01-29 21:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359059', 'tblTempUsageDetail_20' ) end [2025-01-29 21:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359059', 'tblTempVendorCDR_20' ) start [2025-01-29 21:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359059', 'tblTempVendorCDR_20' ) end [2025-01-29 21:26:20] Production.INFO: ProcessCDR(1,14359059,1,1,2) [2025-01-29 21:26:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14359059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 21:26:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14359059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 21:26:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14359059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 21:26:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14359059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 21:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359059', 'tblTempUsageDetail_20' ) start [2025-01-29 21:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359059', 'tblTempUsageDetail_20' ) end [2025-01-29 21:26:23] Production.ERROR: pbx prc_insertCDR start [2025-01-29 21:26:23] Production.ERROR: pbx prc_insertCDR end [2025-01-29 21:26:23] Production.INFO: ==12964== Releasing lock... [2025-01-29 21:26:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 21:26:23] Production.INFO: 60.75 MB #Memory Used# [2025-01-29 21:27:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 18:27:04 [end_date_ymd] => 2025-01-29 21:27:04 [RateCDR] => 1 ) [2025-01-29 21:27:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 18:27:04' and `end` < '2025-01-29 21:27:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 21:27:18] Production.INFO: count ==4401 [2025-01-29 21:27:20] Production.ERROR: pbx CDR StartTime 2025-01-29 18:27:04 - End Time 2025-01-29 21:27:04 [2025-01-29 21:27:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 21:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359064', 'tblTempUsageDetail_20' ) start [2025-01-29 21:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359064', 'tblTempUsageDetail_20' ) end [2025-01-29 21:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359064', 'tblTempVendorCDR_20' ) start [2025-01-29 21:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359064', 'tblTempVendorCDR_20' ) end [2025-01-29 21:27:20] Production.INFO: ProcessCDR(1,14359064,1,1,2) [2025-01-29 21:27:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14359064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 21:27:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14359064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 21:27:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14359064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 21:27:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14359064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 21:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359064', 'tblTempUsageDetail_20' ) start [2025-01-29 21:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359064', 'tblTempUsageDetail_20' ) end [2025-01-29 21:27:23] Production.ERROR: pbx prc_insertCDR start [2025-01-29 21:27:23] Production.ERROR: pbx prc_insertCDR end [2025-01-29 21:27:23] Production.INFO: ==13038== Releasing lock... [2025-01-29 21:27:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 21:27:23] Production.INFO: 60.75 MB #Memory Used# [2025-01-29 21:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 18:28:06 [end_date_ymd] => 2025-01-29 21:28:06 [RateCDR] => 1 ) [2025-01-29 21:28:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 18:28:06' and `end` < '2025-01-29 21:28:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 21:28:19] Production.INFO: count ==4478 [2025-01-29 21:28:21] Production.ERROR: pbx CDR StartTime 2025-01-29 18:28:06 - End Time 2025-01-29 21:28:06 [2025-01-29 21:28:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 21:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359069', 'tblTempUsageDetail_20' ) start [2025-01-29 21:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359069', 'tblTempUsageDetail_20' ) end [2025-01-29 21:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359069', 'tblTempVendorCDR_20' ) start [2025-01-29 21:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359069', 'tblTempVendorCDR_20' ) end [2025-01-29 21:28:21] Production.INFO: ProcessCDR(1,14359069,1,1,2) [2025-01-29 21:28:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14359069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 21:28:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14359069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 21:28:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14359069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 21:28:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14359069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 21:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359069', 'tblTempUsageDetail_20' ) start [2025-01-29 21:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359069', 'tblTempUsageDetail_20' ) end [2025-01-29 21:28:24] Production.ERROR: pbx prc_insertCDR start [2025-01-29 21:28:24] Production.ERROR: pbx prc_insertCDR end [2025-01-29 21:28:24] Production.INFO: ==13107== Releasing lock... [2025-01-29 21:28:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 21:28:24] Production.INFO: 61.25 MB #Memory Used# [2025-01-29 21:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 18:29:05 [end_date_ymd] => 2025-01-29 21:29:05 [RateCDR] => 1 ) [2025-01-29 21:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 18:29:05' and `end` < '2025-01-29 21:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 21:29:18] Production.INFO: count ==4484 [2025-01-29 21:29:20] Production.ERROR: pbx CDR StartTime 2025-01-29 18:29:05 - End Time 2025-01-29 21:29:05 [2025-01-29 21:29:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 21:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359074', 'tblTempUsageDetail_20' ) start [2025-01-29 21:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359074', 'tblTempUsageDetail_20' ) end [2025-01-29 21:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359074', 'tblTempVendorCDR_20' ) start [2025-01-29 21:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359074', 'tblTempVendorCDR_20' ) end [2025-01-29 21:29:20] Production.INFO: ProcessCDR(1,14359074,1,1,2) [2025-01-29 21:29:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14359074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 21:29:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14359074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 21:29:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14359074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 21:29:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14359074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 21:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359074', 'tblTempUsageDetail_20' ) start [2025-01-29 21:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359074', 'tblTempUsageDetail_20' ) end [2025-01-29 21:29:23] Production.ERROR: pbx prc_insertCDR start [2025-01-29 21:29:23] Production.ERROR: pbx prc_insertCDR end [2025-01-29 21:29:23] Production.INFO: ==13181== Releasing lock... [2025-01-29 21:29:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 21:29:23] Production.INFO: 61.5 MB #Memory Used# [2025-01-29 21:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 18:30:06 [end_date_ymd] => 2025-01-29 21:30:06 [RateCDR] => 1 ) [2025-01-29 21:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 18:30:06' and `end` < '2025-01-29 21:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 21:30:19] Production.INFO: count ==4483 [2025-01-29 21:30:21] Production.ERROR: pbx CDR StartTime 2025-01-29 18:30:06 - End Time 2025-01-29 21:30:06 [2025-01-29 21:30:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 21:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359080', 'tblTempUsageDetail_20' ) start [2025-01-29 21:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359080', 'tblTempUsageDetail_20' ) end [2025-01-29 21:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359080', 'tblTempVendorCDR_20' ) start [2025-01-29 21:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359080', 'tblTempVendorCDR_20' ) end [2025-01-29 21:30:22] Production.INFO: ProcessCDR(1,14359080,1,1,2) [2025-01-29 21:30:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14359080,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 21:30:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14359080,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 21:30:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14359080,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 21:30:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14359080,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 21:30:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359080', 'tblTempUsageDetail_20' ) start [2025-01-29 21:30:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359080', 'tblTempUsageDetail_20' ) end [2025-01-29 21:30:25] Production.ERROR: pbx prc_insertCDR start [2025-01-29 21:30:25] Production.ERROR: pbx prc_insertCDR end [2025-01-29 21:30:25] Production.INFO: ==13258== Releasing lock... [2025-01-29 21:30:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 21:30:25] Production.INFO: 61.5 MB #Memory Used# [2025-01-29 21:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 18:31:05 [end_date_ymd] => 2025-01-29 21:31:05 [RateCDR] => 1 ) [2025-01-29 21:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 18:31:05' and `end` < '2025-01-29 21:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 21:31:18] Production.INFO: count ==4469 [2025-01-29 21:31:20] Production.ERROR: pbx CDR StartTime 2025-01-29 18:31:05 - End Time 2025-01-29 21:31:05 [2025-01-29 21:31:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 21:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359085', 'tblTempUsageDetail_20' ) start [2025-01-29 21:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359085', 'tblTempUsageDetail_20' ) end [2025-01-29 21:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359085', 'tblTempVendorCDR_20' ) start [2025-01-29 21:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359085', 'tblTempVendorCDR_20' ) end [2025-01-29 21:31:20] Production.INFO: ProcessCDR(1,14359085,1,1,2) [2025-01-29 21:31:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14359085,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 21:31:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14359085,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 21:31:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14359085,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 21:31:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14359085,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 21:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359085', 'tblTempUsageDetail_20' ) start [2025-01-29 21:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359085', 'tblTempUsageDetail_20' ) end [2025-01-29 21:31:23] Production.ERROR: pbx prc_insertCDR start [2025-01-29 21:31:23] Production.ERROR: pbx prc_insertCDR end [2025-01-29 21:31:23] Production.INFO: ==13332== Releasing lock... [2025-01-29 21:31:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 21:31:23] Production.INFO: 61.25 MB #Memory Used# [2025-01-29 21:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 18:32:05 [end_date_ymd] => 2025-01-29 21:32:05 [RateCDR] => 1 ) [2025-01-29 21:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 18:32:05' and `end` < '2025-01-29 21:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 21:32:21] Production.INFO: count ==4762 [2025-01-29 21:32:23] Production.ERROR: pbx CDR StartTime 2025-01-29 18:32:05 - End Time 2025-01-29 21:32:05 [2025-01-29 21:32:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 21:32:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359090', 'tblTempUsageDetail_20' ) start [2025-01-29 21:32:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359090', 'tblTempUsageDetail_20' ) end [2025-01-29 21:32:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359090', 'tblTempVendorCDR_20' ) start [2025-01-29 21:32:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359090', 'tblTempVendorCDR_20' ) end [2025-01-29 21:32:23] Production.INFO: ProcessCDR(1,14359090,1,1,2) [2025-01-29 21:32:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14359090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 21:32:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14359090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 21:32:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14359090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 21:32:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14359090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 21:32:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359090', 'tblTempUsageDetail_20' ) start [2025-01-29 21:32:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359090', 'tblTempUsageDetail_20' ) end [2025-01-29 21:32:27] Production.ERROR: pbx prc_insertCDR start [2025-01-29 21:32:27] Production.ERROR: pbx prc_insertCDR end [2025-01-29 21:32:27] Production.INFO: ==13407== Releasing lock... [2025-01-29 21:32:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 21:32:27] Production.INFO: 63.5 MB #Memory Used# [2025-01-29 21:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 18:33:05 [end_date_ymd] => 2025-01-29 21:33:05 [RateCDR] => 1 ) [2025-01-29 21:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 18:33:05' and `end` < '2025-01-29 21:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 21:33:18] Production.INFO: count ==4808 [2025-01-29 21:33:20] Production.ERROR: pbx CDR StartTime 2025-01-29 18:33:05 - End Time 2025-01-29 21:33:05 [2025-01-29 21:33:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 21:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359095', 'tblTempUsageDetail_20' ) start [2025-01-29 21:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359095', 'tblTempUsageDetail_20' ) end [2025-01-29 21:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359095', 'tblTempVendorCDR_20' ) start [2025-01-29 21:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359095', 'tblTempVendorCDR_20' ) end [2025-01-29 21:33:20] Production.INFO: ProcessCDR(1,14359095,1,1,2) [2025-01-29 21:33:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14359095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 21:33:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14359095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 21:33:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14359095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 21:33:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14359095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 21:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359095', 'tblTempUsageDetail_20' ) start [2025-01-29 21:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359095', 'tblTempUsageDetail_20' ) end [2025-01-29 21:33:24] Production.ERROR: pbx prc_insertCDR start [2025-01-29 21:33:24] Production.ERROR: pbx prc_insertCDR end [2025-01-29 21:33:24] Production.INFO: ==13479== Releasing lock... [2025-01-29 21:33:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 21:33:24] Production.INFO: 63.75 MB #Memory Used# [2025-01-29 21:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 18:34:05 [end_date_ymd] => 2025-01-29 21:34:05 [RateCDR] => 1 ) [2025-01-29 21:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 18:34:05' and `end` < '2025-01-29 21:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 21:34:18] Production.INFO: count ==4807 [2025-01-29 21:34:20] Production.ERROR: pbx CDR StartTime 2025-01-29 18:34:05 - End Time 2025-01-29 21:34:05 [2025-01-29 21:34:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 21:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359100', 'tblTempUsageDetail_20' ) start [2025-01-29 21:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359100', 'tblTempUsageDetail_20' ) end [2025-01-29 21:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359100', 'tblTempVendorCDR_20' ) start [2025-01-29 21:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359100', 'tblTempVendorCDR_20' ) end [2025-01-29 21:34:20] Production.INFO: ProcessCDR(1,14359100,1,1,2) [2025-01-29 21:34:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14359100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 21:34:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14359100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 21:34:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14359100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 21:34:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14359100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 21:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359100', 'tblTempUsageDetail_20' ) start [2025-01-29 21:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359100', 'tblTempUsageDetail_20' ) end [2025-01-29 21:34:24] Production.ERROR: pbx prc_insertCDR start [2025-01-29 21:34:24] Production.ERROR: pbx prc_insertCDR end [2025-01-29 21:34:24] Production.INFO: ==13553== Releasing lock... [2025-01-29 21:34:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 21:34:24] Production.INFO: 63.75 MB #Memory Used# [2025-01-29 21:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 18:35:05 [end_date_ymd] => 2025-01-29 21:35:05 [RateCDR] => 1 ) [2025-01-29 21:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 18:35:05' and `end` < '2025-01-29 21:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 21:35:18] Production.INFO: count ==4800 [2025-01-29 21:35:20] Production.ERROR: pbx CDR StartTime 2025-01-29 18:35:05 - End Time 2025-01-29 21:35:05 [2025-01-29 21:35:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 21:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359105', 'tblTempUsageDetail_20' ) start [2025-01-29 21:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359105', 'tblTempUsageDetail_20' ) end [2025-01-29 21:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359105', 'tblTempVendorCDR_20' ) start [2025-01-29 21:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359105', 'tblTempVendorCDR_20' ) end [2025-01-29 21:35:20] Production.INFO: ProcessCDR(1,14359105,1,1,2) [2025-01-29 21:35:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14359105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 21:35:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14359105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 21:35:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14359105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 21:35:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14359105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 21:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359105', 'tblTempUsageDetail_20' ) start [2025-01-29 21:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359105', 'tblTempUsageDetail_20' ) end [2025-01-29 21:35:24] Production.ERROR: pbx prc_insertCDR start [2025-01-29 21:35:24] Production.ERROR: pbx prc_insertCDR end [2025-01-29 21:35:24] Production.INFO: ==13632== Releasing lock... [2025-01-29 21:35:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 21:35:24] Production.INFO: 63.75 MB #Memory Used# [2025-01-29 21:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 18:36:05 [end_date_ymd] => 2025-01-29 21:36:05 [RateCDR] => 1 ) [2025-01-29 21:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 18:36:05' and `end` < '2025-01-29 21:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 21:36:19] Production.INFO: count ==4802 [2025-01-29 21:36:21] Production.ERROR: pbx CDR StartTime 2025-01-29 18:36:05 - End Time 2025-01-29 21:36:05 [2025-01-29 21:36:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 21:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359110', 'tblTempUsageDetail_20' ) start [2025-01-29 21:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359110', 'tblTempUsageDetail_20' ) end [2025-01-29 21:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359110', 'tblTempVendorCDR_20' ) start [2025-01-29 21:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359110', 'tblTempVendorCDR_20' ) end [2025-01-29 21:36:21] Production.INFO: ProcessCDR(1,14359110,1,1,2) [2025-01-29 21:36:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14359110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 21:36:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14359110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 21:36:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14359110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 21:36:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14359110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 21:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359110', 'tblTempUsageDetail_20' ) start [2025-01-29 21:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359110', 'tblTempUsageDetail_20' ) end [2025-01-29 21:36:24] Production.ERROR: pbx prc_insertCDR start [2025-01-29 21:36:24] Production.ERROR: pbx prc_insertCDR end [2025-01-29 21:36:24] Production.INFO: ==13754== Releasing lock... [2025-01-29 21:36:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 21:36:24] Production.INFO: 63.75 MB #Memory Used# [2025-01-29 21:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 18:37:05 [end_date_ymd] => 2025-01-29 21:37:05 [RateCDR] => 1 ) [2025-01-29 21:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 18:37:05' and `end` < '2025-01-29 21:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 21:37:18] Production.INFO: count ==4801 [2025-01-29 21:37:20] Production.ERROR: pbx CDR StartTime 2025-01-29 18:37:05 - End Time 2025-01-29 21:37:05 [2025-01-29 21:37:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 21:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359115', 'tblTempUsageDetail_20' ) start [2025-01-29 21:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359115', 'tblTempUsageDetail_20' ) end [2025-01-29 21:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359115', 'tblTempVendorCDR_20' ) start [2025-01-29 21:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359115', 'tblTempVendorCDR_20' ) end [2025-01-29 21:37:21] Production.INFO: ProcessCDR(1,14359115,1,1,2) [2025-01-29 21:37:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14359115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 21:37:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14359115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 21:37:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14359115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 21:37:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14359115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 21:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359115', 'tblTempUsageDetail_20' ) start [2025-01-29 21:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359115', 'tblTempUsageDetail_20' ) end [2025-01-29 21:37:23] Production.ERROR: pbx prc_insertCDR start [2025-01-29 21:37:23] Production.ERROR: pbx prc_insertCDR end [2025-01-29 21:37:23] Production.INFO: ==13830== Releasing lock... [2025-01-29 21:37:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 21:37:23] Production.INFO: 63.75 MB #Memory Used# [2025-01-29 21:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 18:38:05 [end_date_ymd] => 2025-01-29 21:38:05 [RateCDR] => 1 ) [2025-01-29 21:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 18:38:05' and `end` < '2025-01-29 21:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 21:38:18] Production.INFO: count ==4801 [2025-01-29 21:38:20] Production.ERROR: pbx CDR StartTime 2025-01-29 18:38:05 - End Time 2025-01-29 21:38:05 [2025-01-29 21:38:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 21:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359120', 'tblTempUsageDetail_20' ) start [2025-01-29 21:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359120', 'tblTempUsageDetail_20' ) end [2025-01-29 21:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359120', 'tblTempVendorCDR_20' ) start [2025-01-29 21:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359120', 'tblTempVendorCDR_20' ) end [2025-01-29 21:38:20] Production.INFO: ProcessCDR(1,14359120,1,1,2) [2025-01-29 21:38:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14359120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 21:38:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14359120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 21:38:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14359120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 21:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14359120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 21:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359120', 'tblTempUsageDetail_20' ) start [2025-01-29 21:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359120', 'tblTempUsageDetail_20' ) end [2025-01-29 21:38:23] Production.ERROR: pbx prc_insertCDR start [2025-01-29 21:38:23] Production.ERROR: pbx prc_insertCDR end [2025-01-29 21:38:23] Production.INFO: ==13905== Releasing lock... [2025-01-29 21:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 21:38:23] Production.INFO: 63.75 MB #Memory Used# [2025-01-29 21:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 18:39:05 [end_date_ymd] => 2025-01-29 21:39:05 [RateCDR] => 1 ) [2025-01-29 21:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 18:39:05' and `end` < '2025-01-29 21:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 21:39:18] Production.INFO: count ==4801 [2025-01-29 21:39:20] Production.ERROR: pbx CDR StartTime 2025-01-29 18:39:05 - End Time 2025-01-29 21:39:05 [2025-01-29 21:39:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 21:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359125', 'tblTempUsageDetail_20' ) start [2025-01-29 21:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359125', 'tblTempUsageDetail_20' ) end [2025-01-29 21:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359125', 'tblTempVendorCDR_20' ) start [2025-01-29 21:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359125', 'tblTempVendorCDR_20' ) end [2025-01-29 21:39:20] Production.INFO: ProcessCDR(1,14359125,1,1,2) [2025-01-29 21:39:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14359125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 21:39:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14359125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 21:39:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14359125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 21:39:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14359125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 21:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359125', 'tblTempUsageDetail_20' ) start [2025-01-29 21:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359125', 'tblTempUsageDetail_20' ) end [2025-01-29 21:39:24] Production.ERROR: pbx prc_insertCDR start [2025-01-29 21:39:24] Production.ERROR: pbx prc_insertCDR end [2025-01-29 21:39:24] Production.INFO: ==13976== Releasing lock... [2025-01-29 21:39:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 21:39:24] Production.INFO: 63.75 MB #Memory Used# [2025-01-29 21:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 18:40:05 [end_date_ymd] => 2025-01-29 21:40:05 [RateCDR] => 1 ) [2025-01-29 21:40:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 18:40:05' and `end` < '2025-01-29 21:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 21:40:19] Production.INFO: count ==4846 [2025-01-29 21:40:21] Production.ERROR: pbx CDR StartTime 2025-01-29 18:40:05 - End Time 2025-01-29 21:40:05 [2025-01-29 21:40:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 21:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359127', 'tblTempUsageDetail_20' ) start [2025-01-29 21:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359127', 'tblTempUsageDetail_20' ) end [2025-01-29 21:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359127', 'tblTempVendorCDR_20' ) start [2025-01-29 21:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359127', 'tblTempVendorCDR_20' ) end [2025-01-29 21:40:21] Production.INFO: ProcessCDR(1,14359127,1,1,2) [2025-01-29 21:40:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14359127,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 21:40:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14359127,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 21:40:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14359127,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 21:40:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14359127,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 21:40:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359127', 'tblTempUsageDetail_20' ) start [2025-01-29 21:40:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359127', 'tblTempUsageDetail_20' ) end [2025-01-29 21:40:25] Production.ERROR: pbx prc_insertCDR start [2025-01-29 21:40:25] Production.ERROR: pbx prc_insertCDR end [2025-01-29 21:40:25] Production.INFO: ==14054== Releasing lock... [2025-01-29 21:40:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 21:40:25] Production.INFO: 64 MB #Memory Used# [2025-01-29 21:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 18:41:05 [end_date_ymd] => 2025-01-29 21:41:05 [RateCDR] => 1 ) [2025-01-29 21:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 18:41:05' and `end` < '2025-01-29 21:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 21:41:20] Production.INFO: count ==5091 [2025-01-29 21:41:22] Production.ERROR: pbx CDR StartTime 2025-01-29 18:41:05 - End Time 2025-01-29 21:41:05 [2025-01-29 21:41:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 21:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359136', 'tblTempUsageDetail_20' ) start [2025-01-29 21:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359136', 'tblTempUsageDetail_20' ) end [2025-01-29 21:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359136', 'tblTempVendorCDR_20' ) start [2025-01-29 21:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359136', 'tblTempVendorCDR_20' ) end [2025-01-29 21:41:22] Production.INFO: ProcessCDR(1,14359136,1,1,2) [2025-01-29 21:41:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14359136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 21:41:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14359136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 21:41:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14359136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 21:41:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14359136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 21:41:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359136', 'tblTempUsageDetail_20' ) start [2025-01-29 21:41:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359136', 'tblTempUsageDetail_20' ) end [2025-01-29 21:41:26] Production.ERROR: pbx prc_insertCDR start [2025-01-29 21:41:26] Production.ERROR: pbx prc_insertCDR end [2025-01-29 21:41:26] Production.INFO: ==14131== Releasing lock... [2025-01-29 21:41:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 21:41:26] Production.INFO: 66 MB #Memory Used# [2025-01-29 21:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 18:42:05 [end_date_ymd] => 2025-01-29 21:42:05 [RateCDR] => 1 ) [2025-01-29 21:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 18:42:05' and `end` < '2025-01-29 21:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 21:42:18] Production.INFO: count ==5090 [2025-01-29 21:42:20] Production.ERROR: pbx CDR StartTime 2025-01-29 18:42:05 - End Time 2025-01-29 21:42:05 [2025-01-29 21:42:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 21:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359141', 'tblTempUsageDetail_20' ) start [2025-01-29 21:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359141', 'tblTempUsageDetail_20' ) end [2025-01-29 21:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359141', 'tblTempVendorCDR_20' ) start [2025-01-29 21:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359141', 'tblTempVendorCDR_20' ) end [2025-01-29 21:42:20] Production.INFO: ProcessCDR(1,14359141,1,1,2) [2025-01-29 21:42:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14359141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 21:42:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14359141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 21:42:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14359141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 21:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14359141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 21:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359141', 'tblTempUsageDetail_20' ) start [2025-01-29 21:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359141', 'tblTempUsageDetail_20' ) end [2025-01-29 21:42:23] Production.ERROR: pbx prc_insertCDR start [2025-01-29 21:42:23] Production.ERROR: pbx prc_insertCDR end [2025-01-29 21:42:23] Production.INFO: ==14204== Releasing lock... [2025-01-29 21:42:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 21:42:23] Production.INFO: 66 MB #Memory Used# [2025-01-29 21:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 18:43:05 [end_date_ymd] => 2025-01-29 21:43:05 [RateCDR] => 1 ) [2025-01-29 21:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 18:43:05' and `end` < '2025-01-29 21:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 21:43:18] Production.INFO: count ==5088 [2025-01-29 21:43:20] Production.ERROR: pbx CDR StartTime 2025-01-29 18:43:05 - End Time 2025-01-29 21:43:05 [2025-01-29 21:43:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 21:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359146', 'tblTempUsageDetail_20' ) start [2025-01-29 21:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359146', 'tblTempUsageDetail_20' ) end [2025-01-29 21:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359146', 'tblTempVendorCDR_20' ) start [2025-01-29 21:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359146', 'tblTempVendorCDR_20' ) end [2025-01-29 21:43:20] Production.INFO: ProcessCDR(1,14359146,1,1,2) [2025-01-29 21:43:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14359146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 21:43:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14359146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 21:43:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14359146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 21:43:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14359146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 21:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359146', 'tblTempUsageDetail_20' ) start [2025-01-29 21:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359146', 'tblTempUsageDetail_20' ) end [2025-01-29 21:43:23] Production.ERROR: pbx prc_insertCDR start [2025-01-29 21:43:23] Production.ERROR: pbx prc_insertCDR end [2025-01-29 21:43:23] Production.INFO: ==14277== Releasing lock... [2025-01-29 21:43:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 21:43:23] Production.INFO: 66 MB #Memory Used# [2025-01-29 21:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 18:44:05 [end_date_ymd] => 2025-01-29 21:44:05 [RateCDR] => 1 ) [2025-01-29 21:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 18:44:05' and `end` < '2025-01-29 21:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 21:44:18] Production.INFO: count ==5083 [2025-01-29 21:44:21] Production.ERROR: pbx CDR StartTime 2025-01-29 18:44:05 - End Time 2025-01-29 21:44:05 [2025-01-29 21:44:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 21:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359151', 'tblTempUsageDetail_20' ) start [2025-01-29 21:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359151', 'tblTempUsageDetail_20' ) end [2025-01-29 21:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359151', 'tblTempVendorCDR_20' ) start [2025-01-29 21:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359151', 'tblTempVendorCDR_20' ) end [2025-01-29 21:44:21] Production.INFO: ProcessCDR(1,14359151,1,1,2) [2025-01-29 21:44:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14359151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 21:44:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14359151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 21:44:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14359151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 21:44:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14359151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 21:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359151', 'tblTempUsageDetail_20' ) start [2025-01-29 21:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359151', 'tblTempUsageDetail_20' ) end [2025-01-29 21:44:24] Production.ERROR: pbx prc_insertCDR start [2025-01-29 21:44:24] Production.ERROR: pbx prc_insertCDR end [2025-01-29 21:44:24] Production.INFO: ==14349== Releasing lock... [2025-01-29 21:44:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 21:44:24] Production.INFO: 66 MB #Memory Used# [2025-01-29 21:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 18:45:05 [end_date_ymd] => 2025-01-29 21:45:05 [RateCDR] => 1 ) [2025-01-29 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-01-29 18:45:05' and `end` < '2025-01-29 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-01-29 21:45:18] Production.INFO: count ==5170 [2025-01-29 21:45:21] Production.ERROR: pbx CDR StartTime 2025-01-29 18:45:05 - End Time 2025-01-29 21:45:05 [2025-01-29 21:45:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 21:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359156', 'tblTempUsageDetail_20' ) start [2025-01-29 21:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359156', 'tblTempUsageDetail_20' ) end [2025-01-29 21:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359156', 'tblTempVendorCDR_20' ) start [2025-01-29 21:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359156', 'tblTempVendorCDR_20' ) end [2025-01-29 21:45:21] Production.INFO: ProcessCDR(1,14359156,1,1,2) [2025-01-29 21:45:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14359156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 21:45:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14359156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 21:45:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14359156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 21:45:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14359156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 21:45:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359156', 'tblTempUsageDetail_20' ) start [2025-01-29 21:45:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359156', 'tblTempUsageDetail_20' ) end [2025-01-29 21:45:26] Production.ERROR: pbx prc_insertCDR start [2025-01-29 21:45:26] Production.ERROR: pbx prc_insertCDR end [2025-01-29 21:45:26] Production.INFO: ==14421== Releasing lock... [2025-01-29 21:45:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 21:45:26] Production.INFO: 66.5 MB #Memory Used# [2025-01-29 21:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 18:46:06 [end_date_ymd] => 2025-01-29 21:46:06 [RateCDR] => 1 ) [2025-01-29 21:46:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 18:46:06' and `end` < '2025-01-29 21:46:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 21:46:19] Production.INFO: count ==5170 [2025-01-29 21:46:21] Production.ERROR: pbx CDR StartTime 2025-01-29 18:46:06 - End Time 2025-01-29 21:46:06 [2025-01-29 21:46:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 21:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359161', 'tblTempUsageDetail_20' ) start [2025-01-29 21:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359161', 'tblTempUsageDetail_20' ) end [2025-01-29 21:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359161', 'tblTempVendorCDR_20' ) start [2025-01-29 21:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359161', 'tblTempVendorCDR_20' ) end [2025-01-29 21:46:22] Production.INFO: ProcessCDR(1,14359161,1,1,2) [2025-01-29 21:46:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14359161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 21:46:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14359161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 21:46:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14359161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 21:46:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14359161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 21:46:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359161', 'tblTempUsageDetail_20' ) start [2025-01-29 21:46:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359161', 'tblTempUsageDetail_20' ) end [2025-01-29 21:46:25] Production.ERROR: pbx prc_insertCDR start [2025-01-29 21:46:25] Production.ERROR: pbx prc_insertCDR end [2025-01-29 21:46:25] Production.INFO: ==14498== Releasing lock... [2025-01-29 21:46:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 21:46:25] Production.INFO: 66.5 MB #Memory Used# [2025-01-29 21:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 18:47:05 [end_date_ymd] => 2025-01-29 21:47:05 [RateCDR] => 1 ) [2025-01-29 21:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 18:47:05' and `end` < '2025-01-29 21:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 21:47:18] Production.INFO: count ==5193 [2025-01-29 21:47:20] Production.ERROR: pbx CDR StartTime 2025-01-29 18:47:05 - End Time 2025-01-29 21:47:05 [2025-01-29 21:47:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 21:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359166', 'tblTempUsageDetail_20' ) start [2025-01-29 21:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359166', 'tblTempUsageDetail_20' ) end [2025-01-29 21:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359166', 'tblTempVendorCDR_20' ) start [2025-01-29 21:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359166', 'tblTempVendorCDR_20' ) end [2025-01-29 21:47:20] Production.INFO: ProcessCDR(1,14359166,1,1,2) [2025-01-29 21:47:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14359166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 21:47:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14359166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 21:47:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14359166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 21:47:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14359166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 21:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359166', 'tblTempUsageDetail_20' ) start [2025-01-29 21:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359166', 'tblTempUsageDetail_20' ) end [2025-01-29 21:47:23] Production.ERROR: pbx prc_insertCDR start [2025-01-29 21:47:23] Production.ERROR: pbx prc_insertCDR end [2025-01-29 21:47:23] Production.INFO: ==14574== Releasing lock... [2025-01-29 21:47:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 21:47:23] Production.INFO: 66.75 MB #Memory Used# [2025-01-29 21:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 18:48:05 [end_date_ymd] => 2025-01-29 21:48:05 [RateCDR] => 1 ) [2025-01-29 21:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 18:48:05' and `end` < '2025-01-29 21:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 21:48:18] Production.INFO: count ==5202 [2025-01-29 21:48:20] Production.ERROR: pbx CDR StartTime 2025-01-29 18:48:05 - End Time 2025-01-29 21:48:05 [2025-01-29 21:48:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 21:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359171', 'tblTempUsageDetail_20' ) start [2025-01-29 21:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359171', 'tblTempUsageDetail_20' ) end [2025-01-29 21:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359171', 'tblTempVendorCDR_20' ) start [2025-01-29 21:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359171', 'tblTempVendorCDR_20' ) end [2025-01-29 21:48:21] Production.INFO: ProcessCDR(1,14359171,1,1,2) [2025-01-29 21:48:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14359171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 21:48:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14359171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 21:48:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14359171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 21:48:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14359171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 21:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359171', 'tblTempUsageDetail_20' ) start [2025-01-29 21:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359171', 'tblTempUsageDetail_20' ) end [2025-01-29 21:48:24] Production.ERROR: pbx prc_insertCDR start [2025-01-29 21:48:24] Production.ERROR: pbx prc_insertCDR end [2025-01-29 21:48:24] Production.INFO: ==14649== Releasing lock... [2025-01-29 21:48:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 21:48:24] Production.INFO: 66.75 MB #Memory Used# [2025-01-29 21:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 18:49:04 [end_date_ymd] => 2025-01-29 21:49:04 [RateCDR] => 1 ) [2025-01-29 21:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 18:49:04' and `end` < '2025-01-29 21:49:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 21:49:18] Production.INFO: count ==5200 [2025-01-29 21:49:20] Production.ERROR: pbx CDR StartTime 2025-01-29 18:49:04 - End Time 2025-01-29 21:49:04 [2025-01-29 21:49:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 21:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359176', 'tblTempUsageDetail_20' ) start [2025-01-29 21:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359176', 'tblTempUsageDetail_20' ) end [2025-01-29 21:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359176', 'tblTempVendorCDR_20' ) start [2025-01-29 21:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359176', 'tblTempVendorCDR_20' ) end [2025-01-29 21:49:20] Production.INFO: ProcessCDR(1,14359176,1,1,2) [2025-01-29 21:49:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14359176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 21:49:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14359176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 21:49:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14359176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 21:49:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14359176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 21:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359176', 'tblTempUsageDetail_20' ) start [2025-01-29 21:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359176', 'tblTempUsageDetail_20' ) end [2025-01-29 21:49:23] Production.ERROR: pbx prc_insertCDR start [2025-01-29 21:49:23] Production.ERROR: pbx prc_insertCDR end [2025-01-29 21:49:23] Production.INFO: ==14726== Releasing lock... [2025-01-29 21:49:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 21:49:23] Production.INFO: 66.75 MB #Memory Used# [2025-01-29 21:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 18:50:06 [end_date_ymd] => 2025-01-29 21:50:06 [RateCDR] => 1 ) [2025-01-29 21:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 18:50:06' and `end` < '2025-01-29 21:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 21:50:20] Production.INFO: count ==5192 [2025-01-29 21:50:22] Production.ERROR: pbx CDR StartTime 2025-01-29 18:50:06 - End Time 2025-01-29 21:50:06 [2025-01-29 21:50:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 21:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359181', 'tblTempUsageDetail_20' ) start [2025-01-29 21:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359181', 'tblTempUsageDetail_20' ) end [2025-01-29 21:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359181', 'tblTempVendorCDR_20' ) start [2025-01-29 21:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359181', 'tblTempVendorCDR_20' ) end [2025-01-29 21:50:22] Production.INFO: ProcessCDR(1,14359181,1,1,2) [2025-01-29 21:50:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14359181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 21:50:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14359181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 21:50:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14359181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 21:50:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14359181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 21:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359181', 'tblTempUsageDetail_20' ) start [2025-01-29 21:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359181', 'tblTempUsageDetail_20' ) end [2025-01-29 21:50:25] Production.ERROR: pbx prc_insertCDR start [2025-01-29 21:50:25] Production.ERROR: pbx prc_insertCDR end [2025-01-29 21:50:25] Production.INFO: ==14807== Releasing lock... [2025-01-29 21:50:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 21:50:25] Production.INFO: 66.75 MB #Memory Used# [2025-01-29 21:51:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 18:51:04 [end_date_ymd] => 2025-01-29 21:51:04 [RateCDR] => 1 ) [2025-01-29 21:51:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 18:51:04' and `end` < '2025-01-29 21:51:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 21:51:18] Production.INFO: count ==5159 [2025-01-29 21:51:20] Production.ERROR: pbx CDR StartTime 2025-01-29 18:51:04 - End Time 2025-01-29 21:51:04 [2025-01-29 21:51:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 21:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359187', 'tblTempUsageDetail_20' ) start [2025-01-29 21:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359187', 'tblTempUsageDetail_20' ) end [2025-01-29 21:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359187', 'tblTempVendorCDR_20' ) start [2025-01-29 21:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359187', 'tblTempVendorCDR_20' ) end [2025-01-29 21:51:20] Production.INFO: ProcessCDR(1,14359187,1,1,2) [2025-01-29 21:51:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14359187,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 21:51:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14359187,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 21:51:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14359187,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 21:51:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14359187,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 21:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359187', 'tblTempUsageDetail_20' ) start [2025-01-29 21:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359187', 'tblTempUsageDetail_20' ) end [2025-01-29 21:51:24] Production.ERROR: pbx prc_insertCDR start [2025-01-29 21:51:24] Production.ERROR: pbx prc_insertCDR end [2025-01-29 21:51:24] Production.INFO: ==14925== Releasing lock... [2025-01-29 21:51:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 21:51:24] Production.INFO: 66.5 MB #Memory Used# [2025-01-29 21:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 18:52:05 [end_date_ymd] => 2025-01-29 21:52:05 [RateCDR] => 1 ) [2025-01-29 21:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 18:52:05' and `end` < '2025-01-29 21:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 21:52:20] Production.INFO: count ==5405 [2025-01-29 21:52:22] Production.ERROR: pbx CDR StartTime 2025-01-29 18:52:05 - End Time 2025-01-29 21:52:05 [2025-01-29 21:52:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 21:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359192', 'tblTempUsageDetail_20' ) start [2025-01-29 21:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359192', 'tblTempUsageDetail_20' ) end [2025-01-29 21:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359192', 'tblTempVendorCDR_20' ) start [2025-01-29 21:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359192', 'tblTempVendorCDR_20' ) end [2025-01-29 21:52:22] Production.INFO: ProcessCDR(1,14359192,1,1,2) [2025-01-29 21:52:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14359192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 21:52:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14359192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 21:52:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14359192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 21:52:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14359192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 21:52:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359192', 'tblTempUsageDetail_20' ) start [2025-01-29 21:52:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359192', 'tblTempUsageDetail_20' ) end [2025-01-29 21:52:26] Production.ERROR: pbx prc_insertCDR start [2025-01-29 21:52:26] Production.ERROR: pbx prc_insertCDR end [2025-01-29 21:52:26] Production.INFO: ==15001== Releasing lock... [2025-01-29 21:52:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 21:52:26] Production.INFO: 68.25 MB #Memory Used# [2025-01-29 21:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 18:53:05 [end_date_ymd] => 2025-01-29 21:53:05 [RateCDR] => 1 ) [2025-01-29 21:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 18:53:05' and `end` < '2025-01-29 21:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 21:53:19] Production.INFO: count ==5392 [2025-01-29 21:53:21] Production.ERROR: pbx CDR StartTime 2025-01-29 18:53:05 - End Time 2025-01-29 21:53:05 [2025-01-29 21:53:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 21:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359197', 'tblTempUsageDetail_20' ) start [2025-01-29 21:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359197', 'tblTempUsageDetail_20' ) end [2025-01-29 21:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359197', 'tblTempVendorCDR_20' ) start [2025-01-29 21:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359197', 'tblTempVendorCDR_20' ) end [2025-01-29 21:53:21] Production.INFO: ProcessCDR(1,14359197,1,1,2) [2025-01-29 21:53:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14359197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 21:53:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14359197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 21:53:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14359197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 21:53:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14359197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 21:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359197', 'tblTempUsageDetail_20' ) start [2025-01-29 21:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359197', 'tblTempUsageDetail_20' ) end [2025-01-29 21:53:24] Production.ERROR: pbx prc_insertCDR start [2025-01-29 21:53:24] Production.ERROR: pbx prc_insertCDR end [2025-01-29 21:53:24] Production.INFO: ==15075== Releasing lock... [2025-01-29 21:53:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 21:53:24] Production.INFO: 68.25 MB #Memory Used# [2025-01-29 21:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 18:54:05 [end_date_ymd] => 2025-01-29 21:54:05 [RateCDR] => 1 ) [2025-01-29 21:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 18:54:05' and `end` < '2025-01-29 21:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 21:54:18] Production.INFO: count ==5454 [2025-01-29 21:54:20] Production.ERROR: pbx CDR StartTime 2025-01-29 18:54:05 - End Time 2025-01-29 21:54:05 [2025-01-29 21:54:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 21:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359202', 'tblTempUsageDetail_20' ) start [2025-01-29 21:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359202', 'tblTempUsageDetail_20' ) end [2025-01-29 21:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359202', 'tblTempVendorCDR_20' ) start [2025-01-29 21:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359202', 'tblTempVendorCDR_20' ) end [2025-01-29 21:54:20] Production.INFO: ProcessCDR(1,14359202,1,1,2) [2025-01-29 21:54:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14359202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 21:54:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14359202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 21:54:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14359202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 21:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14359202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 21:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359202', 'tblTempUsageDetail_20' ) start [2025-01-29 21:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359202', 'tblTempUsageDetail_20' ) end [2025-01-29 21:54:23] Production.ERROR: pbx prc_insertCDR start [2025-01-29 21:54:23] Production.ERROR: pbx prc_insertCDR end [2025-01-29 21:54:23] Production.INFO: ==15149== Releasing lock... [2025-01-29 21:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 21:54:23] Production.INFO: 68.75 MB #Memory Used# [2025-01-29 21:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 18:55:05 [end_date_ymd] => 2025-01-29 21:55:05 [RateCDR] => 1 ) [2025-01-29 21:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 18:55:05' and `end` < '2025-01-29 21:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 21:55:19] Production.INFO: count ==5510 [2025-01-29 21:55:21] Production.ERROR: pbx CDR StartTime 2025-01-29 18:55:05 - End Time 2025-01-29 21:55:05 [2025-01-29 21:55:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 21:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359207', 'tblTempUsageDetail_20' ) start [2025-01-29 21:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359207', 'tblTempUsageDetail_20' ) end [2025-01-29 21:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359207', 'tblTempVendorCDR_20' ) start [2025-01-29 21:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359207', 'tblTempVendorCDR_20' ) end [2025-01-29 21:55:21] Production.INFO: ProcessCDR(1,14359207,1,1,2) [2025-01-29 21:55:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14359207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 21:55:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14359207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 21:55:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14359207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 21:55:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14359207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 21:55:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359207', 'tblTempUsageDetail_20' ) start [2025-01-29 21:55:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359207', 'tblTempUsageDetail_20' ) end [2025-01-29 21:55:25] Production.ERROR: pbx prc_insertCDR start [2025-01-29 21:55:25] Production.ERROR: pbx prc_insertCDR end [2025-01-29 21:55:25] Production.INFO: ==15225== Releasing lock... [2025-01-29 21:55:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 21:55:25] Production.INFO: 69 MB #Memory Used# [2025-01-29 21:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 18:56:05 [end_date_ymd] => 2025-01-29 21:56:05 [RateCDR] => 1 ) [2025-01-29 21:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 18:56:05' and `end` < '2025-01-29 21:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 21:56:18] Production.INFO: count ==5475 [2025-01-29 21:56:21] Production.ERROR: pbx CDR StartTime 2025-01-29 18:56:05 - End Time 2025-01-29 21:56:05 [2025-01-29 21:56:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 21:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359212', 'tblTempUsageDetail_20' ) start [2025-01-29 21:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359212', 'tblTempUsageDetail_20' ) end [2025-01-29 21:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359212', 'tblTempVendorCDR_20' ) start [2025-01-29 21:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359212', 'tblTempVendorCDR_20' ) end [2025-01-29 21:56:21] Production.INFO: ProcessCDR(1,14359212,1,1,2) [2025-01-29 21:56:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14359212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 21:56:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14359212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 21:56:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14359212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 21:56:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14359212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 21:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359212', 'tblTempUsageDetail_20' ) start [2025-01-29 21:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359212', 'tblTempUsageDetail_20' ) end [2025-01-29 21:56:24] Production.ERROR: pbx prc_insertCDR start [2025-01-29 21:56:24] Production.ERROR: pbx prc_insertCDR end [2025-01-29 21:56:24] Production.INFO: ==15302== Releasing lock... [2025-01-29 21:56:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 21:56:24] Production.INFO: 68.75 MB #Memory Used# [2025-01-29 21:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 18:57:05 [end_date_ymd] => 2025-01-29 21:57:05 [RateCDR] => 1 ) [2025-01-29 21:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 18:57:05' and `end` < '2025-01-29 21:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 21:57:18] Production.INFO: count ==5395 [2025-01-29 21:57:21] Production.ERROR: pbx CDR StartTime 2025-01-29 18:57:05 - End Time 2025-01-29 21:57:05 [2025-01-29 21:57:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 21:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359217', 'tblTempUsageDetail_20' ) start [2025-01-29 21:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359217', 'tblTempUsageDetail_20' ) end [2025-01-29 21:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359217', 'tblTempVendorCDR_20' ) start [2025-01-29 21:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359217', 'tblTempVendorCDR_20' ) end [2025-01-29 21:57:21] Production.INFO: ProcessCDR(1,14359217,1,1,2) [2025-01-29 21:57:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14359217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 21:57:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14359217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 21:57:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14359217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 21:57:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14359217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 21:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359217', 'tblTempUsageDetail_20' ) start [2025-01-29 21:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359217', 'tblTempUsageDetail_20' ) end [2025-01-29 21:57:24] Production.ERROR: pbx prc_insertCDR start [2025-01-29 21:57:24] Production.ERROR: pbx prc_insertCDR end [2025-01-29 21:57:24] Production.INFO: ==15374== Releasing lock... [2025-01-29 21:57:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 21:57:24] Production.INFO: 68.25 MB #Memory Used# [2025-01-29 21:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 18:58:05 [end_date_ymd] => 2025-01-29 21:58:05 [RateCDR] => 1 ) [2025-01-29 21:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 18:58:05' and `end` < '2025-01-29 21:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 21:58:19] Production.INFO: count ==5580 [2025-01-29 21:58:21] Production.ERROR: pbx CDR StartTime 2025-01-29 18:58:05 - End Time 2025-01-29 21:58:05 [2025-01-29 21:58:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 21:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359222', 'tblTempUsageDetail_20' ) start [2025-01-29 21:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359222', 'tblTempUsageDetail_20' ) end [2025-01-29 21:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359222', 'tblTempVendorCDR_20' ) start [2025-01-29 21:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359222', 'tblTempVendorCDR_20' ) end [2025-01-29 21:58:21] Production.INFO: ProcessCDR(1,14359222,1,1,2) [2025-01-29 21:58:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14359222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 21:58:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14359222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 21:58:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14359222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 21:58:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14359222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 21:58:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359222', 'tblTempUsageDetail_20' ) start [2025-01-29 21:58:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359222', 'tblTempUsageDetail_20' ) end [2025-01-29 21:58:26] Production.ERROR: pbx prc_insertCDR start [2025-01-29 21:58:26] Production.ERROR: pbx prc_insertCDR end [2025-01-29 21:58:26] Production.INFO: ==15447== Releasing lock... [2025-01-29 21:58:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 21:58:26] Production.INFO: 69.5 MB #Memory Used# [2025-01-29 21:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 18:59:05 [end_date_ymd] => 2025-01-29 21:59:05 [RateCDR] => 1 ) [2025-01-29 21:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 18:59:05' and `end` < '2025-01-29 21:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 21:59:18] Production.INFO: count ==5648 [2025-01-29 21:59:21] Production.ERROR: pbx CDR StartTime 2025-01-29 18:59:05 - End Time 2025-01-29 21:59:05 [2025-01-29 21:59:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 21:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359227', 'tblTempUsageDetail_20' ) start [2025-01-29 21:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359227', 'tblTempUsageDetail_20' ) end [2025-01-29 21:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359227', 'tblTempVendorCDR_20' ) start [2025-01-29 21:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359227', 'tblTempVendorCDR_20' ) end [2025-01-29 21:59:21] Production.INFO: ProcessCDR(1,14359227,1,1,2) [2025-01-29 21:59:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14359227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 21:59:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14359227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 21:59:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14359227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 21:59:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14359227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 21:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359227', 'tblTempUsageDetail_20' ) start [2025-01-29 21:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359227', 'tblTempUsageDetail_20' ) end [2025-01-29 21:59:25] Production.ERROR: pbx prc_insertCDR start [2025-01-29 21:59:25] Production.ERROR: pbx prc_insertCDR end [2025-01-29 21:59:25] Production.INFO: ==15522== Releasing lock... [2025-01-29 21:59:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 21:59:25] Production.INFO: 70 MB #Memory Used# [2025-01-29 22:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 19:00:06 [end_date_ymd] => 2025-01-29 22:00:06 [RateCDR] => 1 ) [2025-01-29 22:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 19:00:06' and `end` < '2025-01-29 22:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 22:00:19] Production.INFO: count ==5578 [2025-01-29 22:00:22] Production.ERROR: pbx CDR StartTime 2025-01-29 19:00:06 - End Time 2025-01-29 22:00:06 [2025-01-29 22:00:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 22:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359233', 'tblTempUsageDetail_20' ) start [2025-01-29 22:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359233', 'tblTempUsageDetail_20' ) end [2025-01-29 22:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359233', 'tblTempVendorCDR_20' ) start [2025-01-29 22:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359233', 'tblTempVendorCDR_20' ) end [2025-01-29 22:00:22] Production.INFO: ProcessCDR(1,14359233,1,1,2) [2025-01-29 22:00:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14359233,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 22:00:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14359233,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 22:00:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14359233,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 22:00:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14359233,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 22:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359233', 'tblTempUsageDetail_20' ) start [2025-01-29 22:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359233', 'tblTempUsageDetail_20' ) end [2025-01-29 22:00:25] Production.ERROR: pbx prc_insertCDR start [2025-01-29 22:00:25] Production.ERROR: pbx prc_insertCDR end [2025-01-29 22:00:25] Production.INFO: ==15602== Releasing lock... [2025-01-29 22:00:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 22:00:25] Production.INFO: 69.5 MB #Memory Used# [2025-01-29 22:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 19:01:05 [end_date_ymd] => 2025-01-29 22:01:05 [RateCDR] => 1 ) [2025-01-29 22:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 19:01:05' and `end` < '2025-01-29 22:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 22:01:18] Production.INFO: count ==5448 [2025-01-29 22:01:21] Production.ERROR: pbx CDR StartTime 2025-01-29 19:01:05 - End Time 2025-01-29 22:01:05 [2025-01-29 22:01:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 22:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359238', 'tblTempUsageDetail_20' ) start [2025-01-29 22:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359238', 'tblTempUsageDetail_20' ) end [2025-01-29 22:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359238', 'tblTempVendorCDR_20' ) start [2025-01-29 22:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359238', 'tblTempVendorCDR_20' ) end [2025-01-29 22:01:21] Production.INFO: ProcessCDR(1,14359238,1,1,2) [2025-01-29 22:01:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14359238,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 22:01:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14359238,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 22:01:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14359238,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 22:01:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14359238,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 22:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359238', 'tblTempUsageDetail_20' ) start [2025-01-29 22:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359238', 'tblTempUsageDetail_20' ) end [2025-01-29 22:01:24] Production.ERROR: pbx prc_insertCDR start [2025-01-29 22:01:24] Production.ERROR: pbx prc_insertCDR end [2025-01-29 22:01:24] Production.INFO: ==15694== Releasing lock... [2025-01-29 22:01:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 22:01:24] Production.INFO: 68.5 MB #Memory Used# [2025-01-29 22:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 19:02:05 [end_date_ymd] => 2025-01-29 22:02:05 [RateCDR] => 1 ) [2025-01-29 22:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 19:02:05' and `end` < '2025-01-29 22:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 22:02:18] Production.INFO: count ==5374 [2025-01-29 22:02:21] Production.ERROR: pbx CDR StartTime 2025-01-29 19:02:05 - End Time 2025-01-29 22:02:05 [2025-01-29 22:02:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 22:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359243', 'tblTempUsageDetail_20' ) start [2025-01-29 22:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359243', 'tblTempUsageDetail_20' ) end [2025-01-29 22:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359243', 'tblTempVendorCDR_20' ) start [2025-01-29 22:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359243', 'tblTempVendorCDR_20' ) end [2025-01-29 22:02:21] Production.INFO: ProcessCDR(1,14359243,1,1,2) [2025-01-29 22:02:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14359243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 22:02:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14359243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 22:02:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14359243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 22:02:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14359243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 22:02:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359243', 'tblTempUsageDetail_20' ) start [2025-01-29 22:02:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359243', 'tblTempUsageDetail_20' ) end [2025-01-29 22:02:25] Production.ERROR: pbx prc_insertCDR start [2025-01-29 22:02:25] Production.ERROR: pbx prc_insertCDR end [2025-01-29 22:02:25] Production.INFO: ==15767== Releasing lock... [2025-01-29 22:02:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 22:02:25] Production.INFO: 68 MB #Memory Used# [2025-01-29 22:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 19:03:05 [end_date_ymd] => 2025-01-29 22:03:05 [RateCDR] => 1 ) [2025-01-29 22:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 19:03:05' and `end` < '2025-01-29 22:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 22:03:18] Production.INFO: count ==5536 [2025-01-29 22:03:21] Production.ERROR: pbx CDR StartTime 2025-01-29 19:03:05 - End Time 2025-01-29 22:03:05 [2025-01-29 22:03:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 22:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359248', 'tblTempUsageDetail_20' ) start [2025-01-29 22:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359248', 'tblTempUsageDetail_20' ) end [2025-01-29 22:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359248', 'tblTempVendorCDR_20' ) start [2025-01-29 22:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359248', 'tblTempVendorCDR_20' ) end [2025-01-29 22:03:21] Production.INFO: ProcessCDR(1,14359248,1,1,2) [2025-01-29 22:03:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14359248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 22:03:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14359248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 22:03:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14359248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 22:03:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14359248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 22:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359248', 'tblTempUsageDetail_20' ) start [2025-01-29 22:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359248', 'tblTempUsageDetail_20' ) end [2025-01-29 22:03:24] Production.ERROR: pbx prc_insertCDR start [2025-01-29 22:03:24] Production.ERROR: pbx prc_insertCDR end [2025-01-29 22:03:24] Production.INFO: ==15844== Releasing lock... [2025-01-29 22:03:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 22:03:24] Production.INFO: 69.25 MB #Memory Used# [2025-01-29 22:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 19:04:05 [end_date_ymd] => 2025-01-29 22:04:05 [RateCDR] => 1 ) [2025-01-29 22:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 19:04:05' and `end` < '2025-01-29 22:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 22:04:19] Production.INFO: count ==5772 [2025-01-29 22:04:22] Production.ERROR: pbx CDR StartTime 2025-01-29 19:04:05 - End Time 2025-01-29 22:04:05 [2025-01-29 22:04:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 22:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359253', 'tblTempUsageDetail_20' ) start [2025-01-29 22:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359253', 'tblTempUsageDetail_20' ) end [2025-01-29 22:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359253', 'tblTempVendorCDR_20' ) start [2025-01-29 22:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359253', 'tblTempVendorCDR_20' ) end [2025-01-29 22:04:22] Production.INFO: ProcessCDR(1,14359253,1,1,2) [2025-01-29 22:04:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14359253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 22:04:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14359253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 22:04:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14359253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 22:04:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14359253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 22:04:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359253', 'tblTempUsageDetail_20' ) start [2025-01-29 22:04:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359253', 'tblTempUsageDetail_20' ) end [2025-01-29 22:04:25] Production.ERROR: pbx prc_insertCDR start [2025-01-29 22:04:25] Production.ERROR: pbx prc_insertCDR end [2025-01-29 22:04:25] Production.INFO: ==15917== Releasing lock... [2025-01-29 22:04:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 22:04:25] Production.INFO: 71 MB #Memory Used# [2025-01-29 22:05:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 19:05:04 [end_date_ymd] => 2025-01-29 22:05:04 [RateCDR] => 1 ) [2025-01-29 22:05:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 19:05:04' and `end` < '2025-01-29 22:05:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 22:05:18] Production.INFO: count ==5770 [2025-01-29 22:05:21] Production.ERROR: pbx CDR StartTime 2025-01-29 19:05:04 - End Time 2025-01-29 22:05:04 [2025-01-29 22:05:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 22:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359258', 'tblTempUsageDetail_20' ) start [2025-01-29 22:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359258', 'tblTempUsageDetail_20' ) end [2025-01-29 22:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359258', 'tblTempVendorCDR_20' ) start [2025-01-29 22:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359258', 'tblTempVendorCDR_20' ) end [2025-01-29 22:05:21] Production.INFO: ProcessCDR(1,14359258,1,1,2) [2025-01-29 22:05:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14359258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 22:05:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14359258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 22:05:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14359258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 22:05:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14359258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 22:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359258', 'tblTempUsageDetail_20' ) start [2025-01-29 22:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359258', 'tblTempUsageDetail_20' ) end [2025-01-29 22:05:24] Production.ERROR: pbx prc_insertCDR start [2025-01-29 22:05:24] Production.ERROR: pbx prc_insertCDR end [2025-01-29 22:05:24] Production.INFO: ==15989== Releasing lock... [2025-01-29 22:05:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 22:05:24] Production.INFO: 71.25 MB #Memory Used# [2025-01-29 22:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 19:06:05 [end_date_ymd] => 2025-01-29 22:06:05 [RateCDR] => 1 ) [2025-01-29 22:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 19:06:05' and `end` < '2025-01-29 22:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 22:06:19] Production.INFO: count ==5767 [2025-01-29 22:06:22] Production.ERROR: pbx CDR StartTime 2025-01-29 19:06:05 - End Time 2025-01-29 22:06:05 [2025-01-29 22:06:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 22:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359263', 'tblTempUsageDetail_20' ) start [2025-01-29 22:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359263', 'tblTempUsageDetail_20' ) end [2025-01-29 22:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359263', 'tblTempVendorCDR_20' ) start [2025-01-29 22:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359263', 'tblTempVendorCDR_20' ) end [2025-01-29 22:06:22] Production.INFO: ProcessCDR(1,14359263,1,1,2) [2025-01-29 22:06:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14359263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 22:06:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14359263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 22:06:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14359263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 22:06:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14359263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 22:06:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359263', 'tblTempUsageDetail_20' ) start [2025-01-29 22:06:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359263', 'tblTempUsageDetail_20' ) end [2025-01-29 22:06:25] Production.ERROR: pbx prc_insertCDR start [2025-01-29 22:06:25] Production.ERROR: pbx prc_insertCDR end [2025-01-29 22:06:25] Production.INFO: ==16066== Releasing lock... [2025-01-29 22:06:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 22:06:25] Production.INFO: 71 MB #Memory Used# [2025-01-29 22:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 19:07:06 [end_date_ymd] => 2025-01-29 22:07:06 [RateCDR] => 1 ) [2025-01-29 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-01-29 19:07:06' and `end` < '2025-01-29 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-01-29 22:07:20] Production.INFO: count ==5760 [2025-01-29 22:07:22] Production.ERROR: pbx CDR StartTime 2025-01-29 19:07:06 - End Time 2025-01-29 22:07:06 [2025-01-29 22:07:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 22:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359268', 'tblTempUsageDetail_20' ) start [2025-01-29 22:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359268', 'tblTempUsageDetail_20' ) end [2025-01-29 22:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359268', 'tblTempVendorCDR_20' ) start [2025-01-29 22:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359268', 'tblTempVendorCDR_20' ) end [2025-01-29 22:07:22] Production.INFO: ProcessCDR(1,14359268,1,1,2) [2025-01-29 22:07:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14359268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 22:07:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14359268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 22:07:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14359268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 22:07:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14359268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 22:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359268', 'tblTempUsageDetail_20' ) start [2025-01-29 22:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359268', 'tblTempUsageDetail_20' ) end [2025-01-29 22:07:26] Production.ERROR: pbx prc_insertCDR start [2025-01-29 22:07:26] Production.ERROR: pbx prc_insertCDR end [2025-01-29 22:07:26] Production.INFO: ==16178== Releasing lock... [2025-01-29 22:07:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 22:07:26] Production.INFO: 71 MB #Memory Used# [2025-01-29 22:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 19:08:05 [end_date_ymd] => 2025-01-29 22:08:05 [RateCDR] => 1 ) [2025-01-29 22:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 19:08:05' and `end` < '2025-01-29 22:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 22:08:19] Production.INFO: count ==5757 [2025-01-29 22:08:21] Production.ERROR: pbx CDR StartTime 2025-01-29 19:08:05 - End Time 2025-01-29 22:08:05 [2025-01-29 22:08:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 22:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359273', 'tblTempUsageDetail_20' ) start [2025-01-29 22:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359273', 'tblTempUsageDetail_20' ) end [2025-01-29 22:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359273', 'tblTempVendorCDR_20' ) start [2025-01-29 22:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359273', 'tblTempVendorCDR_20' ) end [2025-01-29 22:08:22] Production.INFO: ProcessCDR(1,14359273,1,1,2) [2025-01-29 22:08:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14359273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 22:08:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14359273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 22:08:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14359273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 22:08:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14359273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 22:08:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359273', 'tblTempUsageDetail_20' ) start [2025-01-29 22:08:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359273', 'tblTempUsageDetail_20' ) end [2025-01-29 22:08:25] Production.ERROR: pbx prc_insertCDR start [2025-01-29 22:08:25] Production.ERROR: pbx prc_insertCDR end [2025-01-29 22:08:25] Production.INFO: ==16251== Releasing lock... [2025-01-29 22:08:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 22:08:25] Production.INFO: 71 MB #Memory Used# [2025-01-29 22:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 19:09:05 [end_date_ymd] => 2025-01-29 22:09:05 [RateCDR] => 1 ) [2025-01-29 22:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 19:09:05' and `end` < '2025-01-29 22:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 22:09:19] Production.INFO: count ==5758 [2025-01-29 22:09:22] Production.ERROR: pbx CDR StartTime 2025-01-29 19:09:05 - End Time 2025-01-29 22:09:05 [2025-01-29 22:09:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 22:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359278', 'tblTempUsageDetail_20' ) start [2025-01-29 22:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359278', 'tblTempUsageDetail_20' ) end [2025-01-29 22:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359278', 'tblTempVendorCDR_20' ) start [2025-01-29 22:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359278', 'tblTempVendorCDR_20' ) end [2025-01-29 22:09:22] Production.INFO: ProcessCDR(1,14359278,1,1,2) [2025-01-29 22:09:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14359278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 22:09:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14359278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 22:09:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14359278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 22:09:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14359278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 22:09:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359278', 'tblTempUsageDetail_20' ) start [2025-01-29 22:09:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359278', 'tblTempUsageDetail_20' ) end [2025-01-29 22:09:25] Production.ERROR: pbx prc_insertCDR start [2025-01-29 22:09:25] Production.ERROR: pbx prc_insertCDR end [2025-01-29 22:09:25] Production.INFO: ==16321== Releasing lock... [2025-01-29 22:09:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 22:09:25] Production.INFO: 71 MB #Memory Used# [2025-01-29 22:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 19:10:06 [end_date_ymd] => 2025-01-29 22:10:06 [RateCDR] => 1 ) [2025-01-29 22:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 19:10:06' and `end` < '2025-01-29 22:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 22:10:19] Production.INFO: count ==5756 [2025-01-29 22:10:22] Production.ERROR: pbx CDR StartTime 2025-01-29 19:10:06 - End Time 2025-01-29 22:10:06 [2025-01-29 22:10:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 22:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359284', 'tblTempUsageDetail_20' ) start [2025-01-29 22:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359284', 'tblTempUsageDetail_20' ) end [2025-01-29 22:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359284', 'tblTempVendorCDR_20' ) start [2025-01-29 22:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359284', 'tblTempVendorCDR_20' ) end [2025-01-29 22:10:22] Production.INFO: ProcessCDR(1,14359284,1,1,2) [2025-01-29 22:10:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14359284,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 22:10:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14359284,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 22:10:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14359284,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 22:10:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14359284,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 22:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359284', 'tblTempUsageDetail_20' ) start [2025-01-29 22:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359284', 'tblTempUsageDetail_20' ) end [2025-01-29 22:10:25] Production.ERROR: pbx prc_insertCDR start [2025-01-29 22:10:25] Production.ERROR: pbx prc_insertCDR end [2025-01-29 22:10:25] Production.INFO: ==16397== Releasing lock... [2025-01-29 22:10:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 22:10:25] Production.INFO: 71 MB #Memory Used# [2025-01-29 22:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 19:11:05 [end_date_ymd] => 2025-01-29 22:11:05 [RateCDR] => 1 ) [2025-01-29 22:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 19:11:05' and `end` < '2025-01-29 22:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 22:11:18] Production.INFO: count ==5709 [2025-01-29 22:11:21] Production.ERROR: pbx CDR StartTime 2025-01-29 19:11:05 - End Time 2025-01-29 22:11:05 [2025-01-29 22:11:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 22:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359289', 'tblTempUsageDetail_20' ) start [2025-01-29 22:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359289', 'tblTempUsageDetail_20' ) end [2025-01-29 22:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359289', 'tblTempVendorCDR_20' ) start [2025-01-29 22:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359289', 'tblTempVendorCDR_20' ) end [2025-01-29 22:11:21] Production.INFO: ProcessCDR(1,14359289,1,1,2) [2025-01-29 22:11:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14359289,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 22:11:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14359289,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 22:11:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14359289,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 22:11:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14359289,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 22:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359289', 'tblTempUsageDetail_20' ) start [2025-01-29 22:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359289', 'tblTempUsageDetail_20' ) end [2025-01-29 22:11:24] Production.ERROR: pbx prc_insertCDR start [2025-01-29 22:11:24] Production.ERROR: pbx prc_insertCDR end [2025-01-29 22:11:24] Production.INFO: ==16468== Releasing lock... [2025-01-29 22:11:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 22:11:24] Production.INFO: 70.5 MB #Memory Used# [2025-01-29 22:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 19:12:05 [end_date_ymd] => 2025-01-29 22:12:05 [RateCDR] => 1 ) [2025-01-29 22:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 19:12:05' and `end` < '2025-01-29 22:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 22:12:19] Production.INFO: count ==5703 [2025-01-29 22:12:22] Production.ERROR: pbx CDR StartTime 2025-01-29 19:12:05 - End Time 2025-01-29 22:12:05 [2025-01-29 22:12:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 22:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359294', 'tblTempUsageDetail_20' ) start [2025-01-29 22:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359294', 'tblTempUsageDetail_20' ) end [2025-01-29 22:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359294', 'tblTempVendorCDR_20' ) start [2025-01-29 22:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359294', 'tblTempVendorCDR_20' ) end [2025-01-29 22:12:22] Production.INFO: ProcessCDR(1,14359294,1,1,2) [2025-01-29 22:12:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14359294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 22:12:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14359294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 22:12:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14359294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 22:12:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14359294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 22:12:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359294', 'tblTempUsageDetail_20' ) start [2025-01-29 22:12:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359294', 'tblTempUsageDetail_20' ) end [2025-01-29 22:12:27] Production.ERROR: pbx prc_insertCDR start [2025-01-29 22:12:27] Production.ERROR: pbx prc_insertCDR end [2025-01-29 22:12:27] Production.INFO: ==16541== Releasing lock... [2025-01-29 22:12:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 22:12:27] Production.INFO: 70.5 MB #Memory Used# [2025-01-29 22:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 19:13:06 [end_date_ymd] => 2025-01-29 22:13:06 [RateCDR] => 1 ) [2025-01-29 22:13:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 19:13:06' and `end` < '2025-01-29 22:13:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 22:13:19] Production.INFO: count ==5703 [2025-01-29 22:13:22] Production.ERROR: pbx CDR StartTime 2025-01-29 19:13:06 - End Time 2025-01-29 22:13:06 [2025-01-29 22:13:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 22:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359299', 'tblTempUsageDetail_20' ) start [2025-01-29 22:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359299', 'tblTempUsageDetail_20' ) end [2025-01-29 22:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359299', 'tblTempVendorCDR_20' ) start [2025-01-29 22:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359299', 'tblTempVendorCDR_20' ) end [2025-01-29 22:13:22] Production.INFO: ProcessCDR(1,14359299,1,1,2) [2025-01-29 22:13:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14359299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 22:13:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14359299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 22:13:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14359299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 22:13:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14359299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 22:13:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359299', 'tblTempUsageDetail_20' ) start [2025-01-29 22:13:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359299', 'tblTempUsageDetail_20' ) end [2025-01-29 22:13:25] Production.ERROR: pbx prc_insertCDR start [2025-01-29 22:13:25] Production.ERROR: pbx prc_insertCDR end [2025-01-29 22:13:25] Production.INFO: ==16615== Releasing lock... [2025-01-29 22:13:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 22:13:25] Production.INFO: 70.5 MB #Memory Used# [2025-01-29 22:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 19:14:05 [end_date_ymd] => 2025-01-29 22:14:05 [RateCDR] => 1 ) [2025-01-29 22:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 19:14:05' and `end` < '2025-01-29 22:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 22:14:18] Production.INFO: count ==5819 [2025-01-29 22:14:21] Production.ERROR: pbx CDR StartTime 2025-01-29 19:14:05 - End Time 2025-01-29 22:14:05 [2025-01-29 22:14:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 22:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359304', 'tblTempUsageDetail_20' ) start [2025-01-29 22:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359304', 'tblTempUsageDetail_20' ) end [2025-01-29 22:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359304', 'tblTempVendorCDR_20' ) start [2025-01-29 22:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359304', 'tblTempVendorCDR_20' ) end [2025-01-29 22:14:21] Production.INFO: ProcessCDR(1,14359304,1,1,2) [2025-01-29 22:14:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14359304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 22:14:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14359304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 22:14:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14359304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 22:14:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14359304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 22:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359304', 'tblTempUsageDetail_20' ) start [2025-01-29 22:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359304', 'tblTempUsageDetail_20' ) end [2025-01-29 22:14:24] Production.ERROR: pbx prc_insertCDR start [2025-01-29 22:14:24] Production.ERROR: pbx prc_insertCDR end [2025-01-29 22:14:25] Production.INFO: ==16685== Releasing lock... [2025-01-29 22:14:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 22:14:25] Production.INFO: 71.25 MB #Memory Used# [2025-01-29 22:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 19:15:05 [end_date_ymd] => 2025-01-29 22:15:05 [RateCDR] => 1 ) [2025-01-29 22:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 19:15:05' and `end` < '2025-01-29 22:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 22:15:20] Production.INFO: count ==6099 [2025-01-29 22:15:22] Production.ERROR: pbx CDR StartTime 2025-01-29 19:15:05 - End Time 2025-01-29 22:15:05 [2025-01-29 22:15:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 22:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359309', 'tblTempUsageDetail_20' ) start [2025-01-29 22:15:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359309', 'tblTempUsageDetail_20' ) end [2025-01-29 22:15:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359309', 'tblTempVendorCDR_20' ) start [2025-01-29 22:15:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359309', 'tblTempVendorCDR_20' ) end [2025-01-29 22:15:23] Production.INFO: ProcessCDR(1,14359309,1,1,2) [2025-01-29 22:15:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14359309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 22:15:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14359309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 22:15:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14359309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 22:15:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14359309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 22:15:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359309', 'tblTempUsageDetail_20' ) start [2025-01-29 22:15:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359309', 'tblTempUsageDetail_20' ) end [2025-01-29 22:15:26] Production.ERROR: pbx prc_insertCDR start [2025-01-29 22:15:26] Production.ERROR: pbx prc_insertCDR end [2025-01-29 22:15:26] Production.INFO: ==16766== Releasing lock... [2025-01-29 22:15:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 22:15:26] Production.INFO: 73.5 MB #Memory Used# [2025-01-29 22:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 19:16:05 [end_date_ymd] => 2025-01-29 22:16:05 [RateCDR] => 1 ) [2025-01-29 22:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 19:16:05' and `end` < '2025-01-29 22:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 22:16:19] Production.INFO: count ==6127 [2025-01-29 22:16:22] Production.ERROR: pbx CDR StartTime 2025-01-29 19:16:05 - End Time 2025-01-29 22:16:05 [2025-01-29 22:16:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 22:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359314', 'tblTempUsageDetail_20' ) start [2025-01-29 22:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359314', 'tblTempUsageDetail_20' ) end [2025-01-29 22:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359314', 'tblTempVendorCDR_20' ) start [2025-01-29 22:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359314', 'tblTempVendorCDR_20' ) end [2025-01-29 22:16:22] Production.INFO: ProcessCDR(1,14359314,1,1,2) [2025-01-29 22:16:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14359314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 22:16:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14359314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 22:16:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14359314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 22:16:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14359314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 22:16:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359314', 'tblTempUsageDetail_20' ) start [2025-01-29 22:16:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359314', 'tblTempUsageDetail_20' ) end [2025-01-29 22:16:26] Production.ERROR: pbx prc_insertCDR start [2025-01-29 22:16:26] Production.ERROR: pbx prc_insertCDR end [2025-01-29 22:16:26] Production.INFO: ==16837== Releasing lock... [2025-01-29 22:16:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 22:16:26] Production.INFO: 73.75 MB #Memory Used# [2025-01-29 22:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 19:17:05 [end_date_ymd] => 2025-01-29 22:17:05 [RateCDR] => 1 ) [2025-01-29 22:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 19:17:05' and `end` < '2025-01-29 22:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 22:17:18] Production.INFO: count ==6125 [2025-01-29 22:17:21] Production.ERROR: pbx CDR StartTime 2025-01-29 19:17:05 - End Time 2025-01-29 22:17:05 [2025-01-29 22:17:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 22:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359319', 'tblTempUsageDetail_20' ) start [2025-01-29 22:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359319', 'tblTempUsageDetail_20' ) end [2025-01-29 22:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359319', 'tblTempVendorCDR_20' ) start [2025-01-29 22:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359319', 'tblTempVendorCDR_20' ) end [2025-01-29 22:17:21] Production.INFO: ProcessCDR(1,14359319,1,1,2) [2025-01-29 22:17:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14359319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 22:17:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14359319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 22:17:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14359319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 22:17:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14359319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 22:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359319', 'tblTempUsageDetail_20' ) start [2025-01-29 22:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359319', 'tblTempUsageDetail_20' ) end [2025-01-29 22:17:24] Production.ERROR: pbx prc_insertCDR start [2025-01-29 22:17:24] Production.ERROR: pbx prc_insertCDR end [2025-01-29 22:17:24] Production.INFO: ==16908== Releasing lock... [2025-01-29 22:17:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 22:17:24] Production.INFO: 73.75 MB #Memory Used# [2025-01-29 22:18:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 19:18:04 [end_date_ymd] => 2025-01-29 22:18:04 [RateCDR] => 1 ) [2025-01-29 22:18:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 19:18:04' and `end` < '2025-01-29 22:18:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 22:18:18] Production.INFO: count ==6128 [2025-01-29 22:18:21] Production.ERROR: pbx CDR StartTime 2025-01-29 19:18:04 - End Time 2025-01-29 22:18:04 [2025-01-29 22:18:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 22:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359324', 'tblTempUsageDetail_20' ) start [2025-01-29 22:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359324', 'tblTempUsageDetail_20' ) end [2025-01-29 22:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359324', 'tblTempVendorCDR_20' ) start [2025-01-29 22:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359324', 'tblTempVendorCDR_20' ) end [2025-01-29 22:18:21] Production.INFO: ProcessCDR(1,14359324,1,1,2) [2025-01-29 22:18:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14359324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 22:18:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14359324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 22:18:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14359324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 22:18:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14359324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 22:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359324', 'tblTempUsageDetail_20' ) start [2025-01-29 22:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359324', 'tblTempUsageDetail_20' ) end [2025-01-29 22:18:24] Production.ERROR: pbx prc_insertCDR start [2025-01-29 22:18:24] Production.ERROR: pbx prc_insertCDR end [2025-01-29 22:18:24] Production.INFO: ==16977== Releasing lock... [2025-01-29 22:18:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 22:18:24] Production.INFO: 73.75 MB #Memory Used# [2025-01-29 22:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 19:19:05 [end_date_ymd] => 2025-01-29 22:19:05 [RateCDR] => 1 ) [2025-01-29 22:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 19:19:05' and `end` < '2025-01-29 22:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 22:19:18] Production.INFO: count ==6544 [2025-01-29 22:19:22] Production.ERROR: pbx CDR StartTime 2025-01-29 19:19:05 - End Time 2025-01-29 22:19:05 [2025-01-29 22:19:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 22:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359329', 'tblTempUsageDetail_20' ) start [2025-01-29 22:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359329', 'tblTempUsageDetail_20' ) end [2025-01-29 22:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359329', 'tblTempVendorCDR_20' ) start [2025-01-29 22:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359329', 'tblTempVendorCDR_20' ) end [2025-01-29 22:19:22] Production.INFO: ProcessCDR(1,14359329,1,1,2) [2025-01-29 22:19:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14359329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 22:19:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14359329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 22:19:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14359329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 22:19:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14359329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 22:19:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359329', 'tblTempUsageDetail_20' ) start [2025-01-29 22:19:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359329', 'tblTempUsageDetail_20' ) end [2025-01-29 22:19:25] Production.ERROR: pbx prc_insertCDR start [2025-01-29 22:19:25] Production.ERROR: pbx prc_insertCDR end [2025-01-29 22:19:25] Production.INFO: ==17049== Releasing lock... [2025-01-29 22:19:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 22:19:25] Production.INFO: 76.75 MB #Memory Used# [2025-01-29 22:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 19:20:06 [end_date_ymd] => 2025-01-29 22:20:06 [RateCDR] => 1 ) [2025-01-29 22:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 19:20:06' and `end` < '2025-01-29 22:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 22:20:20] Production.INFO: count ==6545 [2025-01-29 22:20:23] Production.ERROR: pbx CDR StartTime 2025-01-29 19:20:06 - End Time 2025-01-29 22:20:06 [2025-01-29 22:20:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 22:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359335', 'tblTempUsageDetail_20' ) start [2025-01-29 22:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359335', 'tblTempUsageDetail_20' ) end [2025-01-29 22:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359335', 'tblTempVendorCDR_20' ) start [2025-01-29 22:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359335', 'tblTempVendorCDR_20' ) end [2025-01-29 22:20:23] Production.INFO: ProcessCDR(1,14359335,1,1,2) [2025-01-29 22:20:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14359335,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 22:20:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14359335,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 22:20:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14359335,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 22:20:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14359335,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 22:20:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359335', 'tblTempUsageDetail_20' ) start [2025-01-29 22:20:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359335', 'tblTempUsageDetail_20' ) end [2025-01-29 22:20:27] Production.ERROR: pbx prc_insertCDR start [2025-01-29 22:20:27] Production.ERROR: pbx prc_insertCDR end [2025-01-29 22:20:27] Production.INFO: ==17124== Releasing lock... [2025-01-29 22:20:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 22:20:27] Production.INFO: 76.75 MB #Memory Used# [2025-01-29 22:21:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 19:21:04 [end_date_ymd] => 2025-01-29 22:21:04 [RateCDR] => 1 ) [2025-01-29 22:21:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 19:21:04' and `end` < '2025-01-29 22:21:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 22:21:18] Production.INFO: count ==6500 [2025-01-29 22:21:21] Production.ERROR: pbx CDR StartTime 2025-01-29 19:21:04 - End Time 2025-01-29 22:21:04 [2025-01-29 22:21:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 22:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359340', 'tblTempUsageDetail_20' ) start [2025-01-29 22:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359340', 'tblTempUsageDetail_20' ) end [2025-01-29 22:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359340', 'tblTempVendorCDR_20' ) start [2025-01-29 22:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359340', 'tblTempVendorCDR_20' ) end [2025-01-29 22:21:21] Production.INFO: ProcessCDR(1,14359340,1,1,2) [2025-01-29 22:21:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14359340,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 22:21:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14359340,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 22:21:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14359340,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 22:21:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14359340,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 22:21:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359340', 'tblTempUsageDetail_20' ) start [2025-01-29 22:21:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359340', 'tblTempUsageDetail_20' ) end [2025-01-29 22:21:25] Production.ERROR: pbx prc_insertCDR start [2025-01-29 22:21:25] Production.ERROR: pbx prc_insertCDR end [2025-01-29 22:21:25] Production.INFO: ==17201== Releasing lock... [2025-01-29 22:21:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 22:21:25] Production.INFO: 76.5 MB #Memory Used# [2025-01-29 22:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 19:22:05 [end_date_ymd] => 2025-01-29 22:22:05 [RateCDR] => 1 ) [2025-01-29 22:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 19:22:05' and `end` < '2025-01-29 22:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 22:22:19] Production.INFO: count ==6499 [2025-01-29 22:22:22] Production.ERROR: pbx CDR StartTime 2025-01-29 19:22:05 - End Time 2025-01-29 22:22:05 [2025-01-29 22:22:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 22:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359345', 'tblTempUsageDetail_20' ) start [2025-01-29 22:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359345', 'tblTempUsageDetail_20' ) end [2025-01-29 22:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359345', 'tblTempVendorCDR_20' ) start [2025-01-29 22:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359345', 'tblTempVendorCDR_20' ) end [2025-01-29 22:22:22] Production.INFO: ProcessCDR(1,14359345,1,1,2) [2025-01-29 22:22:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14359345,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 22:22:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14359345,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 22:22:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14359345,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 22:22:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14359345,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 22:22:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359345', 'tblTempUsageDetail_20' ) start [2025-01-29 22:22:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359345', 'tblTempUsageDetail_20' ) end [2025-01-29 22:22:25] Production.ERROR: pbx prc_insertCDR start [2025-01-29 22:22:25] Production.ERROR: pbx prc_insertCDR end [2025-01-29 22:22:25] Production.INFO: ==17313== Releasing lock... [2025-01-29 22:22:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 22:22:25] Production.INFO: 76.5 MB #Memory Used# [2025-01-29 22:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 19:23:05 [end_date_ymd] => 2025-01-29 22:23:05 [RateCDR] => 1 ) [2025-01-29 22:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 19:23:05' and `end` < '2025-01-29 22:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 22:23:18] Production.INFO: count ==6528 [2025-01-29 22:23:21] Production.ERROR: pbx CDR StartTime 2025-01-29 19:23:05 - End Time 2025-01-29 22:23:05 [2025-01-29 22:23:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 22:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359350', 'tblTempUsageDetail_20' ) start [2025-01-29 22:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359350', 'tblTempUsageDetail_20' ) end [2025-01-29 22:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359350', 'tblTempVendorCDR_20' ) start [2025-01-29 22:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359350', 'tblTempVendorCDR_20' ) end [2025-01-29 22:23:22] Production.INFO: ProcessCDR(1,14359350,1,1,2) [2025-01-29 22:23:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14359350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 22:23:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14359350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 22:23:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14359350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 22:23:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14359350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 22:23:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359350', 'tblTempUsageDetail_20' ) start [2025-01-29 22:23:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359350', 'tblTempUsageDetail_20' ) end [2025-01-29 22:23:25] Production.ERROR: pbx prc_insertCDR start [2025-01-29 22:23:25] Production.ERROR: pbx prc_insertCDR end [2025-01-29 22:23:25] Production.INFO: ==17385== Releasing lock... [2025-01-29 22:23:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 22:23:25] Production.INFO: 76.75 MB #Memory Used# [2025-01-29 22:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 19:24:05 [end_date_ymd] => 2025-01-29 22:24:05 [RateCDR] => 1 ) [2025-01-29 22:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 19:24:05' and `end` < '2025-01-29 22:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 22:24:18] Production.INFO: count ==6525 [2025-01-29 22:24:22] Production.ERROR: pbx CDR StartTime 2025-01-29 19:24:05 - End Time 2025-01-29 22:24:05 [2025-01-29 22:24:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 22:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359355', 'tblTempUsageDetail_20' ) start [2025-01-29 22:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359355', 'tblTempUsageDetail_20' ) end [2025-01-29 22:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359355', 'tblTempVendorCDR_20' ) start [2025-01-29 22:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359355', 'tblTempVendorCDR_20' ) end [2025-01-29 22:24:22] Production.INFO: ProcessCDR(1,14359355,1,1,2) [2025-01-29 22:24:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14359355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 22:24:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14359355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 22:24:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14359355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 22:24:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14359355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 22:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359355', 'tblTempUsageDetail_20' ) start [2025-01-29 22:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359355', 'tblTempUsageDetail_20' ) end [2025-01-29 22:24:25] Production.ERROR: pbx prc_insertCDR start [2025-01-29 22:24:25] Production.ERROR: pbx prc_insertCDR end [2025-01-29 22:24:25] Production.INFO: ==17454== Releasing lock... [2025-01-29 22:24:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 22:24:25] Production.INFO: 76.75 MB #Memory Used# [2025-01-29 22:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 19:25:05 [end_date_ymd] => 2025-01-29 22:25:05 [RateCDR] => 1 ) [2025-01-29 22:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 19:25:05' and `end` < '2025-01-29 22:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 22:25:19] Production.INFO: count ==6524 [2025-01-29 22:25:22] Production.ERROR: pbx CDR StartTime 2025-01-29 19:25:05 - End Time 2025-01-29 22:25:05 [2025-01-29 22:25:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 22:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359360', 'tblTempUsageDetail_20' ) start [2025-01-29 22:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359360', 'tblTempUsageDetail_20' ) end [2025-01-29 22:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359360', 'tblTempVendorCDR_20' ) start [2025-01-29 22:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359360', 'tblTempVendorCDR_20' ) end [2025-01-29 22:25:22] Production.INFO: ProcessCDR(1,14359360,1,1,2) [2025-01-29 22:25:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14359360,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 22:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14359360,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 22:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14359360,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 22:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14359360,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 22:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359360', 'tblTempUsageDetail_20' ) start [2025-01-29 22:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359360', 'tblTempUsageDetail_20' ) end [2025-01-29 22:25:25] Production.ERROR: pbx prc_insertCDR start [2025-01-29 22:25:25] Production.ERROR: pbx prc_insertCDR end [2025-01-29 22:25:25] Production.INFO: ==17525== Releasing lock... [2025-01-29 22:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 22:25:25] Production.INFO: 76.5 MB #Memory Used# [2025-01-29 22:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 19:26:05 [end_date_ymd] => 2025-01-29 22:26:05 [RateCDR] => 1 ) [2025-01-29 22:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 19:26:05' and `end` < '2025-01-29 22:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 22:26:19] Production.INFO: count ==6517 [2025-01-29 22:26:22] Production.ERROR: pbx CDR StartTime 2025-01-29 19:26:05 - End Time 2025-01-29 22:26:05 [2025-01-29 22:26:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 22:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359365', 'tblTempUsageDetail_20' ) start [2025-01-29 22:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359365', 'tblTempUsageDetail_20' ) end [2025-01-29 22:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359365', 'tblTempVendorCDR_20' ) start [2025-01-29 22:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359365', 'tblTempVendorCDR_20' ) end [2025-01-29 22:26:22] Production.INFO: ProcessCDR(1,14359365,1,1,2) [2025-01-29 22:26:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14359365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 22:26:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14359365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 22:26:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14359365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 22:26:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14359365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 22:26:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359365', 'tblTempUsageDetail_20' ) start [2025-01-29 22:26:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359365', 'tblTempUsageDetail_20' ) end [2025-01-29 22:26:25] Production.ERROR: pbx prc_insertCDR start [2025-01-29 22:26:25] Production.ERROR: pbx prc_insertCDR end [2025-01-29 22:26:25] Production.INFO: ==17597== Releasing lock... [2025-01-29 22:26:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 22:26:25] Production.INFO: 76.5 MB #Memory Used# [2025-01-29 22:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 19:27:05 [end_date_ymd] => 2025-01-29 22:27:05 [RateCDR] => 1 ) [2025-01-29 22:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 19:27:05' and `end` < '2025-01-29 22:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 22:27:19] Production.INFO: count ==6732 [2025-01-29 22:27:22] Production.ERROR: pbx CDR StartTime 2025-01-29 19:27:05 - End Time 2025-01-29 22:27:05 [2025-01-29 22:27:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 22:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359370', 'tblTempUsageDetail_20' ) start [2025-01-29 22:27:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359370', 'tblTempUsageDetail_20' ) end [2025-01-29 22:27:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359370', 'tblTempVendorCDR_20' ) start [2025-01-29 22:27:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359370', 'tblTempVendorCDR_20' ) end [2025-01-29 22:27:23] Production.INFO: ProcessCDR(1,14359370,1,1,2) [2025-01-29 22:27:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14359370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 22:27:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14359370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 22:27:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14359370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 22:27:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14359370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 22:27:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359370', 'tblTempUsageDetail_20' ) start [2025-01-29 22:27:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359370', 'tblTempUsageDetail_20' ) end [2025-01-29 22:27:26] Production.ERROR: pbx prc_insertCDR start [2025-01-29 22:27:26] Production.ERROR: pbx prc_insertCDR end [2025-01-29 22:27:26] Production.INFO: ==17669== Releasing lock... [2025-01-29 22:27:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 22:27:26] Production.INFO: 78.25 MB #Memory Used# [2025-01-29 22:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 19:28:05 [end_date_ymd] => 2025-01-29 22:28:05 [RateCDR] => 1 ) [2025-01-29 22:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 19:28:05' and `end` < '2025-01-29 22:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 22:28:18] Production.INFO: count ==6732 [2025-01-29 22:28:22] Production.ERROR: pbx CDR StartTime 2025-01-29 19:28:05 - End Time 2025-01-29 22:28:05 [2025-01-29 22:28:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 22:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359375', 'tblTempUsageDetail_20' ) start [2025-01-29 22:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359375', 'tblTempUsageDetail_20' ) end [2025-01-29 22:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359375', 'tblTempVendorCDR_20' ) start [2025-01-29 22:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359375', 'tblTempVendorCDR_20' ) end [2025-01-29 22:28:22] Production.INFO: ProcessCDR(1,14359375,1,1,2) [2025-01-29 22:28:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14359375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 22:28:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14359375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 22:28:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14359375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 22:28:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14359375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 22:28:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359375', 'tblTempUsageDetail_20' ) start [2025-01-29 22:28:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359375', 'tblTempUsageDetail_20' ) end [2025-01-29 22:28:25] Production.ERROR: pbx prc_insertCDR start [2025-01-29 22:28:25] Production.ERROR: pbx prc_insertCDR end [2025-01-29 22:28:25] Production.INFO: ==17741== Releasing lock... [2025-01-29 22:28:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 22:28:25] Production.INFO: 78.25 MB #Memory Used# [2025-01-29 22:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 19:29:05 [end_date_ymd] => 2025-01-29 22:29:05 [RateCDR] => 1 ) [2025-01-29 22:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 19:29:05' and `end` < '2025-01-29 22:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 22:29:18] Production.INFO: count ==6731 [2025-01-29 22:29:22] Production.ERROR: pbx CDR StartTime 2025-01-29 19:29:05 - End Time 2025-01-29 22:29:05 [2025-01-29 22:29:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 22:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359380', 'tblTempUsageDetail_20' ) start [2025-01-29 22:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359380', 'tblTempUsageDetail_20' ) end [2025-01-29 22:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359380', 'tblTempVendorCDR_20' ) start [2025-01-29 22:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359380', 'tblTempVendorCDR_20' ) end [2025-01-29 22:29:22] Production.INFO: ProcessCDR(1,14359380,1,1,2) [2025-01-29 22:29:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14359380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 22:29:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14359380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 22:29:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14359380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 22:29:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14359380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 22:29:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359380', 'tblTempUsageDetail_20' ) start [2025-01-29 22:29:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359380', 'tblTempUsageDetail_20' ) end [2025-01-29 22:29:26] Production.ERROR: pbx prc_insertCDR start [2025-01-29 22:29:26] Production.ERROR: pbx prc_insertCDR end [2025-01-29 22:29:26] Production.INFO: ==17813== Releasing lock... [2025-01-29 22:29:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 22:29:26] Production.INFO: 78.25 MB #Memory Used# [2025-01-29 22:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 19:30:05 [end_date_ymd] => 2025-01-29 22:30:05 [RateCDR] => 1 ) [2025-01-29 22:30:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 19:30:05' and `end` < '2025-01-29 22:30:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 22:30:19] Production.INFO: count ==6724 [2025-01-29 22:30:22] Production.ERROR: pbx CDR StartTime 2025-01-29 19:30:05 - End Time 2025-01-29 22:30:05 [2025-01-29 22:30:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 22:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359385', 'tblTempUsageDetail_20' ) start [2025-01-29 22:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359385', 'tblTempUsageDetail_20' ) end [2025-01-29 22:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359385', 'tblTempVendorCDR_20' ) start [2025-01-29 22:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359385', 'tblTempVendorCDR_20' ) end [2025-01-29 22:30:22] Production.INFO: ProcessCDR(1,14359385,1,1,2) [2025-01-29 22:30:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14359385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 22:30:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14359385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 22:30:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14359385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 22:30:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14359385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 22:30:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359385', 'tblTempUsageDetail_20' ) start [2025-01-29 22:30:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359385', 'tblTempUsageDetail_20' ) end [2025-01-29 22:30:25] Production.ERROR: pbx prc_insertCDR start [2025-01-29 22:30:25] Production.ERROR: pbx prc_insertCDR end [2025-01-29 22:30:25] Production.INFO: ==17889== Releasing lock... [2025-01-29 22:30:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 22:30:25] Production.INFO: 78 MB #Memory Used# [2025-01-29 22:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 19:31:05 [end_date_ymd] => 2025-01-29 22:31:05 [RateCDR] => 1 ) [2025-01-29 22:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 19:31:05' and `end` < '2025-01-29 22:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 22:31:19] Production.INFO: count ==7168 [2025-01-29 22:31:23] Production.ERROR: pbx CDR StartTime 2025-01-29 19:31:05 - End Time 2025-01-29 22:31:05 [2025-01-29 22:31:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 22:31:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359391', 'tblTempUsageDetail_20' ) start [2025-01-29 22:31:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359391', 'tblTempUsageDetail_20' ) end [2025-01-29 22:31:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359391', 'tblTempVendorCDR_20' ) start [2025-01-29 22:31:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359391', 'tblTempVendorCDR_20' ) end [2025-01-29 22:31:23] Production.INFO: ProcessCDR(1,14359391,1,1,2) [2025-01-29 22:31:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14359391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 22:31:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14359391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 22:31:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14359391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 22:31:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14359391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 22:31:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359391', 'tblTempUsageDetail_20' ) start [2025-01-29 22:31:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359391', 'tblTempUsageDetail_20' ) end [2025-01-29 22:31:27] Production.ERROR: pbx prc_insertCDR start [2025-01-29 22:31:27] Production.ERROR: pbx prc_insertCDR end [2025-01-29 22:31:27] Production.INFO: ==17961== Releasing lock... [2025-01-29 22:31:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 22:31:27] Production.INFO: 82 MB #Memory Used# [2025-01-29 22:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 19:32:05 [end_date_ymd] => 2025-01-29 22:32:05 [RateCDR] => 1 ) [2025-01-29 22:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 19:32:05' and `end` < '2025-01-29 22:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 22:32:18] Production.INFO: count ==7163 [2025-01-29 22:32:22] Production.ERROR: pbx CDR StartTime 2025-01-29 19:32:05 - End Time 2025-01-29 22:32:05 [2025-01-29 22:32:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 22:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359396', 'tblTempUsageDetail_20' ) start [2025-01-29 22:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359396', 'tblTempUsageDetail_20' ) end [2025-01-29 22:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359396', 'tblTempVendorCDR_20' ) start [2025-01-29 22:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359396', 'tblTempVendorCDR_20' ) end [2025-01-29 22:32:22] Production.INFO: ProcessCDR(1,14359396,1,1,2) [2025-01-29 22:32:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14359396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 22:32:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14359396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 22:32:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14359396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 22:32:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14359396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 22:32:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359396', 'tblTempUsageDetail_20' ) start [2025-01-29 22:32:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359396', 'tblTempUsageDetail_20' ) end [2025-01-29 22:32:25] Production.ERROR: pbx prc_insertCDR start [2025-01-29 22:32:25] Production.ERROR: pbx prc_insertCDR end [2025-01-29 22:32:25] Production.INFO: ==18030== Releasing lock... [2025-01-29 22:32:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 22:32:25] Production.INFO: 82 MB #Memory Used# [2025-01-29 22:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 19:33:05 [end_date_ymd] => 2025-01-29 22:33:05 [RateCDR] => 1 ) [2025-01-29 22:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 19:33:05' and `end` < '2025-01-29 22:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 22:33:19] Production.INFO: count ==7157 [2025-01-29 22:33:23] Production.ERROR: pbx CDR StartTime 2025-01-29 19:33:05 - End Time 2025-01-29 22:33:05 [2025-01-29 22:33:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 22:33:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359401', 'tblTempUsageDetail_20' ) start [2025-01-29 22:33:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359401', 'tblTempUsageDetail_20' ) end [2025-01-29 22:33:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359401', 'tblTempVendorCDR_20' ) start [2025-01-29 22:33:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359401', 'tblTempVendorCDR_20' ) end [2025-01-29 22:33:23] Production.INFO: ProcessCDR(1,14359401,1,1,2) [2025-01-29 22:33:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14359401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 22:33:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14359401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 22:33:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14359401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 22:33:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14359401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 22:33:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359401', 'tblTempUsageDetail_20' ) start [2025-01-29 22:33:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359401', 'tblTempUsageDetail_20' ) end [2025-01-29 22:33:27] Production.ERROR: pbx prc_insertCDR start [2025-01-29 22:33:27] Production.ERROR: pbx prc_insertCDR end [2025-01-29 22:33:27] Production.INFO: ==18100== Releasing lock... [2025-01-29 22:33:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 22:33:27] Production.INFO: 81.75 MB #Memory Used# [2025-01-29 22:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 19:34:05 [end_date_ymd] => 2025-01-29 22:34:05 [RateCDR] => 1 ) [2025-01-29 22:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 19:34:05' and `end` < '2025-01-29 22:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 22:34:18] Production.INFO: count ==7156 [2025-01-29 22:34:22] Production.ERROR: pbx CDR StartTime 2025-01-29 19:34:05 - End Time 2025-01-29 22:34:05 [2025-01-29 22:34:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 22:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359406', 'tblTempUsageDetail_20' ) start [2025-01-29 22:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359406', 'tblTempUsageDetail_20' ) end [2025-01-29 22:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359406', 'tblTempVendorCDR_20' ) start [2025-01-29 22:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359406', 'tblTempVendorCDR_20' ) end [2025-01-29 22:34:22] Production.INFO: ProcessCDR(1,14359406,1,1,2) [2025-01-29 22:34:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14359406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 22:34:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14359406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 22:34:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14359406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 22:34:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14359406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 22:34:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359406', 'tblTempUsageDetail_20' ) start [2025-01-29 22:34:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359406', 'tblTempUsageDetail_20' ) end [2025-01-29 22:34:25] Production.ERROR: pbx prc_insertCDR start [2025-01-29 22:34:25] Production.ERROR: pbx prc_insertCDR end [2025-01-29 22:34:25] Production.INFO: ==18176== Releasing lock... [2025-01-29 22:34:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 22:34:25] Production.INFO: 81.75 MB #Memory Used# [2025-01-29 22:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 19:35:05 [end_date_ymd] => 2025-01-29 22:35:05 [RateCDR] => 1 ) [2025-01-29 22:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 19:35:05' and `end` < '2025-01-29 22:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 22:35:20] Production.INFO: count ==7153 [2025-01-29 22:35:23] Production.ERROR: pbx CDR StartTime 2025-01-29 19:35:05 - End Time 2025-01-29 22:35:05 [2025-01-29 22:35:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 22:35:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359411', 'tblTempUsageDetail_20' ) start [2025-01-29 22:35:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359411', 'tblTempUsageDetail_20' ) end [2025-01-29 22:35:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359411', 'tblTempVendorCDR_20' ) start [2025-01-29 22:35:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359411', 'tblTempVendorCDR_20' ) end [2025-01-29 22:35:23] Production.INFO: ProcessCDR(1,14359411,1,1,2) [2025-01-29 22:35:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14359411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 22:35:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14359411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 22:35:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14359411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 22:35:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14359411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 22:35:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359411', 'tblTempUsageDetail_20' ) start [2025-01-29 22:35:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359411', 'tblTempUsageDetail_20' ) end [2025-01-29 22:35:27] Production.ERROR: pbx prc_insertCDR start [2025-01-29 22:35:27] Production.ERROR: pbx prc_insertCDR end [2025-01-29 22:35:27] Production.INFO: ==18247== Releasing lock... [2025-01-29 22:35:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 22:35:27] Production.INFO: 81.75 MB #Memory Used# [2025-01-29 22:36:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 19:36:04 [end_date_ymd] => 2025-01-29 22:36:04 [RateCDR] => 1 ) [2025-01-29 22:36:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 19:36:04' and `end` < '2025-01-29 22:36:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 22:36:18] Production.INFO: count ==7151 [2025-01-29 22:36:21] Production.ERROR: pbx CDR StartTime 2025-01-29 19:36:04 - End Time 2025-01-29 22:36:04 [2025-01-29 22:36:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 22:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359416', 'tblTempUsageDetail_20' ) start [2025-01-29 22:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359416', 'tblTempUsageDetail_20' ) end [2025-01-29 22:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359416', 'tblTempVendorCDR_20' ) start [2025-01-29 22:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359416', 'tblTempVendorCDR_20' ) end [2025-01-29 22:36:21] Production.INFO: ProcessCDR(1,14359416,1,1,2) [2025-01-29 22:36:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14359416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 22:36:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14359416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 22:36:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14359416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 22:36:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14359416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 22:36:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359416', 'tblTempUsageDetail_20' ) start [2025-01-29 22:36:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359416', 'tblTempUsageDetail_20' ) end [2025-01-29 22:36:25] Production.ERROR: pbx prc_insertCDR start [2025-01-29 22:36:25] Production.ERROR: pbx prc_insertCDR end [2025-01-29 22:36:25] Production.INFO: ==18319== Releasing lock... [2025-01-29 22:36:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 22:36:25] Production.INFO: 81.75 MB #Memory Used# [2025-01-29 22:37:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 19:37:04 [end_date_ymd] => 2025-01-29 22:37:04 [RateCDR] => 1 ) [2025-01-29 22:37:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 19:37:04' and `end` < '2025-01-29 22:37:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 22:37:18] Production.INFO: count ==7150 [2025-01-29 22:37:22] Production.ERROR: pbx CDR StartTime 2025-01-29 19:37:04 - End Time 2025-01-29 22:37:04 [2025-01-29 22:37:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 22:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359421', 'tblTempUsageDetail_20' ) start [2025-01-29 22:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359421', 'tblTempUsageDetail_20' ) end [2025-01-29 22:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359421', 'tblTempVendorCDR_20' ) start [2025-01-29 22:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359421', 'tblTempVendorCDR_20' ) end [2025-01-29 22:37:22] Production.INFO: ProcessCDR(1,14359421,1,1,2) [2025-01-29 22:37:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14359421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 22:37:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14359421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 22:37:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14359421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 22:37:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14359421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 22:37:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359421', 'tblTempUsageDetail_20' ) start [2025-01-29 22:37:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359421', 'tblTempUsageDetail_20' ) end [2025-01-29 22:37:25] Production.ERROR: pbx prc_insertCDR start [2025-01-29 22:37:25] Production.ERROR: pbx prc_insertCDR end [2025-01-29 22:37:25] Production.INFO: ==18392== Releasing lock... [2025-01-29 22:37:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 22:37:25] Production.INFO: 81.75 MB #Memory Used# [2025-01-29 22:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 19:38:05 [end_date_ymd] => 2025-01-29 22:38:05 [RateCDR] => 1 ) [2025-01-29 22:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 19:38:05' and `end` < '2025-01-29 22:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 22:38:19] Production.INFO: count ==7162 [2025-01-29 22:38:22] Production.ERROR: pbx CDR StartTime 2025-01-29 19:38:05 - End Time 2025-01-29 22:38:05 [2025-01-29 22:38:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 22:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359426', 'tblTempUsageDetail_20' ) start [2025-01-29 22:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359426', 'tblTempUsageDetail_20' ) end [2025-01-29 22:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359426', 'tblTempVendorCDR_20' ) start [2025-01-29 22:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359426', 'tblTempVendorCDR_20' ) end [2025-01-29 22:38:22] Production.INFO: ProcessCDR(1,14359426,1,1,2) [2025-01-29 22:38:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14359426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 22:38:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14359426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 22:38:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14359426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 22:38:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14359426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 22:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359426', 'tblTempUsageDetail_20' ) start [2025-01-29 22:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359426', 'tblTempUsageDetail_20' ) end [2025-01-29 22:38:26] Production.ERROR: pbx prc_insertCDR start [2025-01-29 22:38:26] Production.ERROR: pbx prc_insertCDR end [2025-01-29 22:38:26] Production.INFO: ==18505== Releasing lock... [2025-01-29 22:38:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 22:38:26] Production.INFO: 82 MB #Memory Used# [2025-01-29 22:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 19:39:05 [end_date_ymd] => 2025-01-29 22:39:05 [RateCDR] => 1 ) [2025-01-29 22:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 19:39:05' and `end` < '2025-01-29 22:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 22:39:19] Production.INFO: count ==7161 [2025-01-29 22:39:23] Production.ERROR: pbx CDR StartTime 2025-01-29 19:39:05 - End Time 2025-01-29 22:39:05 [2025-01-29 22:39:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 22:39:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359431', 'tblTempUsageDetail_20' ) start [2025-01-29 22:39:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359431', 'tblTempUsageDetail_20' ) end [2025-01-29 22:39:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359431', 'tblTempVendorCDR_20' ) start [2025-01-29 22:39:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359431', 'tblTempVendorCDR_20' ) end [2025-01-29 22:39:23] Production.INFO: ProcessCDR(1,14359431,1,1,2) [2025-01-29 22:39:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14359431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 22:39:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14359431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 22:39:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14359431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 22:39:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14359431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 22:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359431', 'tblTempUsageDetail_20' ) start [2025-01-29 22:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359431', 'tblTempUsageDetail_20' ) end [2025-01-29 22:39:26] Production.ERROR: pbx prc_insertCDR start [2025-01-29 22:39:26] Production.ERROR: pbx prc_insertCDR end [2025-01-29 22:39:26] Production.INFO: ==18578== Releasing lock... [2025-01-29 22:39:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 22:39:26] Production.INFO: 81.75 MB #Memory Used# [2025-01-29 22:40:07] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 19:40:07 [end_date_ymd] => 2025-01-29 22:40:07 [RateCDR] => 1 ) [2025-01-29 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-01-29 19:40:07' and `end` < '2025-01-29 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-01-29 22:40:20] Production.INFO: count ==7159 [2025-01-29 22:40:24] Production.ERROR: pbx CDR StartTime 2025-01-29 19:40:07 - End Time 2025-01-29 22:40:07 [2025-01-29 22:40:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 22:40:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359437', 'tblTempUsageDetail_20' ) start [2025-01-29 22:40:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359437', 'tblTempUsageDetail_20' ) end [2025-01-29 22:40:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359437', 'tblTempVendorCDR_20' ) start [2025-01-29 22:40:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359437', 'tblTempVendorCDR_20' ) end [2025-01-29 22:40:24] Production.INFO: ProcessCDR(1,14359437,1,1,2) [2025-01-29 22:40:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14359437,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 22:40:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14359437,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 22:40:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14359437,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 22:40:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14359437,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 22:40:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359437', 'tblTempUsageDetail_20' ) start [2025-01-29 22:40:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359437', 'tblTempUsageDetail_20' ) end [2025-01-29 22:40:27] Production.ERROR: pbx prc_insertCDR start [2025-01-29 22:40:27] Production.ERROR: pbx prc_insertCDR end [2025-01-29 22:40:27] Production.INFO: ==18649== Releasing lock... [2025-01-29 22:40:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 22:40:27] Production.INFO: 81.75 MB #Memory Used# [2025-01-29 22:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 19:41:05 [end_date_ymd] => 2025-01-29 22:41:05 [RateCDR] => 1 ) [2025-01-29 22:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 19:41:05' and `end` < '2025-01-29 22:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 22:41:18] Production.INFO: count ==7119 [2025-01-29 22:41:22] Production.ERROR: pbx CDR StartTime 2025-01-29 19:41:05 - End Time 2025-01-29 22:41:05 [2025-01-29 22:41:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 22:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359442', 'tblTempUsageDetail_20' ) start [2025-01-29 22:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359442', 'tblTempUsageDetail_20' ) end [2025-01-29 22:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359442', 'tblTempVendorCDR_20' ) start [2025-01-29 22:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359442', 'tblTempVendorCDR_20' ) end [2025-01-29 22:41:22] Production.INFO: ProcessCDR(1,14359442,1,1,2) [2025-01-29 22:41:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14359442,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 22:41:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14359442,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 22:41:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14359442,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 22:41:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14359442,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 22:41:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359442', 'tblTempUsageDetail_20' ) start [2025-01-29 22:41:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359442', 'tblTempUsageDetail_20' ) end [2025-01-29 22:41:25] Production.ERROR: pbx prc_insertCDR start [2025-01-29 22:41:25] Production.ERROR: pbx prc_insertCDR end [2025-01-29 22:41:25] Production.INFO: ==18724== Releasing lock... [2025-01-29 22:41:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 22:41:25] Production.INFO: 81.5 MB #Memory Used# [2025-01-29 22:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 19:42:05 [end_date_ymd] => 2025-01-29 22:42:05 [RateCDR] => 1 ) [2025-01-29 22:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 19:42:05' and `end` < '2025-01-29 22:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 22:42:18] Production.INFO: count ==7119 [2025-01-29 22:42:22] Production.ERROR: pbx CDR StartTime 2025-01-29 19:42:05 - End Time 2025-01-29 22:42:05 [2025-01-29 22:42:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 22:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359447', 'tblTempUsageDetail_20' ) start [2025-01-29 22:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359447', 'tblTempUsageDetail_20' ) end [2025-01-29 22:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359447', 'tblTempVendorCDR_20' ) start [2025-01-29 22:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359447', 'tblTempVendorCDR_20' ) end [2025-01-29 22:42:22] Production.INFO: ProcessCDR(1,14359447,1,1,2) [2025-01-29 22:42:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14359447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 22:42:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14359447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 22:42:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14359447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 22:42:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14359447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 22:42:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359447', 'tblTempUsageDetail_20' ) start [2025-01-29 22:42:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359447', 'tblTempUsageDetail_20' ) end [2025-01-29 22:42:25] Production.ERROR: pbx prc_insertCDR start [2025-01-29 22:42:25] Production.ERROR: pbx prc_insertCDR end [2025-01-29 22:42:25] Production.INFO: ==18797== Releasing lock... [2025-01-29 22:42:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 22:42:25] Production.INFO: 81.5 MB #Memory Used# [2025-01-29 22:43:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 19:43:04 [end_date_ymd] => 2025-01-29 22:43:04 [RateCDR] => 1 ) [2025-01-29 22:43:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 19:43:04' and `end` < '2025-01-29 22:43:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 22:43:17] Production.INFO: count ==7114 [2025-01-29 22:43:21] Production.ERROR: pbx CDR StartTime 2025-01-29 19:43:04 - End Time 2025-01-29 22:43:04 [2025-01-29 22:43:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 22:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359452', 'tblTempUsageDetail_20' ) start [2025-01-29 22:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359452', 'tblTempUsageDetail_20' ) end [2025-01-29 22:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359452', 'tblTempVendorCDR_20' ) start [2025-01-29 22:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359452', 'tblTempVendorCDR_20' ) end [2025-01-29 22:43:21] Production.INFO: ProcessCDR(1,14359452,1,1,2) [2025-01-29 22:43:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14359452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 22:43:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14359452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 22:43:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14359452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 22:43:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14359452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 22:43:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359452', 'tblTempUsageDetail_20' ) start [2025-01-29 22:43:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359452', 'tblTempUsageDetail_20' ) end [2025-01-29 22:43:26] Production.ERROR: pbx prc_insertCDR start [2025-01-29 22:43:26] Production.ERROR: pbx prc_insertCDR end [2025-01-29 22:43:26] Production.INFO: ==18867== Releasing lock... [2025-01-29 22:43:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 22:43:26] Production.INFO: 81.5 MB #Memory Used# [2025-01-29 22:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 19:44:05 [end_date_ymd] => 2025-01-29 22:44:05 [RateCDR] => 1 ) [2025-01-29 22:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 19:44:05' and `end` < '2025-01-29 22:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 22:44:18] Production.INFO: count ==7113 [2025-01-29 22:44:22] Production.ERROR: pbx CDR StartTime 2025-01-29 19:44:05 - End Time 2025-01-29 22:44:05 [2025-01-29 22:44:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 22:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359457', 'tblTempUsageDetail_20' ) start [2025-01-29 22:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359457', 'tblTempUsageDetail_20' ) end [2025-01-29 22:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359457', 'tblTempVendorCDR_20' ) start [2025-01-29 22:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359457', 'tblTempVendorCDR_20' ) end [2025-01-29 22:44:22] Production.INFO: ProcessCDR(1,14359457,1,1,2) [2025-01-29 22:44:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14359457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 22:44:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14359457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 22:44:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14359457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 22:44:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14359457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 22:44:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359457', 'tblTempUsageDetail_20' ) start [2025-01-29 22:44:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359457', 'tblTempUsageDetail_20' ) end [2025-01-29 22:44:25] Production.ERROR: pbx prc_insertCDR start [2025-01-29 22:44:25] Production.ERROR: pbx prc_insertCDR end [2025-01-29 22:44:25] Production.INFO: ==18937== Releasing lock... [2025-01-29 22:44:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 22:44:25] Production.INFO: 81.5 MB #Memory Used# [2025-01-29 22:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 19:45:05 [end_date_ymd] => 2025-01-29 22:45:05 [RateCDR] => 1 ) [2025-01-29 22:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 19:45:05' and `end` < '2025-01-29 22:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 22:45:19] Production.INFO: count ==7195 [2025-01-29 22:45:22] Production.ERROR: pbx CDR StartTime 2025-01-29 19:45:05 - End Time 2025-01-29 22:45:05 [2025-01-29 22:45:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 22:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359462', 'tblTempUsageDetail_20' ) start [2025-01-29 22:45:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359462', 'tblTempUsageDetail_20' ) end [2025-01-29 22:45:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359462', 'tblTempVendorCDR_20' ) start [2025-01-29 22:45:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359462', 'tblTempVendorCDR_20' ) end [2025-01-29 22:45:23] Production.INFO: ProcessCDR(1,14359462,1,1,2) [2025-01-29 22:45:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14359462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 22:45:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14359462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 22:45:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14359462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 22:45:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14359462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 22:45:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359462', 'tblTempUsageDetail_20' ) start [2025-01-29 22:45:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359462', 'tblTempUsageDetail_20' ) end [2025-01-29 22:45:26] Production.ERROR: pbx prc_insertCDR start [2025-01-29 22:45:26] Production.ERROR: pbx prc_insertCDR end [2025-01-29 22:45:26] Production.INFO: ==19010== Releasing lock... [2025-01-29 22:45:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 22:45:26] Production.INFO: 82 MB #Memory Used# [2025-01-29 22:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 19:46:05 [end_date_ymd] => 2025-01-29 22:46:05 [RateCDR] => 1 ) [2025-01-29 22:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 19:46:05' and `end` < '2025-01-29 22:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 22:46:18] Production.INFO: count ==7195 [2025-01-29 22:46:22] Production.ERROR: pbx CDR StartTime 2025-01-29 19:46:05 - End Time 2025-01-29 22:46:05 [2025-01-29 22:46:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 22:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359467', 'tblTempUsageDetail_20' ) start [2025-01-29 22:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359467', 'tblTempUsageDetail_20' ) end [2025-01-29 22:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359467', 'tblTempVendorCDR_20' ) start [2025-01-29 22:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359467', 'tblTempVendorCDR_20' ) end [2025-01-29 22:46:22] Production.INFO: ProcessCDR(1,14359467,1,1,2) [2025-01-29 22:46:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14359467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 22:46:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14359467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 22:46:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14359467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 22:46:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14359467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 22:46:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359467', 'tblTempUsageDetail_20' ) start [2025-01-29 22:46:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359467', 'tblTempUsageDetail_20' ) end [2025-01-29 22:46:25] Production.ERROR: pbx prc_insertCDR start [2025-01-29 22:46:25] Production.ERROR: pbx prc_insertCDR end [2025-01-29 22:46:25] Production.INFO: ==19085== Releasing lock... [2025-01-29 22:46:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 22:46:25] Production.INFO: 82 MB #Memory Used# [2025-01-29 22:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 19:47:05 [end_date_ymd] => 2025-01-29 22:47:05 [RateCDR] => 1 ) [2025-01-29 22:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 19:47:05' and `end` < '2025-01-29 22:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 22:47:19] Production.INFO: count ==7700 [2025-01-29 22:47:23] Production.ERROR: pbx CDR StartTime 2025-01-29 19:47:05 - End Time 2025-01-29 22:47:05 [2025-01-29 22:47:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 22:47:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359472', 'tblTempUsageDetail_20' ) start [2025-01-29 22:47:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359472', 'tblTempUsageDetail_20' ) end [2025-01-29 22:47:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359472', 'tblTempVendorCDR_20' ) start [2025-01-29 22:47:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359472', 'tblTempVendorCDR_20' ) end [2025-01-29 22:47:23] Production.INFO: ProcessCDR(1,14359472,1,1,2) [2025-01-29 22:47:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14359472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 22:47:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14359472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 22:47:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14359472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 22:47:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14359472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 22:47:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359472', 'tblTempUsageDetail_20' ) start [2025-01-29 22:47:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359472', 'tblTempUsageDetail_20' ) end [2025-01-29 22:47:27] Production.ERROR: pbx prc_insertCDR start [2025-01-29 22:47:27] Production.ERROR: pbx prc_insertCDR end [2025-01-29 22:47:27] Production.INFO: ==19155== Releasing lock... [2025-01-29 22:47:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 22:47:27] Production.INFO: 86 MB #Memory Used# [2025-01-29 22:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 19:48:05 [end_date_ymd] => 2025-01-29 22:48:05 [RateCDR] => 1 ) [2025-01-29 22:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 19:48:05' and `end` < '2025-01-29 22:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 22:48:18] Production.INFO: count ==7698 [2025-01-29 22:48:23] Production.ERROR: pbx CDR StartTime 2025-01-29 19:48:05 - End Time 2025-01-29 22:48:05 [2025-01-29 22:48:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 22:48:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359477', 'tblTempUsageDetail_20' ) start [2025-01-29 22:48:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359477', 'tblTempUsageDetail_20' ) end [2025-01-29 22:48:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359477', 'tblTempVendorCDR_20' ) start [2025-01-29 22:48:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359477', 'tblTempVendorCDR_20' ) end [2025-01-29 22:48:23] Production.INFO: ProcessCDR(1,14359477,1,1,2) [2025-01-29 22:48:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14359477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 22:48:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14359477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 22:48:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14359477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 22:48:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14359477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 22:48:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359477', 'tblTempUsageDetail_20' ) start [2025-01-29 22:48:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359477', 'tblTempUsageDetail_20' ) end [2025-01-29 22:48:26] Production.ERROR: pbx prc_insertCDR start [2025-01-29 22:48:26] Production.ERROR: pbx prc_insertCDR end [2025-01-29 22:48:26] Production.INFO: ==19225== Releasing lock... [2025-01-29 22:48:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 22:48:26] Production.INFO: 86 MB #Memory Used# [2025-01-29 22:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 19:49:06 [end_date_ymd] => 2025-01-29 22:49:06 [RateCDR] => 1 ) [2025-01-29 22:49:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 19:49:06' and `end` < '2025-01-29 22:49:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 22:49:19] Production.INFO: count ==7696 [2025-01-29 22:49:23] Production.ERROR: pbx CDR StartTime 2025-01-29 19:49:06 - End Time 2025-01-29 22:49:06 [2025-01-29 22:49:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 22:49:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359482', 'tblTempUsageDetail_20' ) start [2025-01-29 22:49:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359482', 'tblTempUsageDetail_20' ) end [2025-01-29 22:49:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359482', 'tblTempVendorCDR_20' ) start [2025-01-29 22:49:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359482', 'tblTempVendorCDR_20' ) end [2025-01-29 22:49:24] Production.INFO: ProcessCDR(1,14359482,1,1,2) [2025-01-29 22:49:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14359482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 22:49:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14359482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 22:49:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14359482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 22:49:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14359482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 22:49:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359482', 'tblTempUsageDetail_20' ) start [2025-01-29 22:49:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359482', 'tblTempUsageDetail_20' ) end [2025-01-29 22:49:27] Production.ERROR: pbx prc_insertCDR start [2025-01-29 22:49:27] Production.ERROR: pbx prc_insertCDR end [2025-01-29 22:49:27] Production.INFO: ==19305== Releasing lock... [2025-01-29 22:49:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 22:49:27] Production.INFO: 85.75 MB #Memory Used# [2025-01-29 22:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 19:50:05 [end_date_ymd] => 2025-01-29 22:50:05 [RateCDR] => 1 ) [2025-01-29 22:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 19:50:05' and `end` < '2025-01-29 22:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 22:50:19] Production.INFO: count ==7688 [2025-01-29 22:50:23] Production.ERROR: pbx CDR StartTime 2025-01-29 19:50:05 - End Time 2025-01-29 22:50:05 [2025-01-29 22:50:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 22:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359487', 'tblTempUsageDetail_20' ) start [2025-01-29 22:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359487', 'tblTempUsageDetail_20' ) end [2025-01-29 22:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359487', 'tblTempVendorCDR_20' ) start [2025-01-29 22:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359487', 'tblTempVendorCDR_20' ) end [2025-01-29 22:50:23] Production.INFO: ProcessCDR(1,14359487,1,1,2) [2025-01-29 22:50:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14359487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 22:50:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14359487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 22:50:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14359487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 22:50:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14359487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 22:50:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359487', 'tblTempUsageDetail_20' ) start [2025-01-29 22:50:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359487', 'tblTempUsageDetail_20' ) end [2025-01-29 22:50:26] Production.ERROR: pbx prc_insertCDR start [2025-01-29 22:50:26] Production.ERROR: pbx prc_insertCDR end [2025-01-29 22:50:26] Production.INFO: ==19380== Releasing lock... [2025-01-29 22:50:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 22:50:26] Production.INFO: 85.75 MB #Memory Used# [2025-01-29 22:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 19:51:05 [end_date_ymd] => 2025-01-29 22:51:05 [RateCDR] => 1 ) [2025-01-29 22:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 19:51:05' and `end` < '2025-01-29 22:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 22:51:20] Production.INFO: count ==7653 [2025-01-29 22:51:24] Production.ERROR: pbx CDR StartTime 2025-01-29 19:51:05 - End Time 2025-01-29 22:51:05 [2025-01-29 22:51:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 22:51:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359493', 'tblTempUsageDetail_20' ) start [2025-01-29 22:51:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359493', 'tblTempUsageDetail_20' ) end [2025-01-29 22:51:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359493', 'tblTempVendorCDR_20' ) start [2025-01-29 22:51:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359493', 'tblTempVendorCDR_20' ) end [2025-01-29 22:51:24] Production.INFO: ProcessCDR(1,14359493,1,1,2) [2025-01-29 22:51:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14359493,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 22:51:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14359493,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 22:51:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14359493,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 22:51:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14359493,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 22:51:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359493', 'tblTempUsageDetail_20' ) start [2025-01-29 22:51:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359493', 'tblTempUsageDetail_20' ) end [2025-01-29 22:51:27] Production.ERROR: pbx prc_insertCDR start [2025-01-29 22:51:27] Production.ERROR: pbx prc_insertCDR end [2025-01-29 22:51:27] Production.INFO: ==19455== Releasing lock... [2025-01-29 22:51:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 22:51:27] Production.INFO: 85.5 MB #Memory Used# [2025-01-29 22:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 19:52:05 [end_date_ymd] => 2025-01-29 22:52:05 [RateCDR] => 1 ) [2025-01-29 22:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 19:52:05' and `end` < '2025-01-29 22:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 22:52:18] Production.INFO: count ==7652 [2025-01-29 22:52:22] Production.ERROR: pbx CDR StartTime 2025-01-29 19:52:05 - End Time 2025-01-29 22:52:05 [2025-01-29 22:52:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 22:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359498', 'tblTempUsageDetail_20' ) start [2025-01-29 22:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359498', 'tblTempUsageDetail_20' ) end [2025-01-29 22:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359498', 'tblTempVendorCDR_20' ) start [2025-01-29 22:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359498', 'tblTempVendorCDR_20' ) end [2025-01-29 22:52:22] Production.INFO: ProcessCDR(1,14359498,1,1,2) [2025-01-29 22:52:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14359498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 22:52:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14359498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 22:52:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14359498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 22:52:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14359498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 22:52:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359498', 'tblTempUsageDetail_20' ) start [2025-01-29 22:52:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359498', 'tblTempUsageDetail_20' ) end [2025-01-29 22:52:25] Production.ERROR: pbx prc_insertCDR start [2025-01-29 22:52:25] Production.ERROR: pbx prc_insertCDR end [2025-01-29 22:52:25] Production.INFO: ==19528== Releasing lock... [2025-01-29 22:52:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 22:52:25] Production.INFO: 85.5 MB #Memory Used# [2025-01-29 22:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 19:53:05 [end_date_ymd] => 2025-01-29 22:53:05 [RateCDR] => 1 ) [2025-01-29 22:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 19:53:05' and `end` < '2025-01-29 22:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 22:53:19] Production.INFO: count ==7647 [2025-01-29 22:53:23] Production.ERROR: pbx CDR StartTime 2025-01-29 19:53:05 - End Time 2025-01-29 22:53:05 [2025-01-29 22:53:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 22:53:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359503', 'tblTempUsageDetail_20' ) start [2025-01-29 22:53:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359503', 'tblTempUsageDetail_20' ) end [2025-01-29 22:53:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359503', 'tblTempVendorCDR_20' ) start [2025-01-29 22:53:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359503', 'tblTempVendorCDR_20' ) end [2025-01-29 22:53:23] Production.INFO: ProcessCDR(1,14359503,1,1,2) [2025-01-29 22:53:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14359503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 22:53:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14359503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 22:53:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14359503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 22:53:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14359503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 22:53:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359503', 'tblTempUsageDetail_20' ) start [2025-01-29 22:53:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359503', 'tblTempUsageDetail_20' ) end [2025-01-29 22:53:26] Production.ERROR: pbx prc_insertCDR start [2025-01-29 22:53:26] Production.ERROR: pbx prc_insertCDR end [2025-01-29 22:53:26] Production.INFO: ==19639== Releasing lock... [2025-01-29 22:53:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 22:53:26] Production.INFO: 85.5 MB #Memory Used# [2025-01-29 22:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 19:54:05 [end_date_ymd] => 2025-01-29 22:54:05 [RateCDR] => 1 ) [2025-01-29 22:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 19:54:05' and `end` < '2025-01-29 22:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 22:54:18] Production.INFO: count ==7647 [2025-01-29 22:54:22] Production.ERROR: pbx CDR StartTime 2025-01-29 19:54:05 - End Time 2025-01-29 22:54:05 [2025-01-29 22:54:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 22:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359508', 'tblTempUsageDetail_20' ) start [2025-01-29 22:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359508', 'tblTempUsageDetail_20' ) end [2025-01-29 22:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359508', 'tblTempVendorCDR_20' ) start [2025-01-29 22:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359508', 'tblTempVendorCDR_20' ) end [2025-01-29 22:54:22] Production.INFO: ProcessCDR(1,14359508,1,1,2) [2025-01-29 22:54:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14359508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 22:54:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14359508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 22:54:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14359508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 22:54:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14359508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 22:54:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359508', 'tblTempUsageDetail_20' ) start [2025-01-29 22:54:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359508', 'tblTempUsageDetail_20' ) end [2025-01-29 22:54:25] Production.ERROR: pbx prc_insertCDR start [2025-01-29 22:54:25] Production.ERROR: pbx prc_insertCDR end [2025-01-29 22:54:25] Production.INFO: ==19719== Releasing lock... [2025-01-29 22:54:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 22:54:25] Production.INFO: 85.5 MB #Memory Used# [2025-01-29 22:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 19:55:05 [end_date_ymd] => 2025-01-29 22:55:05 [RateCDR] => 1 ) [2025-01-29 22:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 19:55:05' and `end` < '2025-01-29 22:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 22:55:18] Production.INFO: count ==7641 [2025-01-29 22:55:22] Production.ERROR: pbx CDR StartTime 2025-01-29 19:55:05 - End Time 2025-01-29 22:55:05 [2025-01-29 22:55:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 22:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359513', 'tblTempUsageDetail_20' ) start [2025-01-29 22:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359513', 'tblTempUsageDetail_20' ) end [2025-01-29 22:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359513', 'tblTempVendorCDR_20' ) start [2025-01-29 22:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359513', 'tblTempVendorCDR_20' ) end [2025-01-29 22:55:22] Production.INFO: ProcessCDR(1,14359513,1,1,2) [2025-01-29 22:55:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14359513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 22:55:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14359513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 22:55:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14359513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 22:55:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14359513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 22:55:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359513', 'tblTempUsageDetail_20' ) start [2025-01-29 22:55:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359513', 'tblTempUsageDetail_20' ) end [2025-01-29 22:55:25] Production.ERROR: pbx prc_insertCDR start [2025-01-29 22:55:25] Production.ERROR: pbx prc_insertCDR end [2025-01-29 22:55:25] Production.INFO: ==19796== Releasing lock... [2025-01-29 22:55:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 22:55:25] Production.INFO: 85.5 MB #Memory Used# [2025-01-29 22:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 19:56:06 [end_date_ymd] => 2025-01-29 22:56:06 [RateCDR] => 1 ) [2025-01-29 22:56:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 19:56:06' and `end` < '2025-01-29 22:56:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 22:56:19] Production.INFO: count ==7639 [2025-01-29 22:56:23] Production.ERROR: pbx CDR StartTime 2025-01-29 19:56:06 - End Time 2025-01-29 22:56:06 [2025-01-29 22:56:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 22:56:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359518', 'tblTempUsageDetail_20' ) start [2025-01-29 22:56:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359518', 'tblTempUsageDetail_20' ) end [2025-01-29 22:56:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359518', 'tblTempVendorCDR_20' ) start [2025-01-29 22:56:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359518', 'tblTempVendorCDR_20' ) end [2025-01-29 22:56:23] Production.INFO: ProcessCDR(1,14359518,1,1,2) [2025-01-29 22:56:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14359518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 22:56:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14359518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 22:56:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14359518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 22:56:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14359518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 22:56:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359518', 'tblTempUsageDetail_20' ) start [2025-01-29 22:56:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359518', 'tblTempUsageDetail_20' ) end [2025-01-29 22:56:26] Production.ERROR: pbx prc_insertCDR start [2025-01-29 22:56:26] Production.ERROR: pbx prc_insertCDR end [2025-01-29 22:56:26] Production.INFO: ==19871== Releasing lock... [2025-01-29 22:56:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 22:56:26] Production.INFO: 85.5 MB #Memory Used# [2025-01-29 22:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 19:57:05 [end_date_ymd] => 2025-01-29 22:57:05 [RateCDR] => 1 ) [2025-01-29 22:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 19:57:05' and `end` < '2025-01-29 22:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 22:57:19] Production.INFO: count ==7638 [2025-01-29 22:57:23] Production.ERROR: pbx CDR StartTime 2025-01-29 19:57:05 - End Time 2025-01-29 22:57:05 [2025-01-29 22:57:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 22:57:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359523', 'tblTempUsageDetail_20' ) start [2025-01-29 22:57:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359523', 'tblTempUsageDetail_20' ) end [2025-01-29 22:57:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359523', 'tblTempVendorCDR_20' ) start [2025-01-29 22:57:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359523', 'tblTempVendorCDR_20' ) end [2025-01-29 22:57:23] Production.INFO: ProcessCDR(1,14359523,1,1,2) [2025-01-29 22:57:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14359523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 22:57:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14359523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 22:57:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14359523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 22:57:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14359523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 22:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359523', 'tblTempUsageDetail_20' ) start [2025-01-29 22:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359523', 'tblTempUsageDetail_20' ) end [2025-01-29 22:57:26] Production.ERROR: pbx prc_insertCDR start [2025-01-29 22:57:26] Production.ERROR: pbx prc_insertCDR end [2025-01-29 22:57:26] Production.INFO: ==19941== Releasing lock... [2025-01-29 22:57:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 22:57:26] Production.INFO: 85.5 MB #Memory Used# [2025-01-29 22:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 19:58:05 [end_date_ymd] => 2025-01-29 22:58:05 [RateCDR] => 1 ) [2025-01-29 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-01-29 19:58:05' and `end` < '2025-01-29 22:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 22:58:19] Production.INFO: count ==7642 [2025-01-29 22:58:22] Production.ERROR: pbx CDR StartTime 2025-01-29 19:58:05 - End Time 2025-01-29 22:58:05 [2025-01-29 22:58:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 22:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359528', 'tblTempUsageDetail_20' ) start [2025-01-29 22:58:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359528', 'tblTempUsageDetail_20' ) end [2025-01-29 22:58:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359528', 'tblTempVendorCDR_20' ) start [2025-01-29 22:58:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359528', 'tblTempVendorCDR_20' ) end [2025-01-29 22:58:23] Production.INFO: ProcessCDR(1,14359528,1,1,2) [2025-01-29 22:58:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14359528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 22:58:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14359528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 22:58:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14359528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 22:58:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14359528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 22:58:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359528', 'tblTempUsageDetail_20' ) start [2025-01-29 22:58:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359528', 'tblTempUsageDetail_20' ) end [2025-01-29 22:58:26] Production.ERROR: pbx prc_insertCDR start [2025-01-29 22:58:26] Production.ERROR: pbx prc_insertCDR end [2025-01-29 22:58:26] Production.INFO: ==20018== Releasing lock... [2025-01-29 22:58:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 22:58:26] Production.INFO: 85.5 MB #Memory Used# [2025-01-29 22:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 19:59:05 [end_date_ymd] => 2025-01-29 22:59:05 [RateCDR] => 1 ) [2025-01-29 22:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 19:59:05' and `end` < '2025-01-29 22:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 22:59:18] Production.INFO: count ==7636 [2025-01-29 22:59:22] Production.ERROR: pbx CDR StartTime 2025-01-29 19:59:05 - End Time 2025-01-29 22:59:05 [2025-01-29 22:59:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 22:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359533', 'tblTempUsageDetail_20' ) start [2025-01-29 22:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359533', 'tblTempUsageDetail_20' ) end [2025-01-29 22:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359533', 'tblTempVendorCDR_20' ) start [2025-01-29 22:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359533', 'tblTempVendorCDR_20' ) end [2025-01-29 22:59:22] Production.INFO: ProcessCDR(1,14359533,1,1,2) [2025-01-29 22:59:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14359533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 22:59:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14359533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 22:59:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14359533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 22:59:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14359533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 22:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359533', 'tblTempUsageDetail_20' ) start [2025-01-29 22:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359533', 'tblTempUsageDetail_20' ) end [2025-01-29 22:59:25] Production.ERROR: pbx prc_insertCDR start [2025-01-29 22:59:25] Production.ERROR: pbx prc_insertCDR end [2025-01-29 22:59:25] Production.INFO: ==20100== Releasing lock... [2025-01-29 22:59:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 22:59:25] Production.INFO: 85.5 MB #Memory Used# [2025-01-29 23:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 20:00:06 [end_date_ymd] => 2025-01-29 23:00:06 [RateCDR] => 1 ) [2025-01-29 23:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 20:00:06' and `end` < '2025-01-29 23:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 23:00:19] Production.INFO: count ==7635 [2025-01-29 23:00:23] Production.ERROR: pbx CDR StartTime 2025-01-29 20:00:06 - End Time 2025-01-29 23:00:06 [2025-01-29 23:00:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 23:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359538', 'tblTempUsageDetail_20' ) start [2025-01-29 23:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359538', 'tblTempUsageDetail_20' ) end [2025-01-29 23:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359538', 'tblTempVendorCDR_20' ) start [2025-01-29 23:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359538', 'tblTempVendorCDR_20' ) end [2025-01-29 23:00:24] Production.INFO: ProcessCDR(1,14359538,1,1,2) [2025-01-29 23:00:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14359538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 23:00:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14359538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 23:00:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14359538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 23:00:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14359538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 23:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359538', 'tblTempUsageDetail_20' ) start [2025-01-29 23:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359538', 'tblTempUsageDetail_20' ) end [2025-01-29 23:00:27] Production.ERROR: pbx prc_insertCDR start [2025-01-29 23:00:27] Production.ERROR: pbx prc_insertCDR end [2025-01-29 23:00:27] Production.INFO: ==20178== Releasing lock... [2025-01-29 23:00:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 23:00:27] Production.INFO: 85.5 MB #Memory Used# [2025-01-29 23:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 20:01:05 [end_date_ymd] => 2025-01-29 23:01:05 [RateCDR] => 1 ) [2025-01-29 23:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 20:01:05' and `end` < '2025-01-29 23:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 23:01:18] Production.INFO: count ==7601 [2025-01-29 23:01:22] Production.ERROR: pbx CDR StartTime 2025-01-29 20:01:05 - End Time 2025-01-29 23:01:05 [2025-01-29 23:01:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 23:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359544', 'tblTempUsageDetail_20' ) start [2025-01-29 23:01:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359544', 'tblTempUsageDetail_20' ) end [2025-01-29 23:01:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359544', 'tblTempVendorCDR_20' ) start [2025-01-29 23:01:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359544', 'tblTempVendorCDR_20' ) end [2025-01-29 23:01:23] Production.INFO: ProcessCDR(1,14359544,1,1,2) [2025-01-29 23:01:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14359544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 23:01:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14359544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 23:01:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14359544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 23:01:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14359544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 23:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359544', 'tblTempUsageDetail_20' ) start [2025-01-29 23:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359544', 'tblTempUsageDetail_20' ) end [2025-01-29 23:01:26] Production.ERROR: pbx prc_insertCDR start [2025-01-29 23:01:26] Production.ERROR: pbx prc_insertCDR end [2025-01-29 23:01:26] Production.INFO: ==20266== Releasing lock... [2025-01-29 23:01:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 23:01:26] Production.INFO: 85.25 MB #Memory Used# [2025-01-29 23:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 20:02:05 [end_date_ymd] => 2025-01-29 23:02:05 [RateCDR] => 1 ) [2025-01-29 23:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 20:02:05' and `end` < '2025-01-29 23:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 23:02:19] Production.INFO: count ==7603 [2025-01-29 23:02:23] Production.ERROR: pbx CDR StartTime 2025-01-29 20:02:05 - End Time 2025-01-29 23:02:05 [2025-01-29 23:02:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 23:02:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359549', 'tblTempUsageDetail_20' ) start [2025-01-29 23:02:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359549', 'tblTempUsageDetail_20' ) end [2025-01-29 23:02:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359549', 'tblTempVendorCDR_20' ) start [2025-01-29 23:02:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359549', 'tblTempVendorCDR_20' ) end [2025-01-29 23:02:23] Production.INFO: ProcessCDR(1,14359549,1,1,2) [2025-01-29 23:02:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14359549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 23:02:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14359549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 23:02:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14359549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 23:02:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14359549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 23:02:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359549', 'tblTempUsageDetail_20' ) start [2025-01-29 23:02:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359549', 'tblTempUsageDetail_20' ) end [2025-01-29 23:02:26] Production.ERROR: pbx prc_insertCDR start [2025-01-29 23:02:26] Production.ERROR: pbx prc_insertCDR end [2025-01-29 23:02:26] Production.INFO: ==20418== Releasing lock... [2025-01-29 23:02:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 23:02:26] Production.INFO: 85.25 MB #Memory Used# [2025-01-29 23:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 20:03:05 [end_date_ymd] => 2025-01-29 23:03:05 [RateCDR] => 1 ) [2025-01-29 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-01-29 20:03:05' and `end` < '2025-01-29 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-01-29 23:03:18] Production.INFO: count ==7604 [2025-01-29 23:03:22] Production.ERROR: pbx CDR StartTime 2025-01-29 20:03:05 - End Time 2025-01-29 23:03:05 [2025-01-29 23:03:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 23:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359554', 'tblTempUsageDetail_20' ) start [2025-01-29 23:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359554', 'tblTempUsageDetail_20' ) end [2025-01-29 23:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359554', 'tblTempVendorCDR_20' ) start [2025-01-29 23:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359554', 'tblTempVendorCDR_20' ) end [2025-01-29 23:03:22] Production.INFO: ProcessCDR(1,14359554,1,1,2) [2025-01-29 23:03:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14359554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 23:03:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14359554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 23:03:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14359554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 23:03:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14359554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 23:03:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359554', 'tblTempUsageDetail_20' ) start [2025-01-29 23:03:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359554', 'tblTempUsageDetail_20' ) end [2025-01-29 23:03:26] Production.ERROR: pbx prc_insertCDR start [2025-01-29 23:03:26] Production.ERROR: pbx prc_insertCDR end [2025-01-29 23:03:26] Production.INFO: ==20493== Releasing lock... [2025-01-29 23:03:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 23:03:26] Production.INFO: 85.25 MB #Memory Used# [2025-01-29 23:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 20:04:05 [end_date_ymd] => 2025-01-29 23:04:05 [RateCDR] => 1 ) [2025-01-29 23:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 20:04:05' and `end` < '2025-01-29 23:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 23:04:20] Production.INFO: count ==7606 [2025-01-29 23:04:25] Production.ERROR: pbx CDR StartTime 2025-01-29 20:04:05 - End Time 2025-01-29 23:04:05 [2025-01-29 23:04:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 23:04:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359559', 'tblTempUsageDetail_20' ) start [2025-01-29 23:04:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359559', 'tblTempUsageDetail_20' ) end [2025-01-29 23:04:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359559', 'tblTempVendorCDR_20' ) start [2025-01-29 23:04:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359559', 'tblTempVendorCDR_20' ) end [2025-01-29 23:04:25] Production.INFO: ProcessCDR(1,14359559,1,1,2) [2025-01-29 23:04:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14359559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 23:04:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14359559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 23:04:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14359559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 23:04:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14359559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 23:04:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359559', 'tblTempUsageDetail_20' ) start [2025-01-29 23:04:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359559', 'tblTempUsageDetail_20' ) end [2025-01-29 23:04:28] Production.ERROR: pbx prc_insertCDR start [2025-01-29 23:04:28] Production.ERROR: pbx prc_insertCDR end [2025-01-29 23:04:28] Production.INFO: ==20569== Releasing lock... [2025-01-29 23:04:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 23:04:28] Production.INFO: 85.25 MB #Memory Used# [2025-01-29 23:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 20:05:05 [end_date_ymd] => 2025-01-29 23:05:05 [RateCDR] => 1 ) [2025-01-29 23:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 20:05:05' and `end` < '2025-01-29 23:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 23:05:18] Production.INFO: count ==7586 [2025-01-29 23:05:22] Production.ERROR: pbx CDR StartTime 2025-01-29 20:05:05 - End Time 2025-01-29 23:05:05 [2025-01-29 23:05:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 23:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359564', 'tblTempUsageDetail_20' ) start [2025-01-29 23:05:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359564', 'tblTempUsageDetail_20' ) end [2025-01-29 23:05:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359564', 'tblTempVendorCDR_20' ) start [2025-01-29 23:05:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359564', 'tblTempVendorCDR_20' ) end [2025-01-29 23:05:23] Production.INFO: ProcessCDR(1,14359564,1,1,2) [2025-01-29 23:05:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14359564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 23:05:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14359564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 23:05:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14359564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 23:05:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14359564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 23:05:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359564', 'tblTempUsageDetail_20' ) start [2025-01-29 23:05:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359564', 'tblTempUsageDetail_20' ) end [2025-01-29 23:05:26] Production.ERROR: pbx prc_insertCDR start [2025-01-29 23:05:26] Production.ERROR: pbx prc_insertCDR end [2025-01-29 23:05:26] Production.INFO: ==20719== Releasing lock... [2025-01-29 23:05:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 23:05:26] Production.INFO: 85.25 MB #Memory Used# [2025-01-29 23:06:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 20:06:04 [end_date_ymd] => 2025-01-29 23:06:04 [RateCDR] => 1 ) [2025-01-29 23:06:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 20:06:04' and `end` < '2025-01-29 23:06:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 23:06:18] Production.INFO: count ==7584 [2025-01-29 23:06:22] Production.ERROR: pbx CDR StartTime 2025-01-29 20:06:04 - End Time 2025-01-29 23:06:04 [2025-01-29 23:06:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 23:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359569', 'tblTempUsageDetail_20' ) start [2025-01-29 23:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359569', 'tblTempUsageDetail_20' ) end [2025-01-29 23:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359569', 'tblTempVendorCDR_20' ) start [2025-01-29 23:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359569', 'tblTempVendorCDR_20' ) end [2025-01-29 23:06:22] Production.INFO: ProcessCDR(1,14359569,1,1,2) [2025-01-29 23:06:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14359569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 23:06:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14359569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 23:06:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14359569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 23:06:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14359569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 23:06:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359569', 'tblTempUsageDetail_20' ) start [2025-01-29 23:06:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359569', 'tblTempUsageDetail_20' ) end [2025-01-29 23:06:26] Production.ERROR: pbx prc_insertCDR start [2025-01-29 23:06:26] Production.ERROR: pbx prc_insertCDR end [2025-01-29 23:06:26] Production.INFO: ==20795== Releasing lock... [2025-01-29 23:06:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 23:06:26] Production.INFO: 85 MB #Memory Used# [2025-01-29 23:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 20:07:05 [end_date_ymd] => 2025-01-29 23:07:05 [RateCDR] => 1 ) [2025-01-29 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-01-29 20:07:05' and `end` < '2025-01-29 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-01-29 23:07:20] Production.INFO: count ==8062 [2025-01-29 23:07:24] Production.ERROR: pbx CDR StartTime 2025-01-29 20:07:05 - End Time 2025-01-29 23:07:05 [2025-01-29 23:07:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 23:07:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359574', 'tblTempUsageDetail_20' ) start [2025-01-29 23:07:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359574', 'tblTempUsageDetail_20' ) end [2025-01-29 23:07:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359574', 'tblTempVendorCDR_20' ) start [2025-01-29 23:07:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359574', 'tblTempVendorCDR_20' ) end [2025-01-29 23:07:25] Production.INFO: ProcessCDR(1,14359574,1,1,2) [2025-01-29 23:07:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14359574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 23:07:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14359574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 23:07:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14359574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 23:07:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14359574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 23:07:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359574', 'tblTempUsageDetail_20' ) start [2025-01-29 23:07:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359574', 'tblTempUsageDetail_20' ) end [2025-01-29 23:07:28] Production.ERROR: pbx prc_insertCDR start [2025-01-29 23:07:29] Production.ERROR: pbx prc_insertCDR end [2025-01-29 23:07:29] Production.INFO: ==20877== Releasing lock... [2025-01-29 23:07:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 23:07:29] Production.INFO: 88.5 MB #Memory Used# [2025-01-29 23:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 20:08:05 [end_date_ymd] => 2025-01-29 23:08:05 [RateCDR] => 1 ) [2025-01-29 23:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 20:08:05' and `end` < '2025-01-29 23:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 23:08:19] Production.INFO: count ==8063 [2025-01-29 23:08:24] Production.ERROR: pbx CDR StartTime 2025-01-29 20:08:05 - End Time 2025-01-29 23:08:05 [2025-01-29 23:08:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 23:08:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359579', 'tblTempUsageDetail_20' ) start [2025-01-29 23:08:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359579', 'tblTempUsageDetail_20' ) end [2025-01-29 23:08:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359579', 'tblTempVendorCDR_20' ) start [2025-01-29 23:08:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359579', 'tblTempVendorCDR_20' ) end [2025-01-29 23:08:24] Production.INFO: ProcessCDR(1,14359579,1,1,2) [2025-01-29 23:08:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14359579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 23:08:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14359579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 23:08:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14359579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 23:08:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14359579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 23:08:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359579', 'tblTempUsageDetail_20' ) start [2025-01-29 23:08:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359579', 'tblTempUsageDetail_20' ) end [2025-01-29 23:08:27] Production.ERROR: pbx prc_insertCDR start [2025-01-29 23:08:27] Production.ERROR: pbx prc_insertCDR end [2025-01-29 23:08:27] Production.INFO: ==21033== Releasing lock... [2025-01-29 23:08:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 23:08:27] Production.INFO: 88.5 MB #Memory Used# [2025-01-29 23:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 20:09:05 [end_date_ymd] => 2025-01-29 23:09:05 [RateCDR] => 1 ) [2025-01-29 23:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 20:09:05' and `end` < '2025-01-29 23:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 23:09:19] Production.INFO: count ==8035 [2025-01-29 23:09:24] Production.ERROR: pbx CDR StartTime 2025-01-29 20:09:05 - End Time 2025-01-29 23:09:05 [2025-01-29 23:09:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 23:09:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359584', 'tblTempUsageDetail_20' ) start [2025-01-29 23:09:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359584', 'tblTempUsageDetail_20' ) end [2025-01-29 23:09:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359584', 'tblTempVendorCDR_20' ) start [2025-01-29 23:09:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359584', 'tblTempVendorCDR_20' ) end [2025-01-29 23:09:24] Production.INFO: ProcessCDR(1,14359584,1,1,2) [2025-01-29 23:09:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14359584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 23:09:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14359584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 23:09:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14359584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 23:09:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14359584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 23:09:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359584', 'tblTempUsageDetail_20' ) start [2025-01-29 23:09:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359584', 'tblTempUsageDetail_20' ) end [2025-01-29 23:09:27] Production.ERROR: pbx prc_insertCDR start [2025-01-29 23:09:27] Production.ERROR: pbx prc_insertCDR end [2025-01-29 23:09:27] Production.INFO: ==21146== Releasing lock... [2025-01-29 23:09:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 23:09:27] Production.INFO: 88.5 MB #Memory Used# [2025-01-29 23:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 20:10:05 [end_date_ymd] => 2025-01-29 23:10:05 [RateCDR] => 1 ) [2025-01-29 23:10:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 20:10:05' and `end` < '2025-01-29 23:10:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 23:10:19] Production.INFO: count ==8000 [2025-01-29 23:10:23] Production.ERROR: pbx CDR StartTime 2025-01-29 20:10:05 - End Time 2025-01-29 23:10:05 [2025-01-29 23:10:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 23:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359589', 'tblTempUsageDetail_20' ) start [2025-01-29 23:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359589', 'tblTempUsageDetail_20' ) end [2025-01-29 23:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359589', 'tblTempVendorCDR_20' ) start [2025-01-29 23:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359589', 'tblTempVendorCDR_20' ) end [2025-01-29 23:10:23] Production.INFO: ProcessCDR(1,14359589,1,1,2) [2025-01-29 23:10:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14359589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 23:10:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14359589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 23:10:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14359589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 23:10:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14359589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 23:10:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359589', 'tblTempUsageDetail_20' ) start [2025-01-29 23:10:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359589', 'tblTempUsageDetail_20' ) end [2025-01-29 23:10:26] Production.ERROR: pbx prc_insertCDR start [2025-01-29 23:10:26] Production.ERROR: pbx prc_insertCDR end [2025-01-29 23:10:26] Production.INFO: ==21222== Releasing lock... [2025-01-29 23:10:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 23:10:26] Production.INFO: 88.25 MB #Memory Used# [2025-01-29 23:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 20:11:06 [end_date_ymd] => 2025-01-29 23:11:06 [RateCDR] => 1 ) [2025-01-29 23:11:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 20:11:06' and `end` < '2025-01-29 23:11:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 23:11:20] Production.INFO: count ==7950 [2025-01-29 23:11:24] Production.ERROR: pbx CDR StartTime 2025-01-29 20:11:06 - End Time 2025-01-29 23:11:06 [2025-01-29 23:11:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 23:11:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359595', 'tblTempUsageDetail_20' ) start [2025-01-29 23:11:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359595', 'tblTempUsageDetail_20' ) end [2025-01-29 23:11:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359595', 'tblTempVendorCDR_20' ) start [2025-01-29 23:11:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359595', 'tblTempVendorCDR_20' ) end [2025-01-29 23:11:24] Production.INFO: ProcessCDR(1,14359595,1,1,2) [2025-01-29 23:11:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14359595,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 23:11:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14359595,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 23:11:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14359595,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 23:11:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14359595,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 23:11:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359595', 'tblTempUsageDetail_20' ) start [2025-01-29 23:11:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359595', 'tblTempUsageDetail_20' ) end [2025-01-29 23:11:28] Production.ERROR: pbx prc_insertCDR start [2025-01-29 23:11:28] Production.ERROR: pbx prc_insertCDR end [2025-01-29 23:11:28] Production.INFO: ==21303== Releasing lock... [2025-01-29 23:11:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 23:11:28] Production.INFO: 87.75 MB #Memory Used# [2025-01-29 23:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 20:12:05 [end_date_ymd] => 2025-01-29 23:12:05 [RateCDR] => 1 ) [2025-01-29 23:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 20:12:05' and `end` < '2025-01-29 23:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 23:12:18] Production.INFO: count ==7926 [2025-01-29 23:12:23] Production.ERROR: pbx CDR StartTime 2025-01-29 20:12:05 - End Time 2025-01-29 23:12:05 [2025-01-29 23:12:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 23:12:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359600', 'tblTempUsageDetail_20' ) start [2025-01-29 23:12:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359600', 'tblTempUsageDetail_20' ) end [2025-01-29 23:12:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359600', 'tblTempVendorCDR_20' ) start [2025-01-29 23:12:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359600', 'tblTempVendorCDR_20' ) end [2025-01-29 23:12:23] Production.INFO: ProcessCDR(1,14359600,1,1,2) [2025-01-29 23:12:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14359600,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 23:12:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14359600,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 23:12:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14359600,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 23:12:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14359600,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 23:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359600', 'tblTempUsageDetail_20' ) start [2025-01-29 23:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359600', 'tblTempUsageDetail_20' ) end [2025-01-29 23:12:26] Production.ERROR: pbx prc_insertCDR start [2025-01-29 23:12:26] Production.ERROR: pbx prc_insertCDR end [2025-01-29 23:12:26] Production.INFO: ==21453== Releasing lock... [2025-01-29 23:12:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 23:12:26] Production.INFO: 87.5 MB #Memory Used# [2025-01-29 23:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 20:13:06 [end_date_ymd] => 2025-01-29 23:13:06 [RateCDR] => 1 ) [2025-01-29 23:13:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 20:13:06' and `end` < '2025-01-29 23:13:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 23:13:19] Production.INFO: count ==7891 [2025-01-29 23:13:24] Production.ERROR: pbx CDR StartTime 2025-01-29 20:13:06 - End Time 2025-01-29 23:13:06 [2025-01-29 23:13:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 23:13:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359605', 'tblTempUsageDetail_20' ) start [2025-01-29 23:13:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359605', 'tblTempUsageDetail_20' ) end [2025-01-29 23:13:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359605', 'tblTempVendorCDR_20' ) start [2025-01-29 23:13:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359605', 'tblTempVendorCDR_20' ) end [2025-01-29 23:13:24] Production.INFO: ProcessCDR(1,14359605,1,1,2) [2025-01-29 23:13:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14359605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 23:13:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14359605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 23:13:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14359605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 23:13:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14359605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 23:13:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359605', 'tblTempUsageDetail_20' ) start [2025-01-29 23:13:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359605', 'tblTempUsageDetail_20' ) end [2025-01-29 23:13:27] Production.ERROR: pbx prc_insertCDR start [2025-01-29 23:13:27] Production.ERROR: pbx prc_insertCDR end [2025-01-29 23:13:27] Production.INFO: ==21539== Releasing lock... [2025-01-29 23:13:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 23:13:27] Production.INFO: 87.25 MB #Memory Used# [2025-01-29 23:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 20:14:05 [end_date_ymd] => 2025-01-29 23:14:05 [RateCDR] => 1 ) [2025-01-29 23:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 20:14:05' and `end` < '2025-01-29 23:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 23:14:18] Production.INFO: count ==8011 [2025-01-29 23:14:23] Production.ERROR: pbx CDR StartTime 2025-01-29 20:14:05 - End Time 2025-01-29 23:14:05 [2025-01-29 23:14:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 23:14:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359610', 'tblTempUsageDetail_20' ) start [2025-01-29 23:14:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359610', 'tblTempUsageDetail_20' ) end [2025-01-29 23:14:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359610', 'tblTempVendorCDR_20' ) start [2025-01-29 23:14:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359610', 'tblTempVendorCDR_20' ) end [2025-01-29 23:14:23] Production.INFO: ProcessCDR(1,14359610,1,1,2) [2025-01-29 23:14:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14359610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 23:14:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14359610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 23:14:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14359610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 23:14:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14359610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 23:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359610', 'tblTempUsageDetail_20' ) start [2025-01-29 23:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359610', 'tblTempUsageDetail_20' ) end [2025-01-29 23:14:26] Production.ERROR: pbx prc_insertCDR start [2025-01-29 23:14:26] Production.ERROR: pbx prc_insertCDR end [2025-01-29 23:14:26] Production.INFO: ==21617== Releasing lock... [2025-01-29 23:14:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 23:14:26] Production.INFO: 88.25 MB #Memory Used# [2025-01-29 23:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 20:15:05 [end_date_ymd] => 2025-01-29 23:15:05 [RateCDR] => 1 ) [2025-01-29 23:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 20:15:05' and `end` < '2025-01-29 23:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 23:15:18] Production.INFO: count ==7974 [2025-01-29 23:15:22] Production.ERROR: pbx CDR StartTime 2025-01-29 20:15:05 - End Time 2025-01-29 23:15:05 [2025-01-29 23:15:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 23:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359615', 'tblTempUsageDetail_20' ) start [2025-01-29 23:15:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359615', 'tblTempUsageDetail_20' ) end [2025-01-29 23:15:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359615', 'tblTempVendorCDR_20' ) start [2025-01-29 23:15:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359615', 'tblTempVendorCDR_20' ) end [2025-01-29 23:15:23] Production.INFO: ProcessCDR(1,14359615,1,1,2) [2025-01-29 23:15:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14359615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 23:15:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14359615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 23:15:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14359615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 23:15:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14359615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 23:15:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359615', 'tblTempUsageDetail_20' ) start [2025-01-29 23:15:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359615', 'tblTempUsageDetail_20' ) end [2025-01-29 23:15:26] Production.ERROR: pbx prc_insertCDR start [2025-01-29 23:15:26] Production.ERROR: pbx prc_insertCDR end [2025-01-29 23:15:26] Production.INFO: ==21783== Releasing lock... [2025-01-29 23:15:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 23:15:26] Production.INFO: 88 MB #Memory Used# [2025-01-29 23:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 20:16:05 [end_date_ymd] => 2025-01-29 23:16:05 [RateCDR] => 1 ) [2025-01-29 23:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 20:16:05' and `end` < '2025-01-29 23:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 23:16:19] Production.INFO: count ==7936 [2025-01-29 23:16:23] Production.ERROR: pbx CDR StartTime 2025-01-29 20:16:05 - End Time 2025-01-29 23:16:05 [2025-01-29 23:16:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 23:16:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359620', 'tblTempUsageDetail_20' ) start [2025-01-29 23:16:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359620', 'tblTempUsageDetail_20' ) end [2025-01-29 23:16:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359620', 'tblTempVendorCDR_20' ) start [2025-01-29 23:16:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359620', 'tblTempVendorCDR_20' ) end [2025-01-29 23:16:23] Production.INFO: ProcessCDR(1,14359620,1,1,2) [2025-01-29 23:16:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14359620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 23:16:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14359620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 23:16:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14359620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 23:16:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14359620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 23:16:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359620', 'tblTempUsageDetail_20' ) start [2025-01-29 23:16:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359620', 'tblTempUsageDetail_20' ) end [2025-01-29 23:16:26] Production.ERROR: pbx prc_insertCDR start [2025-01-29 23:16:26] Production.ERROR: pbx prc_insertCDR end [2025-01-29 23:16:26] Production.INFO: ==21858== Releasing lock... [2025-01-29 23:16:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 23:16:26] Production.INFO: 87.75 MB #Memory Used# [2025-01-29 23:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 20:17:05 [end_date_ymd] => 2025-01-29 23:17:05 [RateCDR] => 1 ) [2025-01-29 23:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 20:17:05' and `end` < '2025-01-29 23:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 23:17:19] Production.INFO: count ==7940 [2025-01-29 23:17:23] Production.ERROR: pbx CDR StartTime 2025-01-29 20:17:05 - End Time 2025-01-29 23:17:05 [2025-01-29 23:17:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 23:17:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359625', 'tblTempUsageDetail_20' ) start [2025-01-29 23:17:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359625', 'tblTempUsageDetail_20' ) end [2025-01-29 23:17:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359625', 'tblTempVendorCDR_20' ) start [2025-01-29 23:17:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359625', 'tblTempVendorCDR_20' ) end [2025-01-29 23:17:23] Production.INFO: ProcessCDR(1,14359625,1,1,2) [2025-01-29 23:17:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14359625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 23:17:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14359625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 23:17:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14359625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 23:17:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14359625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 23:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359625', 'tblTempUsageDetail_20' ) start [2025-01-29 23:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359625', 'tblTempUsageDetail_20' ) end [2025-01-29 23:17:26] Production.ERROR: pbx prc_insertCDR start [2025-01-29 23:17:26] Production.ERROR: pbx prc_insertCDR end [2025-01-29 23:17:26] Production.INFO: ==21936== Releasing lock... [2025-01-29 23:17:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 23:17:26] Production.INFO: 87.75 MB #Memory Used# [2025-01-29 23:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 20:18:05 [end_date_ymd] => 2025-01-29 23:18:05 [RateCDR] => 1 ) [2025-01-29 23:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 20:18:05' and `end` < '2025-01-29 23:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 23:18:20] Production.INFO: count ==7905 [2025-01-29 23:18:24] Production.ERROR: pbx CDR StartTime 2025-01-29 20:18:05 - End Time 2025-01-29 23:18:05 [2025-01-29 23:18:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 23:18:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359630', 'tblTempUsageDetail_20' ) start [2025-01-29 23:18:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359630', 'tblTempUsageDetail_20' ) end [2025-01-29 23:18:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359630', 'tblTempVendorCDR_20' ) start [2025-01-29 23:18:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359630', 'tblTempVendorCDR_20' ) end [2025-01-29 23:18:24] Production.INFO: ProcessCDR(1,14359630,1,1,2) [2025-01-29 23:18:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14359630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 23:18:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14359630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 23:18:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14359630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 23:18:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14359630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 23:18:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359630', 'tblTempUsageDetail_20' ) start [2025-01-29 23:18:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359630', 'tblTempUsageDetail_20' ) end [2025-01-29 23:18:27] Production.ERROR: pbx prc_insertCDR start [2025-01-29 23:18:27] Production.ERROR: pbx prc_insertCDR end [2025-01-29 23:18:28] Production.INFO: ==22017== Releasing lock... [2025-01-29 23:18:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 23:18:28] Production.INFO: 87.5 MB #Memory Used# [2025-01-29 23:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 20:19:05 [end_date_ymd] => 2025-01-29 23:19:05 [RateCDR] => 1 ) [2025-01-29 23:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 20:19:05' and `end` < '2025-01-29 23:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 23:19:19] Production.INFO: count ==7864 [2025-01-29 23:19:23] Production.ERROR: pbx CDR StartTime 2025-01-29 20:19:05 - End Time 2025-01-29 23:19:05 [2025-01-29 23:19:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 23:19:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359635', 'tblTempUsageDetail_20' ) start [2025-01-29 23:19:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359635', 'tblTempUsageDetail_20' ) end [2025-01-29 23:19:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359635', 'tblTempVendorCDR_20' ) start [2025-01-29 23:19:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359635', 'tblTempVendorCDR_20' ) end [2025-01-29 23:19:23] Production.INFO: ProcessCDR(1,14359635,1,1,2) [2025-01-29 23:19:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14359635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 23:19:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14359635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 23:19:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14359635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 23:19:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14359635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 23:19:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359635', 'tblTempUsageDetail_20' ) start [2025-01-29 23:19:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359635', 'tblTempUsageDetail_20' ) end [2025-01-29 23:19:26] Production.ERROR: pbx prc_insertCDR start [2025-01-29 23:19:26] Production.ERROR: pbx prc_insertCDR end [2025-01-29 23:19:26] Production.INFO: ==22099== Releasing lock... [2025-01-29 23:19:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 23:19:26] Production.INFO: 87 MB #Memory Used# [2025-01-29 23:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 20:20:06 [end_date_ymd] => 2025-01-29 23:20:06 [RateCDR] => 1 ) [2025-01-29 23:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 20:20:06' and `end` < '2025-01-29 23:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 23:20:20] Production.INFO: count ==7793 [2025-01-29 23:20:24] Production.ERROR: pbx CDR StartTime 2025-01-29 20:20:06 - End Time 2025-01-29 23:20:06 [2025-01-29 23:20:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 23:20:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359640', 'tblTempUsageDetail_20' ) start [2025-01-29 23:20:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359640', 'tblTempUsageDetail_20' ) end [2025-01-29 23:20:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359640', 'tblTempVendorCDR_20' ) start [2025-01-29 23:20:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359640', 'tblTempVendorCDR_20' ) end [2025-01-29 23:20:24] Production.INFO: ProcessCDR(1,14359640,1,1,2) [2025-01-29 23:20:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14359640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 23:20:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14359640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 23:20:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14359640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 23:20:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14359640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 23:20:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359640', 'tblTempUsageDetail_20' ) start [2025-01-29 23:20:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359640', 'tblTempUsageDetail_20' ) end [2025-01-29 23:20:27] Production.ERROR: pbx prc_insertCDR start [2025-01-29 23:20:27] Production.ERROR: pbx prc_insertCDR end [2025-01-29 23:20:27] Production.INFO: ==22180== Releasing lock... [2025-01-29 23:20:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 23:20:27] Production.INFO: 86.5 MB #Memory Used# [2025-01-29 23:21:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 20:21:04 [end_date_ymd] => 2025-01-29 23:21:04 [RateCDR] => 1 ) [2025-01-29 23:21:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 20:21:04' and `end` < '2025-01-29 23:21:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 23:21:18] Production.INFO: count ==7726 [2025-01-29 23:21:22] Production.ERROR: pbx CDR StartTime 2025-01-29 20:21:04 - End Time 2025-01-29 23:21:04 [2025-01-29 23:21:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 23:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359646', 'tblTempUsageDetail_20' ) start [2025-01-29 23:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359646', 'tblTempUsageDetail_20' ) end [2025-01-29 23:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359646', 'tblTempVendorCDR_20' ) start [2025-01-29 23:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359646', 'tblTempVendorCDR_20' ) end [2025-01-29 23:21:22] Production.INFO: ProcessCDR(1,14359646,1,1,2) [2025-01-29 23:21:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14359646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 23:21:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14359646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 23:21:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14359646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 23:21:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14359646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 23:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359646', 'tblTempUsageDetail_20' ) start [2025-01-29 23:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359646', 'tblTempUsageDetail_20' ) end [2025-01-29 23:21:26] Production.ERROR: pbx prc_insertCDR start [2025-01-29 23:21:26] Production.ERROR: pbx prc_insertCDR end [2025-01-29 23:21:26] Production.INFO: ==22258== Releasing lock... [2025-01-29 23:21:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 23:21:26] Production.INFO: 86 MB #Memory Used# [2025-01-29 23:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 20:22:05 [end_date_ymd] => 2025-01-29 23:22:05 [RateCDR] => 1 ) [2025-01-29 23:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 20:22:05' and `end` < '2025-01-29 23:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 23:22:19] Production.INFO: count ==7664 [2025-01-29 23:22:23] Production.ERROR: pbx CDR StartTime 2025-01-29 20:22:05 - End Time 2025-01-29 23:22:05 [2025-01-29 23:22:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 23:22:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359651', 'tblTempUsageDetail_20' ) start [2025-01-29 23:22:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359651', 'tblTempUsageDetail_20' ) end [2025-01-29 23:22:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359651', 'tblTempVendorCDR_20' ) start [2025-01-29 23:22:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359651', 'tblTempVendorCDR_20' ) end [2025-01-29 23:22:23] Production.INFO: ProcessCDR(1,14359651,1,1,2) [2025-01-29 23:22:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14359651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 23:22:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14359651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 23:22:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14359651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 23:22:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14359651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 23:22:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359651', 'tblTempUsageDetail_20' ) start [2025-01-29 23:22:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359651', 'tblTempUsageDetail_20' ) end [2025-01-29 23:22:27] Production.ERROR: pbx prc_insertCDR start [2025-01-29 23:22:27] Production.ERROR: pbx prc_insertCDR end [2025-01-29 23:22:27] Production.INFO: ==22341== Releasing lock... [2025-01-29 23:22:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 23:22:27] Production.INFO: 85.5 MB #Memory Used# [2025-01-29 23:23:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 20:23:04 [end_date_ymd] => 2025-01-29 23:23:04 [RateCDR] => 1 ) [2025-01-29 23:23:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 20:23:04' and `end` < '2025-01-29 23:23:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 23:23:18] Production.INFO: count ==7646 [2025-01-29 23:23:22] Production.ERROR: pbx CDR StartTime 2025-01-29 20:23:04 - End Time 2025-01-29 23:23:04 [2025-01-29 23:23:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 23:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359656', 'tblTempUsageDetail_20' ) start [2025-01-29 23:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359656', 'tblTempUsageDetail_20' ) end [2025-01-29 23:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359656', 'tblTempVendorCDR_20' ) start [2025-01-29 23:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359656', 'tblTempVendorCDR_20' ) end [2025-01-29 23:23:22] Production.INFO: ProcessCDR(1,14359656,1,1,2) [2025-01-29 23:23:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14359656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 23:23:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14359656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 23:23:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14359656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 23:23:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14359656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 23:23:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359656', 'tblTempUsageDetail_20' ) start [2025-01-29 23:23:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359656', 'tblTempUsageDetail_20' ) end [2025-01-29 23:23:25] Production.ERROR: pbx prc_insertCDR start [2025-01-29 23:23:25] Production.ERROR: pbx prc_insertCDR end [2025-01-29 23:23:25] Production.INFO: ==22420== Releasing lock... [2025-01-29 23:23:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 23:23:25] Production.INFO: 85.5 MB #Memory Used# [2025-01-29 23:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 20:24:05 [end_date_ymd] => 2025-01-29 23:24:05 [RateCDR] => 1 ) [2025-01-29 23:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 20:24:05' and `end` < '2025-01-29 23:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 23:24:19] Production.INFO: count ==7607 [2025-01-29 23:24:22] Production.ERROR: pbx CDR StartTime 2025-01-29 20:24:05 - End Time 2025-01-29 23:24:05 [2025-01-29 23:24:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 23:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359661', 'tblTempUsageDetail_20' ) start [2025-01-29 23:24:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359661', 'tblTempUsageDetail_20' ) end [2025-01-29 23:24:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359661', 'tblTempVendorCDR_20' ) start [2025-01-29 23:24:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359661', 'tblTempVendorCDR_20' ) end [2025-01-29 23:24:23] Production.INFO: ProcessCDR(1,14359661,1,1,2) [2025-01-29 23:24:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14359661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 23:24:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14359661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 23:24:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14359661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 23:24:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14359661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 23:24:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359661', 'tblTempUsageDetail_20' ) start [2025-01-29 23:24:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359661', 'tblTempUsageDetail_20' ) end [2025-01-29 23:24:26] Production.ERROR: pbx prc_insertCDR start [2025-01-29 23:24:26] Production.ERROR: pbx prc_insertCDR end [2025-01-29 23:24:26] Production.INFO: ==22535== Releasing lock... [2025-01-29 23:24:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 23:24:26] Production.INFO: 85.25 MB #Memory Used# [2025-01-29 23:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 20:25:05 [end_date_ymd] => 2025-01-29 23:25:05 [RateCDR] => 1 ) [2025-01-29 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-01-29 20:25:05' and `end` < '2025-01-29 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-01-29 23:25:19] Production.INFO: count ==7569 [2025-01-29 23:25:23] Production.ERROR: pbx CDR StartTime 2025-01-29 20:25:05 - End Time 2025-01-29 23:25:05 [2025-01-29 23:25:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 23:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359666', 'tblTempUsageDetail_20' ) start [2025-01-29 23:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359666', 'tblTempUsageDetail_20' ) end [2025-01-29 23:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359666', 'tblTempVendorCDR_20' ) start [2025-01-29 23:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359666', 'tblTempVendorCDR_20' ) end [2025-01-29 23:25:23] Production.INFO: ProcessCDR(1,14359666,1,1,2) [2025-01-29 23:25:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14359666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 23:25:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14359666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 23:25:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14359666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 23:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14359666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 23:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359666', 'tblTempUsageDetail_20' ) start [2025-01-29 23:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359666', 'tblTempUsageDetail_20' ) end [2025-01-29 23:25:27] Production.ERROR: pbx prc_insertCDR start [2025-01-29 23:25:27] Production.ERROR: pbx prc_insertCDR end [2025-01-29 23:25:27] Production.INFO: ==22613== Releasing lock... [2025-01-29 23:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 23:25:27] Production.INFO: 85 MB #Memory Used# [2025-01-29 23:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 20:26:05 [end_date_ymd] => 2025-01-29 23:26:05 [RateCDR] => 1 ) [2025-01-29 23:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 20:26:05' and `end` < '2025-01-29 23:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 23:26:18] Production.INFO: count ==7534 [2025-01-29 23:26:22] Production.ERROR: pbx CDR StartTime 2025-01-29 20:26:05 - End Time 2025-01-29 23:26:05 [2025-01-29 23:26:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 23:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359671', 'tblTempUsageDetail_20' ) start [2025-01-29 23:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359671', 'tblTempUsageDetail_20' ) end [2025-01-29 23:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359671', 'tblTempVendorCDR_20' ) start [2025-01-29 23:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359671', 'tblTempVendorCDR_20' ) end [2025-01-29 23:26:22] Production.INFO: ProcessCDR(1,14359671,1,1,2) [2025-01-29 23:26:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14359671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 23:26:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14359671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 23:26:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14359671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 23:26:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14359671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 23:26:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359671', 'tblTempUsageDetail_20' ) start [2025-01-29 23:26:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359671', 'tblTempUsageDetail_20' ) end [2025-01-29 23:26:25] Production.ERROR: pbx prc_insertCDR start [2025-01-29 23:26:25] Production.ERROR: pbx prc_insertCDR end [2025-01-29 23:26:25] Production.INFO: ==22693== Releasing lock... [2025-01-29 23:26:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 23:26:25] Production.INFO: 84.75 MB #Memory Used# [2025-01-29 23:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 20:27:05 [end_date_ymd] => 2025-01-29 23:27:05 [RateCDR] => 1 ) [2025-01-29 23:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 20:27:05' and `end` < '2025-01-29 23:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 23:27:19] Production.INFO: count ==7502 [2025-01-29 23:27:23] Production.ERROR: pbx CDR StartTime 2025-01-29 20:27:05 - End Time 2025-01-29 23:27:05 [2025-01-29 23:27:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 23:27:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359676', 'tblTempUsageDetail_20' ) start [2025-01-29 23:27:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359676', 'tblTempUsageDetail_20' ) end [2025-01-29 23:27:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359676', 'tblTempVendorCDR_20' ) start [2025-01-29 23:27:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359676', 'tblTempVendorCDR_20' ) end [2025-01-29 23:27:23] Production.INFO: ProcessCDR(1,14359676,1,1,2) [2025-01-29 23:27:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14359676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 23:27:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14359676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 23:27:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14359676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 23:27:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14359676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 23:27:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359676', 'tblTempUsageDetail_20' ) start [2025-01-29 23:27:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359676', 'tblTempUsageDetail_20' ) end [2025-01-29 23:27:27] Production.ERROR: pbx prc_insertCDR start [2025-01-29 23:27:27] Production.ERROR: pbx prc_insertCDR end [2025-01-29 23:27:27] Production.INFO: ==22773== Releasing lock... [2025-01-29 23:27:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 23:27:27] Production.INFO: 84.5 MB #Memory Used# [2025-01-29 23:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 20:28:05 [end_date_ymd] => 2025-01-29 23:28:05 [RateCDR] => 1 ) [2025-01-29 23:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 20:28:05' and `end` < '2025-01-29 23:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 23:28:18] Production.INFO: count ==7749 [2025-01-29 23:28:22] Production.ERROR: pbx CDR StartTime 2025-01-29 20:28:05 - End Time 2025-01-29 23:28:05 [2025-01-29 23:28:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 23:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359681', 'tblTempUsageDetail_20' ) start [2025-01-29 23:28:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359681', 'tblTempUsageDetail_20' ) end [2025-01-29 23:28:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359681', 'tblTempVendorCDR_20' ) start [2025-01-29 23:28:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359681', 'tblTempVendorCDR_20' ) end [2025-01-29 23:28:23] Production.INFO: ProcessCDR(1,14359681,1,1,2) [2025-01-29 23:28:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14359681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 23:28:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14359681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 23:28:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14359681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 23:28:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14359681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 23:28:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359681', 'tblTempUsageDetail_20' ) start [2025-01-29 23:28:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359681', 'tblTempUsageDetail_20' ) end [2025-01-29 23:28:26] Production.ERROR: pbx prc_insertCDR start [2025-01-29 23:28:26] Production.ERROR: pbx prc_insertCDR end [2025-01-29 23:28:26] Production.INFO: ==22852== Releasing lock... [2025-01-29 23:28:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 23:28:26] Production.INFO: 86.25 MB #Memory Used# [2025-01-29 23:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 20:29:05 [end_date_ymd] => 2025-01-29 23:29:05 [RateCDR] => 1 ) [2025-01-29 23:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 20:29:05' and `end` < '2025-01-29 23:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 23:29:19] Production.INFO: count ==7716 [2025-01-29 23:29:23] Production.ERROR: pbx CDR StartTime 2025-01-29 20:29:05 - End Time 2025-01-29 23:29:05 [2025-01-29 23:29:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 23:29:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359686', 'tblTempUsageDetail_20' ) start [2025-01-29 23:29:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359686', 'tblTempUsageDetail_20' ) end [2025-01-29 23:29:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359686', 'tblTempVendorCDR_20' ) start [2025-01-29 23:29:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359686', 'tblTempVendorCDR_20' ) end [2025-01-29 23:29:23] Production.INFO: ProcessCDR(1,14359686,1,1,2) [2025-01-29 23:29:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14359686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 23:29:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14359686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 23:29:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14359686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 23:29:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14359686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 23:29:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359686', 'tblTempUsageDetail_20' ) start [2025-01-29 23:29:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359686', 'tblTempUsageDetail_20' ) end [2025-01-29 23:29:26] Production.ERROR: pbx prc_insertCDR start [2025-01-29 23:29:26] Production.ERROR: pbx prc_insertCDR end [2025-01-29 23:29:26] Production.INFO: ==22931== Releasing lock... [2025-01-29 23:29:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 23:29:26] Production.INFO: 86 MB #Memory Used# [2025-01-29 23:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 20:30:05 [end_date_ymd] => 2025-01-29 23:30:05 [RateCDR] => 1 ) [2025-01-29 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-01-29 20:30:05' and `end` < '2025-01-29 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-01-29 23:30:18] Production.INFO: count ==7682 [2025-01-29 23:30:23] Production.ERROR: pbx CDR StartTime 2025-01-29 20:30:05 - End Time 2025-01-29 23:30:05 [2025-01-29 23:30:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 23:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359692', 'tblTempUsageDetail_20' ) start [2025-01-29 23:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359692', 'tblTempUsageDetail_20' ) end [2025-01-29 23:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359692', 'tblTempVendorCDR_20' ) start [2025-01-29 23:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359692', 'tblTempVendorCDR_20' ) end [2025-01-29 23:30:23] Production.INFO: ProcessCDR(1,14359692,1,1,2) [2025-01-29 23:30:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14359692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 23:30:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14359692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 23:30:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14359692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 23:30:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14359692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 23:30:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359692', 'tblTempUsageDetail_20' ) start [2025-01-29 23:30:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359692', 'tblTempUsageDetail_20' ) end [2025-01-29 23:30:26] Production.ERROR: pbx prc_insertCDR start [2025-01-29 23:30:26] Production.ERROR: pbx prc_insertCDR end [2025-01-29 23:30:26] Production.INFO: ==23014== Releasing lock... [2025-01-29 23:30:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 23:30:26] Production.INFO: 85.75 MB #Memory Used# [2025-01-29 23:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 20:31:05 [end_date_ymd] => 2025-01-29 23:31:05 [RateCDR] => 1 ) [2025-01-29 23:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 20:31:05' and `end` < '2025-01-29 23:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 23:31:18] Production.INFO: count ==7594 [2025-01-29 23:31:22] Production.ERROR: pbx CDR StartTime 2025-01-29 20:31:05 - End Time 2025-01-29 23:31:05 [2025-01-29 23:31:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 23:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359697', 'tblTempUsageDetail_20' ) start [2025-01-29 23:31:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359697', 'tblTempUsageDetail_20' ) end [2025-01-29 23:31:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359697', 'tblTempVendorCDR_20' ) start [2025-01-29 23:31:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359697', 'tblTempVendorCDR_20' ) end [2025-01-29 23:31:23] Production.INFO: ProcessCDR(1,14359697,1,1,2) [2025-01-29 23:31:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14359697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 23:31:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14359697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 23:31:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14359697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 23:31:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14359697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 23:31:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359697', 'tblTempUsageDetail_20' ) start [2025-01-29 23:31:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359697', 'tblTempUsageDetail_20' ) end [2025-01-29 23:31:26] Production.ERROR: pbx prc_insertCDR start [2025-01-29 23:31:26] Production.ERROR: pbx prc_insertCDR end [2025-01-29 23:31:26] Production.INFO: ==23099== Releasing lock... [2025-01-29 23:31:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 23:31:26] Production.INFO: 85 MB #Memory Used# [2025-01-29 23:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 20:32:05 [end_date_ymd] => 2025-01-29 23:32:05 [RateCDR] => 1 ) [2025-01-29 23:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 20:32:05' and `end` < '2025-01-29 23:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 23:32:19] Production.INFO: count ==7573 [2025-01-29 23:32:23] Production.ERROR: pbx CDR StartTime 2025-01-29 20:32:05 - End Time 2025-01-29 23:32:05 [2025-01-29 23:32:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 23:32:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359702', 'tblTempUsageDetail_20' ) start [2025-01-29 23:32:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359702', 'tblTempUsageDetail_20' ) end [2025-01-29 23:32:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359702', 'tblTempVendorCDR_20' ) start [2025-01-29 23:32:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359702', 'tblTempVendorCDR_20' ) end [2025-01-29 23:32:23] Production.INFO: ProcessCDR(1,14359702,1,1,2) [2025-01-29 23:32:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14359702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 23:32:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14359702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 23:32:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14359702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 23:32:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14359702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 23:32:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359702', 'tblTempUsageDetail_20' ) start [2025-01-29 23:32:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359702', 'tblTempUsageDetail_20' ) end [2025-01-29 23:32:26] Production.ERROR: pbx prc_insertCDR start [2025-01-29 23:32:26] Production.ERROR: pbx prc_insertCDR end [2025-01-29 23:32:26] Production.INFO: ==23175== Releasing lock... [2025-01-29 23:32:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 23:32:26] Production.INFO: 85 MB #Memory Used# [2025-01-29 23:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 20:33:05 [end_date_ymd] => 2025-01-29 23:33:05 [RateCDR] => 1 ) [2025-01-29 23:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 20:33:05' and `end` < '2025-01-29 23:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 23:33:18] Production.INFO: count ==7538 [2025-01-29 23:33:22] Production.ERROR: pbx CDR StartTime 2025-01-29 20:33:05 - End Time 2025-01-29 23:33:05 [2025-01-29 23:33:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 23:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359707', 'tblTempUsageDetail_20' ) start [2025-01-29 23:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359707', 'tblTempUsageDetail_20' ) end [2025-01-29 23:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359707', 'tblTempVendorCDR_20' ) start [2025-01-29 23:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359707', 'tblTempVendorCDR_20' ) end [2025-01-29 23:33:22] Production.INFO: ProcessCDR(1,14359707,1,1,2) [2025-01-29 23:33:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14359707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 23:33:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14359707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 23:33:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14359707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 23:33:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14359707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 23:33:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359707', 'tblTempUsageDetail_20' ) start [2025-01-29 23:33:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359707', 'tblTempUsageDetail_20' ) end [2025-01-29 23:33:27] Production.ERROR: pbx prc_insertCDR start [2025-01-29 23:33:27] Production.ERROR: pbx prc_insertCDR end [2025-01-29 23:33:27] Production.INFO: ==23256== Releasing lock... [2025-01-29 23:33:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 23:33:27] Production.INFO: 84.75 MB #Memory Used# [2025-01-29 23:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 20:34:05 [end_date_ymd] => 2025-01-29 23:34:05 [RateCDR] => 1 ) [2025-01-29 23:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 20:34:05' and `end` < '2025-01-29 23:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 23:34:18] Production.INFO: count ==7521 [2025-01-29 23:34:23] Production.ERROR: pbx CDR StartTime 2025-01-29 20:34:05 - End Time 2025-01-29 23:34:05 [2025-01-29 23:34:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 23:34:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359712', 'tblTempUsageDetail_20' ) start [2025-01-29 23:34:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359712', 'tblTempUsageDetail_20' ) end [2025-01-29 23:34:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359712', 'tblTempVendorCDR_20' ) start [2025-01-29 23:34:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359712', 'tblTempVendorCDR_20' ) end [2025-01-29 23:34:23] Production.INFO: ProcessCDR(1,14359712,1,1,2) [2025-01-29 23:34:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14359712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 23:34:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14359712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 23:34:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14359712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 23:34:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14359712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 23:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359712', 'tblTempUsageDetail_20' ) start [2025-01-29 23:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359712', 'tblTempUsageDetail_20' ) end [2025-01-29 23:34:26] Production.ERROR: pbx prc_insertCDR start [2025-01-29 23:34:26] Production.ERROR: pbx prc_insertCDR end [2025-01-29 23:34:26] Production.INFO: ==23339== Releasing lock... [2025-01-29 23:34:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 23:34:26] Production.INFO: 84.5 MB #Memory Used# [2025-01-29 23:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 20:35:05 [end_date_ymd] => 2025-01-29 23:35:05 [RateCDR] => 1 ) [2025-01-29 23:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 20:35:05' and `end` < '2025-01-29 23:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 23:35:18] Production.INFO: count ==7521 [2025-01-29 23:35:22] Production.ERROR: pbx CDR StartTime 2025-01-29 20:35:05 - End Time 2025-01-29 23:35:05 [2025-01-29 23:35:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 23:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359717', 'tblTempUsageDetail_20' ) start [2025-01-29 23:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359717', 'tblTempUsageDetail_20' ) end [2025-01-29 23:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359717', 'tblTempVendorCDR_20' ) start [2025-01-29 23:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359717', 'tblTempVendorCDR_20' ) end [2025-01-29 23:35:22] Production.INFO: ProcessCDR(1,14359717,1,1,2) [2025-01-29 23:35:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14359717,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 23:35:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14359717,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 23:35:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14359717,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 23:35:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14359717,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 23:35:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359717', 'tblTempUsageDetail_20' ) start [2025-01-29 23:35:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359717', 'tblTempUsageDetail_20' ) end [2025-01-29 23:35:26] Production.ERROR: pbx prc_insertCDR start [2025-01-29 23:35:26] Production.ERROR: pbx prc_insertCDR end [2025-01-29 23:35:26] Production.INFO: ==23417== Releasing lock... [2025-01-29 23:35:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 23:35:26] Production.INFO: 84.5 MB #Memory Used# [2025-01-29 23:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 20:36:05 [end_date_ymd] => 2025-01-29 23:36:05 [RateCDR] => 1 ) [2025-01-29 23:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 20:36:05' and `end` < '2025-01-29 23:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 23:36:20] Production.INFO: count ==7773 [2025-01-29 23:36:24] Production.ERROR: pbx CDR StartTime 2025-01-29 20:36:05 - End Time 2025-01-29 23:36:05 [2025-01-29 23:36:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 23:36:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359722', 'tblTempUsageDetail_20' ) start [2025-01-29 23:36:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359722', 'tblTempUsageDetail_20' ) end [2025-01-29 23:36:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359722', 'tblTempVendorCDR_20' ) start [2025-01-29 23:36:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359722', 'tblTempVendorCDR_20' ) end [2025-01-29 23:36:24] Production.INFO: ProcessCDR(1,14359722,1,1,2) [2025-01-29 23:36:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14359722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 23:36:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14359722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 23:36:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14359722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 23:36:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14359722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 23:36:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359722', 'tblTempUsageDetail_20' ) start [2025-01-29 23:36:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359722', 'tblTempUsageDetail_20' ) end [2025-01-29 23:36:27] Production.ERROR: pbx prc_insertCDR start [2025-01-29 23:36:27] Production.ERROR: pbx prc_insertCDR end [2025-01-29 23:36:27] Production.INFO: ==23499== Releasing lock... [2025-01-29 23:36:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 23:36:27] Production.INFO: 86.5 MB #Memory Used# [2025-01-29 23:37:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 20:37:04 [end_date_ymd] => 2025-01-29 23:37:04 [RateCDR] => 1 ) [2025-01-29 23:37:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 20:37:04' and `end` < '2025-01-29 23:37:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 23:37:18] Production.INFO: count ==7772 [2025-01-29 23:37:22] Production.ERROR: pbx CDR StartTime 2025-01-29 20:37:04 - End Time 2025-01-29 23:37:04 [2025-01-29 23:37:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 23:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359727', 'tblTempUsageDetail_20' ) start [2025-01-29 23:37:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359727', 'tblTempUsageDetail_20' ) end [2025-01-29 23:37:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359727', 'tblTempVendorCDR_20' ) start [2025-01-29 23:37:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359727', 'tblTempVendorCDR_20' ) end [2025-01-29 23:37:23] Production.INFO: ProcessCDR(1,14359727,1,1,2) [2025-01-29 23:37:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14359727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 23:37:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14359727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 23:37:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14359727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 23:37:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14359727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 23:37:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359727', 'tblTempUsageDetail_20' ) start [2025-01-29 23:37:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359727', 'tblTempUsageDetail_20' ) end [2025-01-29 23:37:26] Production.ERROR: pbx prc_insertCDR start [2025-01-29 23:37:26] Production.ERROR: pbx prc_insertCDR end [2025-01-29 23:37:26] Production.INFO: ==23584== Releasing lock... [2025-01-29 23:37:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 23:37:26] Production.INFO: 86.5 MB #Memory Used# [2025-01-29 23:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 20:38:05 [end_date_ymd] => 2025-01-29 23:38:05 [RateCDR] => 1 ) [2025-01-29 23:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 20:38:05' and `end` < '2025-01-29 23:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 23:38:19] Production.INFO: count ==7771 [2025-01-29 23:38:23] Production.ERROR: pbx CDR StartTime 2025-01-29 20:38:05 - End Time 2025-01-29 23:38:05 [2025-01-29 23:38:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 23:38:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359732', 'tblTempUsageDetail_20' ) start [2025-01-29 23:38:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359732', 'tblTempUsageDetail_20' ) end [2025-01-29 23:38:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359732', 'tblTempVendorCDR_20' ) start [2025-01-29 23:38:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359732', 'tblTempVendorCDR_20' ) end [2025-01-29 23:38:23] Production.INFO: ProcessCDR(1,14359732,1,1,2) [2025-01-29 23:38:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14359732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 23:38:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14359732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 23:38:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14359732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 23:38:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14359732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 23:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359732', 'tblTempUsageDetail_20' ) start [2025-01-29 23:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359732', 'tblTempUsageDetail_20' ) end [2025-01-29 23:38:26] Production.ERROR: pbx prc_insertCDR start [2025-01-29 23:38:26] Production.ERROR: pbx prc_insertCDR end [2025-01-29 23:38:26] Production.INFO: ==23659== Releasing lock... [2025-01-29 23:38:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 23:38:26] Production.INFO: 86.5 MB #Memory Used# [2025-01-29 23:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 20:39:05 [end_date_ymd] => 2025-01-29 23:39:05 [RateCDR] => 1 ) [2025-01-29 23:39:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 20:39:05' and `end` < '2025-01-29 23:39:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 23:39:19] Production.INFO: count ==7765 [2025-01-29 23:39:23] Production.ERROR: pbx CDR StartTime 2025-01-29 20:39:05 - End Time 2025-01-29 23:39:05 [2025-01-29 23:39:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 23:39:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359737', 'tblTempUsageDetail_20' ) start [2025-01-29 23:39:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359737', 'tblTempUsageDetail_20' ) end [2025-01-29 23:39:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359737', 'tblTempVendorCDR_20' ) start [2025-01-29 23:39:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359737', 'tblTempVendorCDR_20' ) end [2025-01-29 23:39:23] Production.INFO: ProcessCDR(1,14359737,1,1,2) [2025-01-29 23:39:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14359737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 23:39:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14359737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 23:39:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14359737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 23:39:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14359737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 23:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359737', 'tblTempUsageDetail_20' ) start [2025-01-29 23:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359737', 'tblTempUsageDetail_20' ) end [2025-01-29 23:39:26] Production.ERROR: pbx prc_insertCDR start [2025-01-29 23:39:26] Production.ERROR: pbx prc_insertCDR end [2025-01-29 23:39:26] Production.INFO: ==23748== Releasing lock... [2025-01-29 23:39:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 23:39:26] Production.INFO: 86.25 MB #Memory Used# [2025-01-29 23:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 20:40:06 [end_date_ymd] => 2025-01-29 23:40:06 [RateCDR] => 1 ) [2025-01-29 23:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 20:40:06' and `end` < '2025-01-29 23:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 23:40:19] Production.INFO: count ==7805 [2025-01-29 23:40:23] Production.ERROR: pbx CDR StartTime 2025-01-29 20:40:06 - End Time 2025-01-29 23:40:06 [2025-01-29 23:40:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 23:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359743', 'tblTempUsageDetail_20' ) start [2025-01-29 23:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359743', 'tblTempUsageDetail_20' ) end [2025-01-29 23:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359743', 'tblTempVendorCDR_20' ) start [2025-01-29 23:40:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359743', 'tblTempVendorCDR_20' ) end [2025-01-29 23:40:23] Production.INFO: ProcessCDR(1,14359743,1,1,2) [2025-01-29 23:40:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14359743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 23:40:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14359743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 23:40:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14359743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 23:40:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14359743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 23:40:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359743', 'tblTempUsageDetail_20' ) start [2025-01-29 23:40:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359743', 'tblTempUsageDetail_20' ) end [2025-01-29 23:40:28] Production.ERROR: pbx prc_insertCDR start [2025-01-29 23:40:28] Production.ERROR: pbx prc_insertCDR end [2025-01-29 23:40:28] Production.INFO: ==23901== Releasing lock... [2025-01-29 23:40:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 23:40:28] Production.INFO: 86.75 MB #Memory Used# [2025-01-29 23:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 20:41:05 [end_date_ymd] => 2025-01-29 23:41:05 [RateCDR] => 1 ) [2025-01-29 23:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 20:41:05' and `end` < '2025-01-29 23:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 23:41:19] Production.INFO: count ==7779 [2025-01-29 23:41:23] Production.ERROR: pbx CDR StartTime 2025-01-29 20:41:05 - End Time 2025-01-29 23:41:05 [2025-01-29 23:41:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 23:41:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359748', 'tblTempUsageDetail_20' ) start [2025-01-29 23:41:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359748', 'tblTempUsageDetail_20' ) end [2025-01-29 23:41:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359748', 'tblTempVendorCDR_20' ) start [2025-01-29 23:41:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359748', 'tblTempVendorCDR_20' ) end [2025-01-29 23:41:24] Production.INFO: ProcessCDR(1,14359748,1,1,2) [2025-01-29 23:41:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14359748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 23:41:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14359748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 23:41:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14359748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 23:41:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14359748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 23:41:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359748', 'tblTempUsageDetail_20' ) start [2025-01-29 23:41:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359748', 'tblTempUsageDetail_20' ) end [2025-01-29 23:41:27] Production.ERROR: pbx prc_insertCDR start [2025-01-29 23:41:27] Production.ERROR: pbx prc_insertCDR end [2025-01-29 23:41:27] Production.INFO: ==24018== Releasing lock... [2025-01-29 23:41:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 23:41:27] Production.INFO: 86.5 MB #Memory Used# [2025-01-29 23:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 20:42:05 [end_date_ymd] => 2025-01-29 23:42:05 [RateCDR] => 1 ) [2025-01-29 23:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 20:42:05' and `end` < '2025-01-29 23:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 23:42:18] Production.INFO: count ==7776 [2025-01-29 23:42:22] Production.ERROR: pbx CDR StartTime 2025-01-29 20:42:05 - End Time 2025-01-29 23:42:05 [2025-01-29 23:42:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 23:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359753', 'tblTempUsageDetail_20' ) start [2025-01-29 23:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359753', 'tblTempUsageDetail_20' ) end [2025-01-29 23:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359753', 'tblTempVendorCDR_20' ) start [2025-01-29 23:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359753', 'tblTempVendorCDR_20' ) end [2025-01-29 23:42:22] Production.INFO: ProcessCDR(1,14359753,1,1,2) [2025-01-29 23:42:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14359753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 23:42:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14359753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 23:42:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14359753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 23:42:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14359753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 23:42:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359753', 'tblTempUsageDetail_20' ) start [2025-01-29 23:42:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359753', 'tblTempUsageDetail_20' ) end [2025-01-29 23:42:25] Production.ERROR: pbx prc_insertCDR start [2025-01-29 23:42:25] Production.ERROR: pbx prc_insertCDR end [2025-01-29 23:42:25] Production.INFO: ==24133== Releasing lock... [2025-01-29 23:42:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 23:42:25] Production.INFO: 86.5 MB #Memory Used# [2025-01-29 23:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 20:43:05 [end_date_ymd] => 2025-01-29 23:43:05 [RateCDR] => 1 ) [2025-01-29 23:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 20:43:05' and `end` < '2025-01-29 23:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 23:43:18] Production.INFO: count ==7776 [2025-01-29 23:43:23] Production.ERROR: pbx CDR StartTime 2025-01-29 20:43:05 - End Time 2025-01-29 23:43:05 [2025-01-29 23:43:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 23:43:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359758', 'tblTempUsageDetail_20' ) start [2025-01-29 23:43:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359758', 'tblTempUsageDetail_20' ) end [2025-01-29 23:43:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359758', 'tblTempVendorCDR_20' ) start [2025-01-29 23:43:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359758', 'tblTempVendorCDR_20' ) end [2025-01-29 23:43:23] Production.INFO: ProcessCDR(1,14359758,1,1,2) [2025-01-29 23:43:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14359758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 23:43:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14359758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 23:43:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14359758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 23:43:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14359758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 23:43:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359758', 'tblTempUsageDetail_20' ) start [2025-01-29 23:43:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359758', 'tblTempUsageDetail_20' ) end [2025-01-29 23:43:26] Production.ERROR: pbx prc_insertCDR start [2025-01-29 23:43:26] Production.ERROR: pbx prc_insertCDR end [2025-01-29 23:43:26] Production.INFO: ==24250== Releasing lock... [2025-01-29 23:43:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 23:43:26] Production.INFO: 86.5 MB #Memory Used# [2025-01-29 23:44:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 20:44:04 [end_date_ymd] => 2025-01-29 23:44:04 [RateCDR] => 1 ) [2025-01-29 23:44:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 20:44:04' and `end` < '2025-01-29 23:44:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 23:44:18] Production.INFO: count ==7776 [2025-01-29 23:44:21] Production.ERROR: pbx CDR StartTime 2025-01-29 20:44:04 - End Time 2025-01-29 23:44:04 [2025-01-29 23:44:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 23:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359763', 'tblTempUsageDetail_20' ) start [2025-01-29 23:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359763', 'tblTempUsageDetail_20' ) end [2025-01-29 23:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359763', 'tblTempVendorCDR_20' ) start [2025-01-29 23:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359763', 'tblTempVendorCDR_20' ) end [2025-01-29 23:44:22] Production.INFO: ProcessCDR(1,14359763,1,1,2) [2025-01-29 23:44:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14359763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 23:44:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14359763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 23:44:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14359763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 23:44:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14359763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 23:44:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359763', 'tblTempUsageDetail_20' ) start [2025-01-29 23:44:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359763', 'tblTempUsageDetail_20' ) end [2025-01-29 23:44:25] Production.ERROR: pbx prc_insertCDR start [2025-01-29 23:44:25] Production.ERROR: pbx prc_insertCDR end [2025-01-29 23:44:25] Production.INFO: ==24375== Releasing lock... [2025-01-29 23:44:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 23:44:25] Production.INFO: 86.5 MB #Memory Used# [2025-01-29 23:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 20:45:05 [end_date_ymd] => 2025-01-29 23:45:05 [RateCDR] => 1 ) [2025-01-29 23:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 20:45:05' and `end` < '2025-01-29 23:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 23:45:18] Production.INFO: count ==7776 [2025-01-29 23:45:23] Production.ERROR: pbx CDR StartTime 2025-01-29 20:45:05 - End Time 2025-01-29 23:45:05 [2025-01-29 23:45:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 23:45:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359768', 'tblTempUsageDetail_20' ) start [2025-01-29 23:45:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359768', 'tblTempUsageDetail_20' ) end [2025-01-29 23:45:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359768', 'tblTempVendorCDR_20' ) start [2025-01-29 23:45:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359768', 'tblTempVendorCDR_20' ) end [2025-01-29 23:45:23] Production.INFO: ProcessCDR(1,14359768,1,1,2) [2025-01-29 23:45:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14359768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 23:45:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14359768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 23:45:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14359768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 23:45:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14359768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 23:45:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359768', 'tblTempUsageDetail_20' ) start [2025-01-29 23:45:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359768', 'tblTempUsageDetail_20' ) end [2025-01-29 23:45:28] Production.ERROR: pbx prc_insertCDR start [2025-01-29 23:45:28] Production.ERROR: pbx prc_insertCDR end [2025-01-29 23:45:28] Production.INFO: ==24504== Releasing lock... [2025-01-29 23:45:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 23:45:28] Production.INFO: 86.5 MB #Memory Used# [2025-01-29 23:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 20:46:05 [end_date_ymd] => 2025-01-29 23:46:05 [RateCDR] => 1 ) [2025-01-29 23:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 20:46:05' and `end` < '2025-01-29 23:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 23:46:19] Production.INFO: count ==7775 [2025-01-29 23:46:23] Production.ERROR: pbx CDR StartTime 2025-01-29 20:46:05 - End Time 2025-01-29 23:46:05 [2025-01-29 23:46:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 23:46:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359773', 'tblTempUsageDetail_20' ) start [2025-01-29 23:46:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359773', 'tblTempUsageDetail_20' ) end [2025-01-29 23:46:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359773', 'tblTempVendorCDR_20' ) start [2025-01-29 23:46:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359773', 'tblTempVendorCDR_20' ) end [2025-01-29 23:46:23] Production.INFO: ProcessCDR(1,14359773,1,1,2) [2025-01-29 23:46:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14359773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 23:46:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14359773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 23:46:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14359773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 23:46:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14359773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 23:46:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359773', 'tblTempUsageDetail_20' ) start [2025-01-29 23:46:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359773', 'tblTempUsageDetail_20' ) end [2025-01-29 23:46:26] Production.ERROR: pbx prc_insertCDR start [2025-01-29 23:46:26] Production.ERROR: pbx prc_insertCDR end [2025-01-29 23:46:26] Production.INFO: ==24628== Releasing lock... [2025-01-29 23:46:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 23:46:26] Production.INFO: 86.5 MB #Memory Used# [2025-01-29 23:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 20:47:05 [end_date_ymd] => 2025-01-29 23:47:05 [RateCDR] => 1 ) [2025-01-29 23:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 20:47:05' and `end` < '2025-01-29 23:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 23:47:19] Production.INFO: count ==7774 [2025-01-29 23:47:23] Production.ERROR: pbx CDR StartTime 2025-01-29 20:47:05 - End Time 2025-01-29 23:47:05 [2025-01-29 23:47:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 23:47:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359778', 'tblTempUsageDetail_20' ) start [2025-01-29 23:47:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359778', 'tblTempUsageDetail_20' ) end [2025-01-29 23:47:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359778', 'tblTempVendorCDR_20' ) start [2025-01-29 23:47:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359778', 'tblTempVendorCDR_20' ) end [2025-01-29 23:47:23] Production.INFO: ProcessCDR(1,14359778,1,1,2) [2025-01-29 23:47:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14359778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 23:47:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14359778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 23:47:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14359778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 23:47:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14359778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 23:47:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359778', 'tblTempUsageDetail_20' ) start [2025-01-29 23:47:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359778', 'tblTempUsageDetail_20' ) end [2025-01-29 23:47:27] Production.ERROR: pbx prc_insertCDR start [2025-01-29 23:47:27] Production.ERROR: pbx prc_insertCDR end [2025-01-29 23:47:27] Production.INFO: ==24754== Releasing lock... [2025-01-29 23:47:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 23:47:27] Production.INFO: 86.5 MB #Memory Used# [2025-01-29 23:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 20:48:06 [end_date_ymd] => 2025-01-29 23:48:06 [RateCDR] => 1 ) [2025-01-29 23:48:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 20:48:06' and `end` < '2025-01-29 23:48:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 23:48:19] Production.INFO: count ==7771 [2025-01-29 23:48:23] Production.ERROR: pbx CDR StartTime 2025-01-29 20:48:06 - End Time 2025-01-29 23:48:06 [2025-01-29 23:48:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 23:48:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359783', 'tblTempUsageDetail_20' ) start [2025-01-29 23:48:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359783', 'tblTempUsageDetail_20' ) end [2025-01-29 23:48:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359783', 'tblTempVendorCDR_20' ) start [2025-01-29 23:48:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359783', 'tblTempVendorCDR_20' ) end [2025-01-29 23:48:23] Production.INFO: ProcessCDR(1,14359783,1,1,2) [2025-01-29 23:48:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14359783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 23:48:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14359783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 23:48:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14359783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 23:48:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14359783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 23:48:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359783', 'tblTempUsageDetail_20' ) start [2025-01-29 23:48:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359783', 'tblTempUsageDetail_20' ) end [2025-01-29 23:48:26] Production.ERROR: pbx prc_insertCDR start [2025-01-29 23:48:26] Production.ERROR: pbx prc_insertCDR end [2025-01-29 23:48:26] Production.INFO: ==24880== Releasing lock... [2025-01-29 23:48:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 23:48:26] Production.INFO: 86.5 MB #Memory Used# [2025-01-29 23:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 20:49:05 [end_date_ymd] => 2025-01-29 23:49:05 [RateCDR] => 1 ) [2025-01-29 23:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 20:49:05' and `end` < '2025-01-29 23:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 23:49:18] Production.INFO: count ==7787 [2025-01-29 23:49:22] Production.ERROR: pbx CDR StartTime 2025-01-29 20:49:05 - End Time 2025-01-29 23:49:05 [2025-01-29 23:49:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 23:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359788', 'tblTempUsageDetail_20' ) start [2025-01-29 23:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359788', 'tblTempUsageDetail_20' ) end [2025-01-29 23:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359788', 'tblTempVendorCDR_20' ) start [2025-01-29 23:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359788', 'tblTempVendorCDR_20' ) end [2025-01-29 23:49:22] Production.INFO: ProcessCDR(1,14359788,1,1,2) [2025-01-29 23:49:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14359788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 23:49:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14359788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 23:49:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14359788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 23:49:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14359788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 23:49:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359788', 'tblTempUsageDetail_20' ) start [2025-01-29 23:49:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359788', 'tblTempUsageDetail_20' ) end [2025-01-29 23:49:27] Production.ERROR: pbx prc_insertCDR start [2025-01-29 23:49:27] Production.ERROR: pbx prc_insertCDR end [2025-01-29 23:49:27] Production.INFO: ==25006== Releasing lock... [2025-01-29 23:49:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 23:49:27] Production.INFO: 86.5 MB #Memory Used# [2025-01-29 23:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 20:50:05 [end_date_ymd] => 2025-01-29 23:50:05 [RateCDR] => 1 ) [2025-01-29 23:50:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 20:50:05' and `end` < '2025-01-29 23:50:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 23:50:18] Production.INFO: count ==7788 [2025-01-29 23:50:23] Production.ERROR: pbx CDR StartTime 2025-01-29 20:50:05 - End Time 2025-01-29 23:50:05 [2025-01-29 23:50:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 23:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359793', 'tblTempUsageDetail_20' ) start [2025-01-29 23:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359793', 'tblTempUsageDetail_20' ) end [2025-01-29 23:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359793', 'tblTempVendorCDR_20' ) start [2025-01-29 23:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359793', 'tblTempVendorCDR_20' ) end [2025-01-29 23:50:23] Production.INFO: ProcessCDR(1,14359793,1,1,2) [2025-01-29 23:50:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14359793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 23:50:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14359793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 23:50:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14359793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 23:50:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14359793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 23:50:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359793', 'tblTempUsageDetail_20' ) start [2025-01-29 23:50:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359793', 'tblTempUsageDetail_20' ) end [2025-01-29 23:50:26] Production.ERROR: pbx prc_insertCDR start [2025-01-29 23:50:26] Production.ERROR: pbx prc_insertCDR end [2025-01-29 23:50:26] Production.INFO: ==25121== Releasing lock... [2025-01-29 23:50:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 23:50:26] Production.INFO: 86.5 MB #Memory Used# [2025-01-29 23:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 20:51:05 [end_date_ymd] => 2025-01-29 23:51:05 [RateCDR] => 1 ) [2025-01-29 23:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 20:51:05' and `end` < '2025-01-29 23:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 23:51:18] Production.INFO: count ==7818 [2025-01-29 23:51:22] Production.ERROR: pbx CDR StartTime 2025-01-29 20:51:05 - End Time 2025-01-29 23:51:05 [2025-01-29 23:51:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 23:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359799', 'tblTempUsageDetail_20' ) start [2025-01-29 23:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359799', 'tblTempUsageDetail_20' ) end [2025-01-29 23:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359799', 'tblTempVendorCDR_20' ) start [2025-01-29 23:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359799', 'tblTempVendorCDR_20' ) end [2025-01-29 23:51:22] Production.INFO: ProcessCDR(1,14359799,1,1,2) [2025-01-29 23:51:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14359799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 23:51:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14359799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 23:51:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14359799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 23:51:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14359799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 23:51:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359799', 'tblTempUsageDetail_20' ) start [2025-01-29 23:51:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359799', 'tblTempUsageDetail_20' ) end [2025-01-29 23:51:25] Production.ERROR: pbx prc_insertCDR start [2025-01-29 23:51:25] Production.ERROR: pbx prc_insertCDR end [2025-01-29 23:51:25] Production.INFO: ==25236== Releasing lock... [2025-01-29 23:51:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 23:51:25] Production.INFO: 86.75 MB #Memory Used# [2025-01-29 23:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 20:52:05 [end_date_ymd] => 2025-01-29 23:52:05 [RateCDR] => 1 ) [2025-01-29 23:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 20:52:05' and `end` < '2025-01-29 23:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 23:52:19] Production.INFO: count ==7851 [2025-01-29 23:52:23] Production.ERROR: pbx CDR StartTime 2025-01-29 20:52:05 - End Time 2025-01-29 23:52:05 [2025-01-29 23:52:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 23:52:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359804', 'tblTempUsageDetail_20' ) start [2025-01-29 23:52:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359804', 'tblTempUsageDetail_20' ) end [2025-01-29 23:52:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359804', 'tblTempVendorCDR_20' ) start [2025-01-29 23:52:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359804', 'tblTempVendorCDR_20' ) end [2025-01-29 23:52:23] Production.INFO: ProcessCDR(1,14359804,1,1,2) [2025-01-29 23:52:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14359804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 23:52:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14359804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 23:52:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14359804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 23:52:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14359804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 23:52:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359804', 'tblTempUsageDetail_20' ) start [2025-01-29 23:52:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359804', 'tblTempUsageDetail_20' ) end [2025-01-29 23:52:27] Production.ERROR: pbx prc_insertCDR start [2025-01-29 23:52:27] Production.ERROR: pbx prc_insertCDR end [2025-01-29 23:52:27] Production.INFO: ==25340== Releasing lock... [2025-01-29 23:52:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 23:52:27] Production.INFO: 87 MB #Memory Used# [2025-01-29 23:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 20:53:05 [end_date_ymd] => 2025-01-29 23:53:05 [RateCDR] => 1 ) [2025-01-29 23:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 20:53:05' and `end` < '2025-01-29 23:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 23:53:19] Production.INFO: count ==7864 [2025-01-29 23:53:23] Production.ERROR: pbx CDR StartTime 2025-01-29 20:53:05 - End Time 2025-01-29 23:53:05 [2025-01-29 23:53:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 23:53:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359809', 'tblTempUsageDetail_20' ) start [2025-01-29 23:53:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359809', 'tblTempUsageDetail_20' ) end [2025-01-29 23:53:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359809', 'tblTempVendorCDR_20' ) start [2025-01-29 23:53:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359809', 'tblTempVendorCDR_20' ) end [2025-01-29 23:53:23] Production.INFO: ProcessCDR(1,14359809,1,1,2) [2025-01-29 23:53:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14359809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 23:53:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14359809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 23:53:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14359809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 23:53:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14359809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 23:53:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359809', 'tblTempUsageDetail_20' ) start [2025-01-29 23:53:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359809', 'tblTempUsageDetail_20' ) end [2025-01-29 23:53:26] Production.ERROR: pbx prc_insertCDR start [2025-01-29 23:53:26] Production.ERROR: pbx prc_insertCDR end [2025-01-29 23:53:26] Production.INFO: ==25413== Releasing lock... [2025-01-29 23:53:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 23:53:26] Production.INFO: 87 MB #Memory Used# [2025-01-29 23:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 20:54:05 [end_date_ymd] => 2025-01-29 23:54:05 [RateCDR] => 1 ) [2025-01-29 23:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 20:54:05' and `end` < '2025-01-29 23:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 23:54:18] Production.INFO: count ==7866 [2025-01-29 23:54:22] Production.ERROR: pbx CDR StartTime 2025-01-29 20:54:05 - End Time 2025-01-29 23:54:05 [2025-01-29 23:54:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 23:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359814', 'tblTempUsageDetail_20' ) start [2025-01-29 23:54:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359814', 'tblTempUsageDetail_20' ) end [2025-01-29 23:54:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359814', 'tblTempVendorCDR_20' ) start [2025-01-29 23:54:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359814', 'tblTempVendorCDR_20' ) end [2025-01-29 23:54:23] Production.INFO: ProcessCDR(1,14359814,1,1,2) [2025-01-29 23:54:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14359814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 23:54:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14359814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 23:54:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14359814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 23:54:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14359814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 23:54:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359814', 'tblTempUsageDetail_20' ) start [2025-01-29 23:54:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359814', 'tblTempUsageDetail_20' ) end [2025-01-29 23:54:26] Production.ERROR: pbx prc_insertCDR start [2025-01-29 23:54:26] Production.ERROR: pbx prc_insertCDR end [2025-01-29 23:54:26] Production.INFO: ==25489== Releasing lock... [2025-01-29 23:54:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 23:54:26] Production.INFO: 87 MB #Memory Used# [2025-01-29 23:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 20:55:05 [end_date_ymd] => 2025-01-29 23:55:05 [RateCDR] => 1 ) [2025-01-29 23:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 20:55:05' and `end` < '2025-01-29 23:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 23:55:19] Production.INFO: count ==7896 [2025-01-29 23:55:23] Production.ERROR: pbx CDR StartTime 2025-01-29 20:55:05 - End Time 2025-01-29 23:55:05 [2025-01-29 23:55:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 23:55:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359819', 'tblTempUsageDetail_20' ) start [2025-01-29 23:55:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359819', 'tblTempUsageDetail_20' ) end [2025-01-29 23:55:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359819', 'tblTempVendorCDR_20' ) start [2025-01-29 23:55:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359819', 'tblTempVendorCDR_20' ) end [2025-01-29 23:55:23] Production.INFO: ProcessCDR(1,14359819,1,1,2) [2025-01-29 23:55:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14359819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 23:55:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14359819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 23:55:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14359819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 23:55:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14359819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 23:55:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359819', 'tblTempUsageDetail_20' ) start [2025-01-29 23:55:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359819', 'tblTempUsageDetail_20' ) end [2025-01-29 23:55:26] Production.ERROR: pbx prc_insertCDR start [2025-01-29 23:55:26] Production.ERROR: pbx prc_insertCDR end [2025-01-29 23:55:26] Production.INFO: ==25603== Releasing lock... [2025-01-29 23:55:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 23:55:26] Production.INFO: 87.25 MB #Memory Used# [2025-01-29 23:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 20:56:05 [end_date_ymd] => 2025-01-29 23:56:05 [RateCDR] => 1 ) [2025-01-29 23:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 20:56:05' and `end` < '2025-01-29 23:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 23:56:18] Production.INFO: count ==7918 [2025-01-29 23:56:22] Production.ERROR: pbx CDR StartTime 2025-01-29 20:56:05 - End Time 2025-01-29 23:56:05 [2025-01-29 23:56:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 23:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359824', 'tblTempUsageDetail_20' ) start [2025-01-29 23:56:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359824', 'tblTempUsageDetail_20' ) end [2025-01-29 23:56:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359824', 'tblTempVendorCDR_20' ) start [2025-01-29 23:56:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359824', 'tblTempVendorCDR_20' ) end [2025-01-29 23:56:23] Production.INFO: ProcessCDR(1,14359824,1,1,2) [2025-01-29 23:56:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14359824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 23:56:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14359824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 23:56:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14359824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 23:56:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14359824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 23:56:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359824', 'tblTempUsageDetail_20' ) start [2025-01-29 23:56:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359824', 'tblTempUsageDetail_20' ) end [2025-01-29 23:56:26] Production.ERROR: pbx prc_insertCDR start [2025-01-29 23:56:26] Production.ERROR: pbx prc_insertCDR end [2025-01-29 23:56:26] Production.INFO: ==25676== Releasing lock... [2025-01-29 23:56:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 23:56:26] Production.INFO: 87.5 MB #Memory Used# [2025-01-29 23:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 20:57:05 [end_date_ymd] => 2025-01-29 23:57:05 [RateCDR] => 1 ) [2025-01-29 23:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 20:57:05' and `end` < '2025-01-29 23:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 23:57:19] Production.INFO: count ==7960 [2025-01-29 23:57:23] Production.ERROR: pbx CDR StartTime 2025-01-29 20:57:05 - End Time 2025-01-29 23:57:05 [2025-01-29 23:57:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 23:57:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359829', 'tblTempUsageDetail_20' ) start [2025-01-29 23:57:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359829', 'tblTempUsageDetail_20' ) end [2025-01-29 23:57:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359829', 'tblTempVendorCDR_20' ) start [2025-01-29 23:57:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359829', 'tblTempVendorCDR_20' ) end [2025-01-29 23:57:24] Production.INFO: ProcessCDR(1,14359829,1,1,2) [2025-01-29 23:57:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14359829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 23:57:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14359829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 23:57:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14359829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 23:57:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14359829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 23:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359829', 'tblTempUsageDetail_20' ) start [2025-01-29 23:57:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359829', 'tblTempUsageDetail_20' ) end [2025-01-29 23:57:27] Production.ERROR: pbx prc_insertCDR start [2025-01-29 23:57:27] Production.ERROR: pbx prc_insertCDR end [2025-01-29 23:57:27] Production.INFO: ==25748== Releasing lock... [2025-01-29 23:57:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 23:57:27] Production.INFO: 87.75 MB #Memory Used# [2025-01-29 23:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 20:58:05 [end_date_ymd] => 2025-01-29 23:58:05 [RateCDR] => 1 ) [2025-01-29 23:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 20:58:05' and `end` < '2025-01-29 23:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 23:58:19] Production.INFO: count ==7959 [2025-01-29 23:58:23] Production.ERROR: pbx CDR StartTime 2025-01-29 20:58:05 - End Time 2025-01-29 23:58:05 [2025-01-29 23:58:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 23:58:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359834', 'tblTempUsageDetail_20' ) start [2025-01-29 23:58:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359834', 'tblTempUsageDetail_20' ) end [2025-01-29 23:58:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359834', 'tblTempVendorCDR_20' ) start [2025-01-29 23:58:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359834', 'tblTempVendorCDR_20' ) end [2025-01-29 23:58:23] Production.INFO: ProcessCDR(1,14359834,1,1,2) [2025-01-29 23:58:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14359834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 23:58:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14359834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 23:58:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14359834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 23:58:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14359834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 23:58:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359834', 'tblTempUsageDetail_20' ) start [2025-01-29 23:58:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359834', 'tblTempUsageDetail_20' ) end [2025-01-29 23:58:26] Production.ERROR: pbx prc_insertCDR start [2025-01-29 23:58:26] Production.ERROR: pbx prc_insertCDR end [2025-01-29 23:58:26] Production.INFO: ==25819== Releasing lock... [2025-01-29 23:58:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 23:58:26] Production.INFO: 87.75 MB #Memory Used# [2025-01-29 23:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-29 20:59:05 [end_date_ymd] => 2025-01-29 23:59:05 [RateCDR] => 1 ) [2025-01-29 23:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-29 20:59:05' and `end` < '2025-01-29 23:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-29 23:59:19] Production.INFO: count ==7985 [2025-01-29 23:59:23] Production.ERROR: pbx CDR StartTime 2025-01-29 20:59:05 - End Time 2025-01-29 23:59:05 [2025-01-29 23:59:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-29 23:59:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359839', 'tblTempUsageDetail_20' ) start [2025-01-29 23:59:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14359839', 'tblTempUsageDetail_20' ) end [2025-01-29 23:59:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359839', 'tblTempVendorCDR_20' ) start [2025-01-29 23:59:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14359839', 'tblTempVendorCDR_20' ) end [2025-01-29 23:59:23] Production.INFO: ProcessCDR(1,14359839,1,1,2) [2025-01-29 23:59:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14359839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 23:59:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14359839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-29 23:59:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14359839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 23:59:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14359839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-29 23:59:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359839', 'tblTempUsageDetail_20' ) start [2025-01-29 23:59:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14359839', 'tblTempUsageDetail_20' ) end [2025-01-29 23:59:26] Production.ERROR: pbx prc_insertCDR start [2025-01-29 23:59:26] Production.ERROR: pbx prc_insertCDR end [2025-01-29 23:59:26] Production.INFO: ==25891== Releasing lock... [2025-01-29 23:59:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-29 23:59:26] Production.INFO: 88 MB #Memory Used#